after lots of coding I have done in my scripts I have a question about using correctly dataseries. Let me show this with 3 examples please:
Let´s say I run in a 5 Range chart a script and in the script there is a condition
Lows[2][0] <= MIN(Lows[2],14)[0] and dataseries[2] = 2 Range
Does this condition count the low of the last 14 bars of dataseries 2 Range or the 14 bars of the primary dataseries in the chart where I have enabled the strategy.
OR
CrossAbove(Stochastics(BarsArray[2],7,14,3).K, Stochastics(BarsArray[2],7,14,3).D,5)
means that that KcrossD happened the last 5 bars of the dataseries 2 or the last 5 bars of primary dataseries
OR
MIN(Stochastics(BarsArray[2],7,14,3).K, 5)[0] < 25)
means that the low of stoch of dataseries 2 was within the last 5 bars of dataseries2 below 25 or means that the low of stoch of dataseries 2 was within the last 5 bars of primarydatseries below 25.
I think I could explain with these 3 examples what I mean.
Thank you
Tony
Comment