This EA has 2 functions:
1 - HEDGE FUNCTION
EA Controler aims to open hedge operations, in 2 types:
1 – Hedge by operations
2 – Hedge blocking the overall account balance
Explaining function 1 – Hedging by operations
From operation 4 onwards, the EA Controller must open a hedge operation for each new operation opened. This hedge operation must always have the target, stop loss and takeprofit points filled in the EA's editable functions panel, and must have the same lot volume and asset as the operation that will form the hedge.
The hedge operation must always be opened simultaneously with the operation that will constitute the hedge.
When the hedging operation reaches a target, a new operation must be opened with the same goals. Hedge operations will only not be opened when the account has only 3 operations open.
Hedging operations should only be closed after reaching a target.
Explaining function 2 - Hedge blocking the balance
This function consists of opening a hedge to protect the account's floating balance caused by the first 3 operations. This hedge must be integral, that is, it must add up to the volume of open transaction lots and must be opened when the balance reaches a certain % of the account's equity balance, filled in in the editable field of the EA panel.
This hedging operation must have targets in points, filled in the EA's editable functions panel.
2 - MAXIMUM PROFIT FUNCTION
5. Maximum profit from open operations
The EA must contain a field to enter the dollar balance of profit from open orders, orders must be closed as soon as this maximum profit balance is reached and the robot can open new trades again at any time.
But the EA Controller may close trades with a profit lower than the maximum profit, depending on your strategy. This function only determines a maximum profit for closing operations.
For example, if I register that the maximum profit from operations is $1, when the balance of the total sum of open operations is equal to $1 and the strategy EA has not closed the operations, the controlling EA must close the open orders.
EDITABLE FUNCTIONS PANEL IN EA
HEDGE FUNCTION
The editable EA roles in the dashboard should be:
Function fields 1 - Hedge by operations
Field to enter volume of take-profit hedge points
Field to enter the volume of stop loss hedge points
The volume of target points defined in the fields above must be the same for all hedge operations opened by function 1 hedge.
If the fields above are blank, the EA should not open function 1 hedge type operations.
Function 2 Fields - Floating balance of the account with hedge blocking
Field to enter the % of the account balance used to open a complete hedge
Field to enter the volume of full hedge stop loss points
Field to enter the volume of full hedge take profit points
If the fields above are blank, the EA should not open function 2 hedge type operations.
MAXIMUM PROFIT FUNCTION
Field to insert in $ the maximum profit value, from the sum of all open operations, which the EA Controller must close all operations when this value is reached. If this field is blank, that is, not filled in, this function must be inactive.
The EA Controler must open operations on all assets and must work on MT4.
The EA source code must be delivered in an editable form.
The freelancer must make the file available for testing in a demo account for a period of 15 calendar days, before finalizing the demand.
In other words, as soon as you give me the EA file, I will test it on a demo account for 15 days.
If adjustments are needed, I will let you know.
If the EA is tested and all EA functions are working perfectly, I will let you know and we will close the demand here at MQL5.