I want to use the DataSeries to store the bars that are as a whole above and below the SMA.
Unfortunately I do not know how to do this calculation.
I want to take from these DataSeries the highest or lowest bar for example: High(GetValueAt(HighBar)
HighBar = MAX(int period)[int barsAgo]
I want to store these values in a DataSeries which I can access and get the values. HIGH of the period and LOW of the period or the current high or low.
I have now made some progress.
I have the span, the start and end candle.
Unfortunately I cannot work with highSeries[0] = MAX(startBarLong, spanLong)[0];.
I can't compile it. How can I access the highest values within the span?
Merry christmas and happy new year from Germany
With kind regards
Tradeer

Comment