工作已完成
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
指定
I require an EA that tracks the equity curve of a particular EA defined by its magic number and/or comments. Should the equity reach a certain stop loss limit (Minimum Equity), the EA will close all transactions (including pending order) for the particular EA being monitored.
I would also need a trailing stop. This Trailing Stop is made up of the stop loss limit (Minimum equity) plus a certain percentage or fixed amount added to it on a daily, weekly or monthly basis. So if the equity curve drops to the set limit + a set weekly percentage for example , all transactions for the monitored EA will close.
This EA will not close any other transactions apart from the ones defined by the magic numbers and/or comments settings.
The settings for this EA will be:
EA to monitor : this is just a text for reference
Filter Magic Number conditions: options are None, All, Equal, Not Equal, Contains and Not Contains
Filter Magic Numbers: commas separated magic numbers to monitor
Filter Comments conditions: options are None, All, Equal, Not Equal, Contains and Not Contains
Filter Comments : commas separated comments to monitor
Initial Balance : This is the initial balance used to calculate the equity curve, profit and loss will be added and substracted to this number from the monitored EA
Minimum Equity : This is the level at which if the calculated equity is reached, all positions for the EA being monitored are closed. This is basically the stop loss
Trailing Stop Start Date: the date from which the trailing stop starts (can be in the future)
Trailing Stop period: Daily, Weekly, Monthly
Trailing stop method: percentage or fixed amount
Trailing Stop Fixed Amount
Trailing Stop Percentage
Alerts: On /OFF
Alert Text
Alert Popup
Alert Email
Alert Notification
I will also need a panel on the chart to show all the settings except alerts and to also show the calculated Equity and net profit (calculated profit / initial balance) and the running trailing stop
The calculated Equity will be made up of all profit and losses for the monitored EA net of commission and swap fees.
Please note that this equity protector doesn’t monitor the account equity but the equity for the trades of a particular EA.
Also it is a requirement that if the chart this EA is attached to closes, nothing is lost and that this EA continues where it stopped on restart.
We will need to supply a fully functional EA for MT5 and the source code.