Работа завершена
Техническое задание
Grid Duplicator EA, adds pending and open position to all positions and re-opens them on take profit.
Grid trader will set take profit of all pending orders to nearest Take profit level; if not to the nearest pending order in basket as the Take profit level. Once grid order is open and hits take profit it will open up another position right after at the same level as the original trade. So for every Position in a basket the grid duplicator will mimic it on another Magic number with the first order in the grid at the original TP but the rest will be at the next order price. Lot size will always mimic the original trade. Copies ALL Stop Loss and TAKE PROFIT automatically.
Inputs
trade magic number
order comment
Example
Original positions
@ opened buy EURUSD 83.7xx TP 89.9xx
@ Pending EURUSD 83.7xx TP 89.9xx
@ Pending EURUSD 83.7xx TP 89.9xx
Grid positions duplicator
@ opened buy EURUSD 83.7xx TP 89.9xx
@ Pending EURUSD 82.7xx TP 83.7xx
@ Pending EURUSD 81.7xx TP 82.7xx
Example 2
Price drops below 81 and triggers all pending trades then moves up to 82.9xx closes one order from grid duplicator in profit past the second pending trade then opens a pending buy position once more.
Original positions
@ opened buy EURUSD 83.7xx TP 89.9xx
@ opened buy EURUSD 83.7xx TP 89.9xx
@ opened buy EURUSD 83.7xx TP 89.9xx
Grid positions duplicator
@ opened buy EURUSD 83.7xx TP 89.9xx
@ opened buy EURUSD 82.7xx TP 83.7xx
@ Pending EURUSD 81.7xx TP 82.7xx