Trabalho concluído
Termos de Referência
1. General Overview:
I am looking for an experienced developer to fix and optimize an existing MQL5 Expert Advisor (or rewrite it if cleaner). The strategy is a mechanical trend-following system based on 3 Exponential Moving Averages (EMAs). It trades the pullback (retracement) to a specific EMA.
The Logic (Abstracted):
-
Indicators: Three EMAs (Fast, Medium, Slow). Standard values will be provided privately.
-
Trend Definition: Price is above/below the Slow EMA.
-
Entry Trigger:
-
Price pushes away from the Fast EMA (Expansion).
-
Price retraces back to the Medium EMA.
-
Crucial Filter (The "Clean Move"): The retracement to the Medium EMA must happen without any opposing candle colors (e.g., for a Long setup, the pullback must consist ONLY of bearish candles until the touch). If a bullish candle appears before the touch, the setup is invalid.
-
-
Risk Management:
-
Stop Loss at the last Swing High/Low.
-
Take Profit at the Fast EMA.
-
Minimum Risk-Reward-Ratio (RRR) check before entry.
-
3. Current Issues / Bugs to Fix: I have a prototype code, but it has logic errors that need to be fixed:
-
Multiple Entries: The bot currently opens multiple trades on the same setup/swing. It needs a "Unique ID" logic per Swing High/Low.
-
Strict Rule: Only one trade attempt per valid Swing High/Low structure.
-
Loop/Logic Error: Sometimes the "Clean Move" filter is ignored.
4. Requirements:
-
Money Management: Adjustable Lot Size.
-
News Filter: Integration of a News Filter to stop trading during High Impact News.
-
Code Quality: Clean, commented source code (mq5). No DLL imports.
-
Visuals: Debug comments on the chart (e.g., marking the "valid" swing).
5. Deliverables:
-
Fully functional .ex5 and .mq5 file.
-
Backtest results proving the "One Trade per Swing" fix works.