How to create algo for Stochastic DK strategy?

How to create algo for Stochastic DK strategy?

In this episode , we are going to learn how to code Stochastic DK strategy.
Let’s get into the set-up.

Condition:
We have 2 conditions for Buying/Selling. Stoch should be above/below specific level and there should be a stoch crossover
Buy: When Stoch K is less than 15 and Stoch K crosses above Stoch D
Sell: When Stoch K is above 85 and Stoch K crosses below Stoch D

Limit of 15 or 85 is just a placeholder for oversold and overbought conditions and can be adjusted dynamically.