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
You must be logged in to post a comment.
Good morning,
You might have a change to this code so that you change the time settings directly from the program screen?
thank you
HI ADMIN, can you do me a favor ??i hope that you can post the ex4 or mq4 file version of this non repaint indicator. because i dont know how to attach your codes into my mt4..can you help ,please...i am interested in this indicator as it is NON REPAINT INDICATOR AS YOU MENTIONED.. PLEASE HELP..
Thank you.
Hello Nicollas
I see.. that means I need to use a "Force Open" code
And/Or change the "
DEFPARAM CumulateOrders = false to True..
Right?
I mean, the system is closing a trade at a loss where there is no code for it?
Hi
I have done some little fine tuning and I'm running this as live trading on the SA40 index (South Africa)
Getting positive results!! ;)
However, I don't use a stop loss or anything a like.
Just an exit/take profit, with "set target pProfit 22"
Gain: 1188, Win: 22 Loss: 2
My question is, how come the system closing a trade if there is no code for it?
What/Why its happening?
----- Code -----
DEFPARAM CumulateOrders = false //True
IF time >= 072900 and time <= 113000 THEN
Once periodK = 21
Once periodD = 12
Once smoothing = 14
Once highZone = 76
Once lowZone = 24
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
buy 2 contract at market
endif
if stochK>stochD and stochK[1]<stochD[1] and stochK>highZone and stochK[1]>highZone then
sellshort 2 contract at market
Endif
set target pprofit 22
ENDIF
Thank you,
A.
can this indicator be both converted into .mq4. i couldnt use it as .itf