Lavoro terminato

Specifiche
I am writing to request the development of an Expert Advisor (EA) for MetaTrader 4 with the specific function of closing trades early based on certain conditions.
The EA will not open any new trades, but will only monitor existing trades (opened manually or by another EA) and close them prematurely, before reaching the set Stop Loss (SL) or Take Profit (TP), when one of three specific conditions is met.
Conditions for Early Exit:
The EA should start monitoring trades only when the price reaches a value halfway between the position's opening price and the 1:1 risk-reward level. Once this level is reached, the EA should monitor for the following conditions:
-
Range Bound Price Movement: If the price starts to become range-bound and move sideways, the EA should close the trade and lock in profit as this indicates fading momentum.

-
High Impact Economic Data: If important economic data is due to be released, the EA should close the trade early to lock in profit. High impact data can cause significant price volatility and could cause a reversal in price direction.
-
Peaking of Overextended Price Movement: If the price rapidly moves in the predicted direction and moves significantly away from the 20-period moving average on the 1-hour timeframe, the EA should consider the price movement overextended and a reversal imminent. It may be helpful for the EA to utilize Bollinger Bands and monitor when the price is approaching the upper or lower band. In this situation, the EA should closely monitor price movement (on the 1-minute or 5-minute timeframe) and when the upward/downward movement starts to reduce and momentum stalls, the EA should close the trade and lock in profit.

