Announcement

Collapse
No announcement yet.

Range Calculation Help

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

  • Range Calculation Help

    Hi,
    I am trying to do a quick EFS that will calculate the average tick range (i.e.: the average of the hi-low over all the ticks), and then display that range as a calculation on the chart.

    I was thinking something like this:

    while(close() != null)
    {
    newRange=high()-low();
    range=range+newRange;
    x=x+1;
    }
    Write to screen: Range = (range/x);

    Can anyone help me out with the write to chart and if there are any other problems with this code?
    Thank you,
    Anthony
    --------------------
    http://groupshares.com
Working...
X