iStochastic help please

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?

The indices would be 1 and 2 respectively. The current bar (that is still open) has an index of 0.