The martingal EA who like ranging and trending markets

 

I need your help to make an EA for this martingal system.

It use the buy limit, sell limit orders to win in the ranging market and the buy stop, sell stop ones to win when the market trend.

We can use it in one direction or better, in the 2 directions (start buy and sell).

I will explain the simple one and will illustrate it buy the first picture (martingsimple.gif).

The second picture (martingdle.gif) explain the double direction one.

The EA start (for example) by a sell order 0.1 lot at 1.5589. tp=40, sl=40.

In the same time it makes 2 pending orders :

a) sell limit 0.2 lot at 1.5629

b) sell stop 0.1 lot at 1.5549

If the price go up to 1.5629 (like in the first picture).

(a) will be execute and (b) must be deleted.

In the same time the EA makes 2 pending orders :

c) sell limit 0.1 lot at 1.5589

d) buy stop 0.4 lot at 1.5669

... and so on.

As you can see in the yellow circle of the martingsimple.gif, the organisation of orders is :

sell/selllimit/buystop/sellstop/selllimit/buystop/..etc.

It's better if we can chose this organisation in the options of the EA.

If the price go down to 1.5549, (b) will be execute and (a) must be deleted.

The EA will do the same operations in the opposite direction and the organisation of orders in this case is :

buy/buylimit/sellstop/buystop/buylimit/sellsop/..etc.

*******

Now, For the double direction martingal EA (martingdle.gif), it's very important to make a perfect synchronisation between the 2 directions (open and close the opposites orders in the same time).

Thus, the EA become more prolific and the drawdown will be reduced nicely.

I hop you appreciate my powerful english expressions

Thanks and good luck.

Files:
 

Sorry, this is the picture (martingsimple.gif) with the yellow circle.

Files:
 

mgird EA forever trending markets..:D

increment 50, levels 12

Files:
 

I like your approach. Two questions:

have you traded it for some time?

why *.***9 are your levels? Any reason?

 
Mert:
mgird EA forever trending markets..:D increment 50, levels 12

whe i load the mygirdea.mq4 to the indicator folder,and i reopen the chart ,but i see nothing on the chart.

do i need the tpl file?

 
yourspace:
whe i load the mygirdea.mq4 to the indicator folder,and i reopen the chart ,but i see nothing on the chart. do i need the tpl file?

Put it in the Experts folder and not indicator folder- and then drag it from Navigator onto chart..

 
Mert:
mgird EA forever trending markets..:D increment 50, levels 12

which timeframe and pairs to work on?

cheers

 
Pizzazz79:
which timeframe and pairs to work on? cheers

doesn't matter , I am use M5 demo account.

 

Mini account?

How can i get this ea to work on a ibfx mini account 4 decimal.??

Thanks you

fxtrading24

 
FX Flyboy:
I like your approach. Two questions:

have you traded it for some time?

why *.***9 are your levels? Any reason?

The manually executin of this strategy is not easy. So oui need n ea to test it.

*.***9 because the range in this exemple was 40. It coud be 20 or 50 or any other rage.

The more the range is tight the more prfit is big and the more risk is important. This risk become smaller if we trade in double directions.

Reason: