Trabajo finalizado
Tarea técnica
Description:
I’m looking for an experienced MQL5 developer to build a flexible and universal Expert Advisor (EA) for MetaTrader 5. The EA should implement a time-based, price-action strategy that works across multiple indices like S&P500, DAX, NASDAQ100, Nikkei225, etc.
Strategy Summary:
-
Asset class: Index CFDs or Futures (symbols like US500, NAS100, DE40, JP225 – varies by broker)
-
Timeframe: M15
-
Trade types: Long and Short
-
Strategy: Intraday only, based on price behavior relative to the daily Opening Level
-
No indicators – purely based on candle closing logic
Entry Rules:
-
The first full M15 candle after market open defines the Opening Level.
-
Long entry: if any following M15 candle closes above the Opening Level → enter long at candle close.
-
Short entry: if any following M15 candle closes below the Opening Level → enter short at candle close.
-
If the first candle is a Doji, skip it. Wait for the next valid signal.
-
Session times vary per instrument. The user must be able to configure:
-
Session start time
-
Last valid entry time
-
Forced exit time
-
Trade Management:
-
If a trade is active and a new opposite signal appears → close the trade and reverse direction.
-
Re-entries in the same direction are allowed only if the candle body confirms the trend.
-
No new entries allowed after the defined cutoff time.
-
All trades must be closed by a user-defined session end time – no trades are held overnight.
Stop Loss / Take Profit / Break-Even:
-
Stop Loss:
-
Long: below the signal candle’s low
-
Short: above the signal candle’s high
-
-
Take Profit: equal distance as SL (1:1 RRR)
-
Break-Even: once price moves 50% of the way to TP, SL is moved to breakeven
Risk Management:
-
User must be able to define account risk per trade in % (e.g. 1.0%)
-
EA must calculate position size dynamically based on:
-
Account balance
-
SL distance
-
Selected risk percentage
-
Required Inputs:
-
RiskPercent
-
SessionStartTime
-
LastEntryTime
-
ForceExitTime
-
BreakEvenEnabled (true/false)
-
MagicNumber
-
TradeComment
Additional Requirements:
-
EA must work with any index symbol and any broker (handle suffixes/prefixes like .cash or .i)
-
Time calculations should be based on server/broker time
-
Strategy must be 100% rule-based, with clean execution and stable order handling
-
EA must support strategy tester and live use without manual adjustments
Deliverables:
-
Source code (.mq5) and compiled file (.ex5)
-
Basic parameter documentation
-
Error handling and internal checks for stability
Please apply only if you have experience with time-based or candle-logic-based EAs. Send samples of your work if available. I'm ready to start as soon as possible.