I'm looking for a chosen time of day--doesn't have to be firstbarofsession--to get this on the chosen bar:
var = value[0] - value[1];
then the rest of the bars that day I want this:
var = var + (value[0] - value[1]);
This does not work:
if (firstbarofsession)
var = value[0] - value[1];
else
var = var + (value[0] - value[1]);
I always get var = value[0];
How can this be done?
I'm using intraday tick bars.
Thank you.
Comment