This indicator is a conversion for ProRealTime of the “Forex Entry Points Indicator” for mt4.
The original version of this indicator repaints, which means that as new quotes appear, the indicator modifies the recent signals it gave. As a result, the signals on historical data are much more relevant that the signals you get in real-time.
This version for ProRealTime is improved as it does not repaint.
This is the code for version v10.2 and below. You need to add the indicator below the price and set it in histogram.
V10.2 code :
Once periodK = 21
Once periodD = 12
Once smoothing = 3
Once highZone = 70
Once lowZone = 30
stochK = Stochastic[periodK,smoothing](Close)
stochD = SmoothedStochastic[periodD,smoothing](Close)
trend = 0
if stochK<stochD and stochK[1]>stochD[1] and stochK<lowZone and stochK[1]<lowZone then
trend = 1
Elsif stochK>stochD and stochK[1]<stochD[1] and stochK>highZone and stochK[1]>highZone then
trend = -1
Endif
return trend, 0
This is the code for version v10.3 and above. You need to add the indicator directly to the price chart.
V10.3 code :
Once periodK = 21
Once periodD = 12
Once smoothing = 3
Once highZone = 70
Once lowZone = 30
stochK = Stochastic[periodK,smoothing](Close)
stochD = SmoothedStochastic[periodD,smoothing](Close)
if stochK<stochD and stochK[1]>stochD[1] and stochK<lowZone and stochK[1]<lowZone then
DrawArrowUp(barindex, Low - Range/2) Coloured(0,255,0)
Elsif stochK>stochD and stochK[1]<stochD[1] and stochK>highZone and stochK[1]>highZone then
DrawArrowDown(barindex, High + Range/2) Coloured(255,0,0)
Endif
Return