In stochastic cross over strategy , %K crossing over %D condition true- action given buy PE ATM , and %K crossing under %D buy CE ATM. It’s given to your automation strategy.
Is the above strategy OK?
As per my knowledge %K crossing over %D , market is going to be bullish, so buy CE.
Stochastic is an indicator, and the configuration mentioned in the strategy is designed more for a reversal-based setup rather than a directional momentum setup.
So, depending on the market condition, a %K crossover above %D can either continue the bullish move or act as a reversal signal. That’s why the automation logic may appear opposite to your expectation in certain scenarios.