ATR Trailing Stop - Help - page 2

To add comments, please log in or register
deeforex
93
deeforex  

thanks Igorad!!!!

Adyandy
7
Adyandy  

@

Kan somebody translate this cmc codec into metratrader 4 codec for me?

it is a automatic system!

Code;

Atr =AverageTrueRange[50](close)

keyofday=(high + low +close)/3

buyeasierday =1

selleasierday=1

if (close> keyofday) then

selleasierday =0

endif

if(close<=keyofday)then

buyeasierday =0

endif

if (buyeasierday =1) then

longEntryPoint=open +atr*0.0

shortEntryPoint=open-atr*0.5

endif

if ( selleasierday =1) then

longEntryPoint=open +atr*0.5

shortEntryPoint=open-atr*0.0

endif

//LongEntry

if close>= longEntryPoint and not longonmarket then

buy 10000 shares at longEntryPoint stop realtime

elsif not longonmarket then

endif

longliqpoint=entryquote-3*atr

//LongExit

if close<longliqpoint and longonmarket then

sell at longliqpoint stop realtime

endif

//ShortEntry

if close<=shortEntryPoint and not Shortonmarket then

sellshort 10000 shares at shortEntryPoint stop realtime

elsif not shortonmarket then

endif

shortliqpoint=entryquote+3*atr

//ShortExit

if close >=shortliqpoint and Shortonmarket then

exitshort at shortliqpoint stop realtime

endif

Indikatorcode;

atr=AverageTrueRange[50](close)

keyofday=(high + low +close)/3

buyeasierday =1

selleasierday=1

if (close> keyofday) then

selleasierday =0

endif

if(close<=keyofday)then

buyeasierday =0

endif

if (buyeasierday =1) then

longEntryPoint=open +atr*0.0

shortEntryPoint=open-atr*0.5

endif

if ( selleasierday =1) then

longEntryPoint=open +atr*0.5

shortEntryPoint=open-atr*0.0

endif

return longEntryPoint as "Long",shortEntryPoint as"Short"

Amritendu Maji
1446
Amritendu Maji  

I think it is useless to do the buy/sell easier calcs if you are going to use this:

if (buyeasierday =1) then

longEntryPoint=open +atr*0.0

shortEntryPoint=open-atr*0.5

endif

if ( selleasierday =1) then

longEntryPoint=open +atr*0.5

shortEntryPoint=open-atr*0.0

endif

What difference does it make?

This is a plain vanilla volatility expansion/breakout system.

Adyandy
7
Adyandy  

Hello Maji,

As well (and which for one) that system is not points I is so exact not from me developed, I have only bit changed and tested with the baking test of CMC and the result well out too well and was to be that because of wants I with the MT4 program to also test. Can you help me ?

Greeting.

Amritendu Maji
1446
Amritendu Maji  

I believe Igor wrote an EA for the volatility breakout tests. Do a search for it.

Good luck.

Adyandy
7
Adyandy  

Thanks Maji

Flytox
256
Flytox  

ATR trailing stop.

Bonjour a tous.

I'am new to this forum, and i want to thanks for all the good stuff one can find here.

I'am looking for an EA to modify my sl according to atr. I found some here but no one seems to work on the MT4 last build i use with Ibfx.

Thank again.

mangman
118
mangman  

Here is the Chandelier Stop Indicator based on ATR volatility range.

Flytox
256
Flytox  

Merci beaucoup Mangman

i give it a try.

chris1085
33
chris1085  
mangman:
Here is the Chandelier Stop Indicator based on ATR volatility range.

mangman, what kind of forward results are you getting?

Thanks,

Chris

To add comments, please log in or register