I have searched everywhere but i can't seem to find answer of simple question. I am looking to find the bar number and time of certain bars which were calculated.
e.g.
var startingValue(0);
Code: Select all
if high > highest(high,10)[1] then
startingValue = lowest(low,10);
I have tried: time[startingValue] and barnumber[startingValue]+maxBarsBack but this never gives the right values.
How do we extract data from previous bars being calculated???