Download : https://www.mql5.com/en/market/product/9833
The Expert Advisor repeats trades a preset number of times on your account.
The following functions are supported: custom lot for duplicate trades, copying Stop Loss, Take Profit, use of trailing stop.
It repeats all deals opened manually or by another Expert Advisor.
Note: This is not a trade copier. A trade copier for MetaTrader 4 is available here: COPYLOT
The Idea of the Expert Advisor
The Exp Duplicator assistant EA repeats positions opened in the terminal. It can work both with manual positions and those opened by another EA. The position or the order to be copied is called source. The repeating position is a duplicate.
The EA repeats the source the specified number of times. It copies lot, Stop Loss, Take Profit, order placing price (for pending orders) and expiration. When a source is modified, SL and TP of a duplicate are also modified.
The EA is highly customizable. To get started, you must specify the types of the copied positions and orders in the first parameters.
OrderToDuplication – order type:
0 = BUY
1 = SELL
2 = BUYLIMIT
3 = BUYSTOP
4 = SELLLIMIT
5 = SELLSTOP
MagikToDuplication – the magic number of the order to copy, multiple magic numbers can be specified separated by commas:
0 – manual orders;
123,345,147 – all positions with magic numbers 123,345,147;
-1 – all magic numbers.
SymbolToDuplication – the symbol of the order to copy:
An empty value means that all positions and orders of all symbols will be copied;
0 – only the current symbol;
EURUSD – only positions and orders for EURUSD.
LotDuplicate – if 0 repeats the source lot, otherwise a custom value;
MinLotToDuplicate – minimum lot to copy;
ReverseDuplicate – true – reverse trades;
KoeficientLotDuplicate – lot multiplier; 0 – no multiplier;
StopLossDuplicate – if 0 repeats the source Stop Loss, otherwise a custom value;
TakeProfitDuplicate – if 0 repeats the source Take Profit, otherwise a custom value;
MaximumDistance – price deviation; 0 – any value is copied, if greater than 0 – that’s the max difference between the source price and the current one;
CloseDeleteCopy – true – delete and close duplicate orders and positions if the source ones are closed;
KolDuplicate – the number of duplicate times.
Additional EA Parameters:
MarketWatch – MarketWatch trading mode, true = first positions are placed without stop levels, then are modified;
Magic – the identifier of EA’s trades;
Slippage – slippage value;
TrailingStopUSE – use trailing stop;
IfProfTrail – use only for profitable positions – breakeven mode;
TrailingStop – trailing distance, 0 – minimum allowed value on the server;
TrailingStep – trailing step.