Spécifications
I'm looking for an EA detects all active EAs (prints instrument and timeframe) that controls other individual EAs based on certain calculations of their individual results real time, metrics like:
- count of trades of an individually monitored EA
- total profit/loss in pips of an individually monitored EA
- total profit factor in pips of an individually monitored EA
- last week's profit factor of an individually monitored EA
- last month's profit factor of an individually monitored EA
- win rate of an individually monitored EA
- lot size of an individually monitored EA
- total average loss trade of an individually monitored EA
- max loss trade of an individually monitored EA
- input max loss trade for an individually monitored EA
MANAGEMENT RULES for EAs (PER EA)
It should adjust lot sizing or stop trading an individual EA when a certain combination of above metrics of the EA has been reached. The logic would be like:
- IF total max loss has become bigger than {input loss in pips} THEN kill EA
- ELSE IF max loss is smaller than {input loss} THEN check if Total Trade Count is equal to or greater than {input Trade Count}
- IF Trade Count is over {input Trade Count} THEN check if Profit Factor in Pips is over {input Total Profit Factor}
- AND IF Total Profit Factor in Pips is over {input Total Profit Factor} THEN check if Win Rate is over {input Win Rate}
- AND IF Win Rate is over {input Win Rate} THEN take {input %} of account balance and divide by Total Avg Loss Trade OR Max Loss Trade OR {Input Max Loss Trade}, and adjust lot size for EA by the multiplier to new lot size for that individual EA (so new risk is based on max loss of the EA and adjusted to a percentage if the total account balance)
STOP RULES (PER EA)
- IF {dropdown option input time frame: option 1: Last Week; option 2: Last Month} average Profit Factor in Pips is below {input profit factor} THEN lower lot size to {input lot size}
- OR IF { dropdown option input time frame: option 1: Last Week; option 2: Last Month} average Profit Factor in Pips is below {input profit factor} THEN STOP EA
- OR IF any loss registered is greater than { dropdown option input: option 1: Total Avg Loss Trade for individual EA; option 2: Max Loss Trade for individual EA; option 3: Input Max Loss Trade for individual EA} THEN STOP EA
- OR IF max consecutive loss is greater than {input max consecutive loss for the individual EA} THEN STOP EA
It should stop all EAs when the whole account has reached a min or max equity level in % {input %}.
DASHBOARD
It should also create a dashboard where it prints:
- all active EAs, magic number, instrument and time frame where tracks performance per EA with the metrics
- a summary of the total account
- a summary of all actions performed by the governing EA that day
- lowest equity of that day in %
- highest equity of that day in %