Henry

Forex Entry Point Indicator (no repaint)

Category: Indicators By: Henry Created: June 9, 2016, 7:14 PM
June 9, 2016, 7:14 PM
Indicators
10 Comments
Forex Entry Point Indicator (no repaint)

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

Download
Filename: Forex-Entry-Point-Indicator103.itf
Downloads: 570
Download
Filename: Forex-Entry-Point-Indicator102.itf
Downloads: 329
Henry
Henry Average
Hi! I'm moderating the English speaking forum on my free time. I'll try to answer your questions as good as I can and I also post the answers to code requests that were addressed directly to ProRealTime.
Author’s Profile

Comments

sandfred
8 years ago
#

can this indicator be both converted into .mq4. i couldnt use it as .itf

Nicolas
8 years ago
#

For any customized code, you can ask the programming services: https://www.prorealcode.com/trading-programming-services/

sagittario75
9 years ago
#

Good morning,

You might have a change to this code so that you change the time settings directly from the program screen?

thank you

gordontan
10 years ago
#

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..

algotrader
10 years ago
#

Thank you.

algotrader
10 years ago
#

Hello Nicollas
I see.. that means I need to use a "Force Open" code
And/Or change the "

DEFPARAM CumulateOrders = false to True..

Right?

 

Nicolas
10 years ago
#

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.

algotrader
10 years ago
#

I mean, the system is closing a trade at a loss where there is no code for it?

algotrader
10 years ago
#

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.

Nicolas
10 years ago
#

Because new short positions initiated by your conditions close current long ones and vice-versa.

ProRealCode ProRealCode
Loading...