I need a basic martingale system in mt4 workable. in same time it will open sell and buy trades and if price go opposite, ea must open "x" pips later second trade with a special multiplier (amount of other trades). I must enter tp point and if the last trade see this tp point, ea must close all trades in same direction.
parameters:
Starting lot size:0,10
Multiplier = 1.6 (Default is 1.6. This is next lot size increment so for simple calculation if start is 0.10 then next would be 0.10 * 1.6 = 0.16.)
Pips difference = 15 this is pips difference between 2 trades, second trade must open 15 pips later from first trade.
TP point = 20 if the ea open 5 buy trades in same direction and last trades see 20 pips profit, then all buy position must close.
Max Spread = 8 This is maximum spread EA would allow. In news conditions some brokers widened the spread. EA can run even you widened the spread but low spread always increase the profitability.
Max Open Trades = 12 This is maximum open trades per basket for each side say Long cycle you can expect maximum 12 trades to be opened.