Announcement

Collapse
No announcement yet.

200ma and vol in 1 min chart

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 200ma and vol in 1 min chart

    PHP Code:
    var vSMA200 = new MAStudy(2000"Close"MAStudy.SIMPLE);

    function 
    preMain() {
        
    setPriceStudy(true);
        
    setStudyTitle("200ma-Vol");
        
    setShowCursorLabel(false);
            
        var 
    fp1 = new FunctionParameter("Position"FunctionParameter.NUMBER);
        
    fp1.setLowerLimit(0);        
        
    fp1.setUpperLimit(50);
        
    fp1.setDefault(25);
        
    }
    function 
    main(Position) {

    var 
    vY formatPriceNumber(vSMA200.getValue(MAStudy.MA));

    drawTextRelative(Position0"200ma: "+vY+"   Vol: "+volume(), Color.bluenullText.RELATIVETOLEFT|Text.BOLD|Text.RELATIVETOBOTTOM"MS Sans Serif"101);


    return ;

Working...
X