I am running on a per tick basis - but I really only want the ‘closed’ value of two preceding stoch values.
How?
Here is what I have:
SV1= iStochastic(Symbol(),PERIOD_M15,45,4,4,MODE_EMA,1,MODE_MAIN,cnt1);
SV2= iStochastic(Symbol(),PERIOD_M15,45,4,4,MODE_EMA,1,MODE_MAIN,cnt1+1);
but it’s calculating after every tick - a new stoch value- -I just want the value of the closed candle before it= and the one before that.
Can this be done - when evaluating every tick?