Order manager
This EA Controller's main function is to control the risk of the trading account. Let's call this EA a controller.
The EA must contain the following functions:
Trailing Stop
For this function we must have the fields:
Activation - in this field it must be possible to activate or deactivate the trailing stop
Points - in this field it must be possible to enter the number of points that the trailing will be activated, and the volume must be integral, that is, the EA must add the number of lots of open operations and thus open an operation with the sum of the lots . For example: there are 3 sell operations open, each with a lot of 0.01, so the EA must open a buy operation with a lot of 0.03.
Stop Loss - in this field you must be allowed to enter the number of points
Note: if the trailing stop stop loss is reached and the price retraces the number of points necessary to reopen it, it must be reopened.
2. Maximum Drawdown %
(this field must be filled in with the maximum withdrawal percentage allowed on the account, and if reached, all operations must be closed and new operations can be opened the following day, from the trading start time determined in this EA Controller)
For example: if this field is filled with 10%
And the account balance is $1000
If the balance of open operations reaches the value of $100, all operations must be closed.
3. Maximum drawdown $
(this field must be filled in with the maximum withdrawal in dollars allowed on the account, and if reached, all operations must be closed and new operations can be opened the following day, from the trading start time determined in this EA)
For example: if this field is filled with $100
If the balance of open operations reaches the value of $100, all operations must be closed.
4. Trading hours in Brazil
(this field must allow the insertion of the start and end time allowed for opening new negotiations, separated by day of the week)
For example:
Second
Operations Start Time - 10:00
End of Operations Time - 13:00
Third
Operations Start Time - 10:00
End of Operations Time - 13:00
And so on
5. Maximum profit from open operations
The EA must contain a field for entering a dollar balance of profit from open orders, orders must be closed as soon as this maximum profit balance is reached, and the robot will be able to open new trades again at any time.
But the EA Controller may close operations with less than the maximum profit, depending on its 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 operations is equal to $1 and the strategy's EA strategy has not closed operations, EA controller must close open orders.
This EA Controller 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.