Trabajo finalizado
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Tarea técnica
The hedge EA.
The EA will work zigzag and other features.
Order placing rules.
The EA will start placing order considering the last/previous candle and the orders should be placed in steps also in addition of the lot sizes.
Buy order rules
For instance, the EA should start placing buy order on the next new candle if the last previous candle closed bullish.
After the first buy order is placed and the price continue to move up, then the EA should continue to place new buy orders after every certain pips levels (e.g. 10 pips) then the EA should place a new buy order at every 10 pips above the last buy order.
Sell order rules
The EA should start placing sell order on the next new candle if the last previous candle closed bearish.
After the first sell order is placed and the price continue to move down, then the EA should continue to place new sell orders after every certain pips levels (e.g. 10 pips) then the EA should place a new sell order at every 10 pips above the last buy order………..
Reverse scenario
The EA should placing opposite orders with added or multiplied lot if the market price should reversed by a certain pips (e.g. 10) from the last opened order
Example
Let’s say that EA had been placing sell order(s) and price moved up from the last sell order by 10 pips, the EA should start placing buy order with additional or multiplied lot.
Alternative Order Placing:
Closing Rules
· Close each: The EA should close any profiting order at set TP.
· Close all: Or all the profiting orders should be closed when the first profiting positions has reach certain pips in profit.
· Profit %: (the EA close all open orders if the total made profit reaches a certain % of the initial balance of the account.