Hello.
Please help me to create this expert advisor for meta trader 4
In the same account with this martingale EA, I will use another one expert advisor with fixed TP and SL. This one have a winrate around 50-60% and use same lotsize anytime. This EA will open one position at a time, this position will be called <initial position> in order to understand what position we are talking about
Next I will tell you the conditions for martingale EA, they are put in the correct order:
-
EA will wait for <initial position> to be opened
-
EA will wait for <initial position> to be closed in profit or loss
-
If <initial position> was closed in profit, EA will do absolutely nothing
-
If the <initial position> was closed at a loss, EA will wait for the next <initial position> to be opened and will copy it, use the same lotsize (1x lotsize), the same take profit and the same stop loss
In this case will have this positions:
1 lot original position
1 lot copyed position -
If the next one <initial position> was closed in loss, EA will wait for the next <initial position> to be opened and copy it, this time it will use 3x lotsize, the same take profit and the same stop loss
In this case will have this positions:
1 lot original position
3 lot copyed position -
If the next one <initial position> was closed at a loss, EA will wait for the next <initial position> to be opened and copy it, this time it will use 7x lotsize, the same take profit and the same stop loss
In this case will have this positions:
1 lot original position
7 lot copyed position
(Result will be a simple martingale multiplication with 2x (1 - 2 - 4 - 8))
If <initial position> was closed in profit, EA will resume the cycle from point 1
EA will permanently follow the <initial position> and if it is closed regardless of whether it is in profit or loss, it will close the open position
If take profit or stop loss is changed at <initial position>, EA will also change to the open position
Please help 
I think this EA will help and others ppl. To exclude losses from a strategy
