PureBytes Links
Trading Reference Links
|
> In the file there where 255 lines, when calling the function with a
> Length of 35 ?! if someone could explain this it would be great.
> Second, i've come to realized this right now, how does EL control
> how many recursive calls the function will do?
There are no recursive calls in your code and TS doesn't normally run
recursive calcs. When you open a new chart or apply a new indicator, EL
steps through all the bars, one at a time, until it gets to the end of
the chart. It skips the first (maxbarsback) number of bars and then runs
the code on every bar after that. You must have applied the code to a
chart containing 255 + maxbarsback bars since you got 255 lines of debug
output. Your code only needs to look back one bar (MXAverage[1]) so, if
you didn't specify maxbarsback and let TS set it automatically,
maxbarsback = 1 and your chart must have 256 total bars.
--
Dennis
|