Need help on stochastic indicator

 

Hi all,

Can some guru please help modify default "stochastic" indicator so that it will only recalculate most

recent %d & %k (main & signal line) ONLY when candle close?

The current default stochastic indicator will recalculate %d & %k tick by tick for as long price

changes for the most recent movement

Regards,

James

 
tkz883:
Hi all,

Can some guru please help modify default "stochastic" indicator so that it will only recalculate most

recent %d & %k (main & signal line) ONLY when candle close?

The current default stochastic indicator will recalculate %d & %k tick by tick for as long price

changes for the most recent movement

Regards,

James

James, far as I know, stochastic indicator the ends of the %k and %d indicator will move until the bar closes, then it(the end movement) will continue on to the next open bar but the previous bar the indicator ends stay intact, doubt if there is anything to be done to change that.

 

Hi Mr tools,

U r rite, i am thinking in this case since it only affect most recent candle,

as the %k and %d indicator will move until the bar closes.

coding wise, For as long most recent candle is not close, not value should be calculated?

Scratching head.. Thanks

 

why dont you use the values in previous bar bar(1) as reference instead of current bar bar(0). Isnt that the same as what you are asking?

Reason: