The easier way to get get and indicator that shows the divergence and import it into the startegy builder
Quote:
price makes lower swing lows while stochastic makes higher
To make your own, you need to define 2 major conditions to evaluate when stochastic makes higher highs and price makes lower lows. What's a higher high or a lowe low?
You need to define it - for example higher high is when close current bar > close previous bar or maybe even > two bars ago. After you define them you need to implement the logic using TA and AND