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 :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
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 :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
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 |
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
HiI 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.
Because new short positions initiated by your conditions close current long ones and vice-versa.
I mean, the system is closing a trade at a loss where there is no code for it?
Hello NicollasI see.. that means I need to use a “Force Open” codeAnd/Or change the “
DEFPARAM CumulateOrders = false to True..Right?
No, cumulateorders is only there to allow cumulating orders of the same kind (buy or sell). In ProOrder, it’s not possible to have buy and sell orders at the same time, you’ll need to make 2 different strategies if you want to allow this.
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..
Good morning,
You might have a change to this code so that you change the time settings directly from the program screen?
thank you
can this indicator be both converted into .mq4. i couldnt use it as .itf
For any customized code, you can ask the programming services: https://www.prorealcode.com/trading-programming-services/