I couldnt find in the forum a solution for my problem when working with multiple dataseries and working with currentbar, How can one refer to the current bar of each dataseries.
Eg when RSI [BarsArray5] crossbelow 20 then I store the barnumber with "crossbar = CurrentBar". Then I have "period=CurrentBar- crossbar" so that I can use it with if(Lows[2][0]<= MIN (Lows[5],"period")[1].
I have 2 questions/problems:
* because of working with multiple dataseries I have in onbarupdate if(Historical) return;. Which bar is then the Currentbar? Or what do I have to do for having the currentbar of a certain dataseries, eg [5] with the cross.
* another way: how can I store the time of the RSI cross to get the period (number of bars of that period) then with "currentime-time_of_RSIcross" and to use this for the period in the MIN-indicator? but maybe this is more difficult to do then the first question(?)
Thank you
Tony
Comment