Работа завершена
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Техническое задание
Initial Risk:
This parameter should only be used when the User places the Initial Order as a Pending Order, so if the User places a Pending Order and this Param has been set, then the EA should remove and replace the Pending Order with the correct Lot Size for this Specific Risk, but only if the Initial Pending Order was using the Wrong Lot Size for the Risk Percentage.
===================================================
Hedge Risk List:
I should be able to set the Risk Percentage of each Hedge Order, with the last one in the list as the Default Risk for the remaining Orders.
===================================================
Initial Take Profit:
When set it should override the Initial Orders Take Profit with this.
===================================================
Initial Stoploss:
When set it should override the Initial Orders Stoploss with this.
===================================================
Initial Breakeven:
Initial Breakeven Pips: The amount of pips on top of the Breakeven Price.
===================================================
Hedge Pip Range:
When set it should base the Hedge Orders distance from the Initial Order.
===================================================
Hedge Stoploss List:
I should be able to set the Stoploss of each Hedge Order, The Last Stoploss placed into this list should be used for the remaining orders, so for example if I put 10 pips for the First Hedge Order, 20 pips for the Second Hedge Order and 40 pips for the Third Hedge Order but only have a Maximum Hedge Order of 4, then the 4th Trade should also use 40 pips by default.
===================================================
Hedge Take Profit List:
I should be able to set the Take Profit of each Hedge Order, The Last Take Profit placed into this list should be used for the remaining orders, so for example if I put 10 pips for the First Hedge Order, 20 pips for the Second Hedge Order and 40 pips for the Third Hedge Order but only have a Maximum Hedge Order of 4, then the 4th Trade should also use 40 pips by default.
===================================================
Use Custom Account Size = Yes/No
Set Custom Account Size:
If disabled then the EA should use the Account Balance, for calculating the Risk Percentage, but when enabled the EA uses the Custom Account Size.
===================================================
Maximum Hedge Orders
===================================================
Entry Horizontal Lines = Yes/No
Hedge Horizontal Lines = Yes/No
Stoploss Horizontal Lines = Yes/No
Take Profit Horizontal Lines = Yes/No
Stoploss Horizontal Line Width
Stoploss Horizontal Line Colour
Take Profit Horizontal Line Width
Take Profit Horizontal Line Colour
Initial Order Horizontal Line Width
Initial Order Horizontal Line Colour
Hedge Order Horizontal Line Width
Hedge Order Horizontal Line Colour
The EA should check for any readjustments on each new tick, and adjust accordingly, and once the Hedge Basket
is complete or whenever an Order hits their TP or SL then the lines should be removed accordingly from the chart,
and once the basket ends then the EA should wait for the next Initial Order and Hedging Basket.
===================================================
Close All Hedge Orders on First TP = Yes/No
So this will close all Hedge Orders that are activated, once the Initial Order hits its TP
Close Hedge Pending Orders = Yes/No
This will close all Hedge Pending Order once no activate order is open in that Hedge Basket.
===================================================
Plus please make the Order Comments like the following:
Initial Order
Hedge Order 1
Hedge Order 2
Hedge Order 3
Hedge Order 4 and so on...