Announcement

Collapse
No announcement yet.

Including other timeframes on the chart

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

  • #16
    ziggy
    You can apply to the returned string the same logic that you would use to color the plot of a returned value
    Alex

    Comment


    • #17
      sorry alex, would you provide an example...not sure I understand what you said.

      Comment


      • #18
        ziggy
        The logic is no different than if you were coloring a plotted value
        Alex

        PHP Code:
        var Avg sma(10);
        //same logic as if coloring a returned value
        if(your condition){//for example Avg.getValue(0)>Avg.getValue(-1)
            
        setBarFgColor(Color.lime);
        }else{
            
        setBarFgColor(Color.red);
        }
        return 
        Avg.getValue(0)+"";//the return is a string 

        Comment


        • #19
          ok that would set the FgBar color of the entire chart on that bar on just the specific study which I am returning? I would not want the entire price pane's bar to be affected by that one returned efs study? Don't know if I made myself clear. Thanks Alex

          Comment


          • #20
            ziggy
            Try implementing the example I provided
            Alex

            Comment

            Working...
            X