Re: MT5 Stochastic indicators
Posted: Mon Jan 12, 2026 8:57 pm
Hello Banzai,
Many years ago, a programmer friend of mine named GIO translated my divergence code for Metastock into MT5. I had thought about forming divergences by counting the number of bars up to a maximum of 9, but the best divergences form between 3, 4, and 5 bars.
Now, after so many years, I would like to make the following changes:
1) add the condition that, for a positive divergence, the Stochastic is ABOVE its 6 simple moving average, and that for a negative divergence, the Stochastic is BELOW its 6 simple moving average.
2) I would like a push notification to occur when this particular divergence appears.
3) I would like a push notification to occur when the bar following the divergence is inside (in this case, the movement is even more violent).
4) The cusp must also appear on the inside bar.
My Metastock code for divergence followed by an inside bar is on lines 159 and 163.
I attach 2 example images
I will put my formula in 3D too
mt4-divergence-indicators-list-how-good ... 97-90.html
Many years ago, a programmer friend of mine named GIO translated my divergence code for Metastock into MT5. I had thought about forming divergences by counting the number of bars up to a maximum of 9, but the best divergences form between 3, 4, and 5 bars.
Now, after so many years, I would like to make the following changes:
1) add the condition that, for a positive divergence, the Stochastic is ABOVE its 6 simple moving average, and that for a negative divergence, the Stochastic is BELOW its 6 simple moving average.
2) I would like a push notification to occur when this particular divergence appears.
3) I would like a push notification to occur when the bar following the divergence is inside (in this case, the movement is even more violent).
4) The cusp must also appear on the inside bar.
My Metastock code for divergence followed by an inside bar is on lines 159 and 163.
I attach 2 example images
I will put my formula in 3D too
mt4-divergence-indicators-list-how-good ... 97-90.html