Spezifikation
I am seeking an experienced MQL5 developer to code a fully automated Expert Advisor (EA) based on an averaging methodology combined with a retracement principle. The strategy uses multi-timeframe indicator inputs and advanced trade management features. Please review the requirements below to assess complexity and cost.
Strategy Overview:
-
Core Principle:
The strategy is built on the principle that markets always retrace. It employs an averaging methodology by scaling positions and dynamically adjusting profit targets based on retracement measurements between pivot points. -
Timeframes & Indicators:
-
1-Minute Chart:
-
Pivot Points Indicator: Detects confirmed pivot highs and lows based on a specified pivot period.
-
Pivot Point Oscillator: Calculates the average distance (swing distance) between successive pivot points using a rolling average of a defined number of recent pivots.
-
-
15-Minute Chart:
-
Average True Range (ATR) Indicator: Uses a 250-period ATR calculated with EMA smoothing to measure market volatility and define thresholds for additional position entries.
-
-
Trade Execution & Management:
-
Entry Conditions:
-
When a pivot point prints on the 1-minute chart:
-
For a Pivot High (Long Setup):
Entry Price = Pivot Candle High – (Pivot Oscillator Value × Adjustable Entry Multiplier) -
For a Pivot Low (Short Setup):
Entry Price = Pivot Candle Low + (Pivot Oscillator Value × Adjustable Entry Multiplier)
-
-
-
Profit Target:
-
Initially set at 50% retracement of the distance between the pivot candle high/low and the entry price.
-
Example:
-
For a pivot high: Profit Target = (Entry Price + Pivot Candle High) / 2
-
For a pivot low: Profit Target = (Entry Price + Pivot Candle Low) / 2
-
-
-
Scaling & Position Management:
-
The strategy employs position scaling by adding trades as the price moves against the initial entry by an amount equal to the ATR (250 EMA on the 15-minute chart) multiplied by an adjustable factor.
-
Additional trade volume is set as a fixed percentage (default 25%) of the current basket volume.
-
With each additional trade, the profit target is recalculated as a 50% retracement between the pivot level and the last entry price.
-
-
Basket Management:
-
All trades initiated after the first are grouped as a “basket” that will be closed simultaneously at the profit target.
-
Each trade must have a unique magic number (e.g., “trade 1”, “trade 2”, etc.) for tracking purposes.
-
The EA must keep track of the number of open trades in the basket.
-
A hard stop loss must be implemented: if the number of trades reaches a predefined maximum (adjustable), the entire basket is closed immediately.
-
-
Adjustable Parameters:
-
Pivot period (for the 1-minute chart).
-
Number of swing points to calculate the average distance (oscillator).
-
Percentage multipliers for:
-
Entry price adjustment.
-
Additional trade entry (ATR threshold adjustment).
-
Trade volume scaling for additional entries.
-
Profit target retracement.
-
-
Maximum number of trades allowed in a basket (hard stop condition).
-
Technical Requirements:
-
Language: MQL5
-
Multi-timeframe Integration: Must process data on both 1-minute and 15-minute charts.
-
Order Management: Robust handling of order entries, tracking unique magic numbers, and managing basket-level operations.
-
Documentation: Clear code comments, a summary of adjustable parameters, and brief user instructions for installation and usage.
-
Testing: Developer should include testing on historical data or demo environments to validate the strategy logic.
Deliverables:
-
Fully functional MQL5 Expert Advisor implementing the above strategy.
-
Complete source code with comprehensive inline comments.
-
Documentation detailing adjustable parameters, installation instructions, and usage guidelines.
-
Post-development support for minor modifications (if required).
Proposal Submission:
Please provide:
-
Your estimated timeline and cost.
-
Examples of similar EA projects you have developed.
-
Any questions or clarifications regarding the strategy before starting.
I look forward to your proposals. Thank you.