Graphing an Indicator

 

I have a simple indicator that should tell me the average daily range (not atr) . Actually, I would love to make it an ATFR - Average TimeFrame Range - going back <extern> bars.  I would like it to graph the results as a line graph (like a MA only in a separate window).

I can code a little but am totally confused on how to proceed.

I have the indicator say :

for(i=1;i<=First_av;i++)

      Rx    =    Rx  +  (iHigh(NULL,PERIOD_D1,i)-iLow(NULL,PERIOD_D1,i))/Point;

I can understand what the loop is doing.

In this indicator, the text stays in one spot. I get that. The values can change, but they aren't like a line graph.

Can someone point me in the right direction, or help explain the concept of graphing an indicator (keeping in mind this time thing is confusing to me from a programmatic perspective.)


Thanks for the help in advance

 

Thanks....I got it now.

What really helped me is taking one of the examples and taking it apart.  I wound up looking at the early code base and taking stochastic since I understand the logic of that one and it is in a separate window.

Worked like a charm!

I actually feel I accomplished something today!


THANKS!

Reason: