MetaTrader 5 (MQL5) Custom Expert Advisor Development of Existing adviser

MQL5 Experts

Specification

Strategy Core: Multi-Timeframe Trend Following ("Father & Son" Rule) with Momentum & Trend Strength Filters.

I have a expert adviser that followes momentum, need to follow trend strength and father and son strategy in version of it.


1. Strategy Overview & Core Concept

This EA executes trades based on multi-timeframe alignment. It uses a higher timeframe to establish the primary market direction and a lower timeframe to execute precise entries.

  • The "Father" (Higher Timeframe - HTF): Determines the macro trend direction using an Exponential Moving Average (EMA) crossover. No trades are allowed against the Father's direction.

  • The "Son" (Lower Timeframe - LTF): Determines the immediate trade setup using an EMA crossover aligned with the Father, filtered by RSI (for momentum) and ADX (for trend strength).

2. Technical Indicators & Parameter Inputs

The freelancer must ensure all indicator periods, methods, and price types are exposed as user-configurable inputs.

A. The "Father" (HTF Setup)

  • Timeframe: User defined (e.g., Daily or H4)

  • Fast EMA: Period (Default: 9), Applied to Close

  • Slow EMA: Period (Default: 21), Applied to Close

B. The "Son" (LTF Setup & Execution)

  • Timeframe: User defined (e.g., H1 or 15Min)

  • Fast EMA: Period (Default: 9), Applied to Close

  • Slow EMA: Period (Default: 21), Applied to Close

  • RSI (Relative Strength Index): Period (Default: 14), Overbought level (Default: 70), Oversold level (Default: 30)

  • ADX (Average Directional Index): Period (Default: 14), Minimum Trend Strength Level (Default: 25)

3. Detailed Trading Rules

🟢 BUY (LONG) ENTRY CONDITIONS

A Buy order should trigger at the close of a candle on the Son's timeframe if all the following conditions are simultaneously true:

  1. Father Rule (HTF Trend): The HTF Fast EMA is strictly above the HTF Slow EMA ($Fast\_EMA > Slow\_EMA$).

  2. Son Rule (LTF Crossover): The LTF Fast EMA has crossed above or is holding above the LTF Slow EMA.

  3. ADX Filter (Trend Strength): The LTF ADX Main Line is above the Minimum Level (e.g., $> 25$), and the $+DI$ line is strictly above the $-DI$ line.

  4. RSI Filter (Momentum): The LTF RSI line is above 50 but below the Overbought Level (e.g., $50 < RSI < 70$). This ensures momentum is strong but not overextended.

🔴 SELL (SHORT) ENTRY CONDITIONS

A Sell order should trigger at the close of a candle on the Son's timeframe if all the following conditions are simultaneously true:

  1. Father Rule (HTF Trend): The HTF Fast EMA is strictly below the HTF Slow EMA ($Fast\_EMA < Slow\_EMA$).

  2. Son Rule (LTF Crossover): The LTF Fast EMA has crossed below or is holding below the LTF Slow EMA.

  3. ADX Filter (Trend Strength): The LTF ADX Main Line is above the Minimum Level (e.g., $> 25$), and the $-DI$ line is strictly above the $+DI$ line.

  4. RSI Filter (Momentum): The LTF RSI line is below 50 but above the Oversold Level (e.g., $30 < RSI < 50$).

4. Risk & Trade Management

The EA must handle standard order management cleanly. Please include these features:

  • Order Execution: Market Orders executed precisely at the opening of a new bar on the Son's timeframe after a valid setup candle closes.

  • Position Sizing: Option for Fixed Lot Size (e.g., 0.1 lots) OR Risk Percentage based on Account Equity (e.g., risk 1% per trade).

  • Stop Loss (SL): Fixed in Pips/Points from entry price.

  • Take Profit (TP): Fixed in Pips/Points from entry price.

  • Trailing Stop: (Optional but highly recommended) Trailing activation and step size inputs to protect profits once the trade moves in our favor.

5. Developer Instructions & Deliverables

Please instruct the freelancer to follow these standard development guidelines:

  • Code Structure: The code must be cleanly commented in English. Handlers like OnInit() , OnDeinit() , and OnTick() should be distinctly organized.

  • Multi-Timeframe Efficiency: Use proper MQL5 data structures ( CopyBuffer , MqlRates ) to retrieve data from different timeframes efficiently without freezing the MetaTrader terminal.

  • Error Handling: Include explicit error checking for broker order execution errors (e.g., requotes, invalid stops) and log them via the Print() function.

  • Deliverables:

    1. The fully compilable .mq5 source code file.

    2. The compiled .ex5 executable file.


Hi, I want to update my existing EMA/RSI trading robot into a more robust multi-timeframe system. I have mapped out the strict rules above, integrating a higher timeframe trend filter ('Father') and adding ADX to measure trend strength on the execution timeframe ('Son'). Please review the logic and let me know your timeline and quote for delivering the .mq5 file."

Responded

1
Developer 1
Rating
(258)
Projects
323
30%
Arbitration
34
26% / 65%
Overdue
10
3%
Working
2
Developer 2
Rating
(1)
Projects
1
0%
Arbitration
1
0% / 100%
Overdue
0
Free
3
Developer 3
Rating
(50)
Projects
64
20%
Arbitration
11
27% / 55%
Overdue
5
8%
Free
4
Developer 4
Rating
(46)
Projects
60
53%
Arbitration
7
86% / 0%
Overdue
2
3%
Free
5
Developer 5
Rating
(4)
Projects
4
25%
Arbitration
0
Overdue
0
Free
Published: 2 articles
6
Developer 6
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
7
Developer 7
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
8
Developer 8
Rating
(4)
Projects
8
0%
Arbitration
3
33% / 67%
Overdue
4
50%
Free
Similar orders
I need a ready made profitable system with live account trade or demo that can be back-tested for 2 years with good profits. Pls consider drawdown to be low , source code will be provided at the end. Very important sending 10 days demo before negociation , thank you
I am looking for an experienced MQL5 developer to convert my existing trading strategy into a fully automated MetaTrader 5 Expert Advisor (EA). Requirements: Develop a robust and efficient MQL5 Expert Advisor based on my EMA trading strategy. I will provide the complete trading logic, including entry, exit, risk management, and trade management rules. The EA should execute trades automatically without manual
I have a EA for XAUUSD which works awesome in sideways and trending market as well, capital requirement is only 2000USd and weekly profit is around 1500-2000 USD. I am using this bot from 3 months and getting continuous good result
Советник. Открываю сделку вручную. Советник закрывает эту сделку по окончании установленного количества свечей...то есть советник по таймеру окончания свечи. Например; установил время свечи равное 2 ( 2 свечи ), открыл позицию вручную и по окончании второй свечи советник закроет сделку
Hello, I'm looking for EA or indicator that would help me reach at least 0.5 lot daily on XAUUSD pair. I trade with 30-35 spread on live standard account. 0.3 to 0.5 lot on XAUUSD is all i need per day, without losing too much money during week or month doing that. Every advice od product is welcome. tg @stellarcptadmin
Professional MT5 Multi-Asset Trading Robot Realistic Architecture & Practical Characteristics Specification Below is a filtered, realistic, and practical specification for an excellent automated MT5 Expert Advisor focused on XAUUSD scalping (M1–M15) with multi-asset capability. I've removed marketing fluff and kept only what's technically achievable and profitable in live trading conditions. CORE IDENTITY Attribute
Mobeen 200 USD
I am looking for a professional EA (Expert Advisor) trading bot for XAUUSD with a high success rate and low drawdown. Key requirements: Consistent and stable profitability Low drawdown (preferably under 10%) Strong risk management High risk-to-reward ratio No martingale or dangerous recovery systems Works on MT4/MT5 Adjustable lot size, stop loss, and take profit News filter and spread filter Backtesting and verified
Expert Advisor Development Specification (MT5) Project Overview I am looking for an experienced MQL5 developer to build a professional Expert Advisor for MetaTrader 5 dedicated exclusively to Bitcoin trading (BTCUSD / BTCUSDT). The objective is to create a robust, adaptive trading system focused on consistency, controlled drawdown, and long-term scalability. The EA must NOT use: Martingale Grid systems Recovery
Dear All i am working on strategy in forex market specifically in xausud and i just want someone to make it automatic execution mode as per my requirements with propee risk management my broker is exness and i have an account in MT5
✅ MT4 EA Developer Checklist (For Your Ladder EA) 1️⃣ Indicator Integration EA reads signals from provided custom indicator (.ex4 or .mq4) Detects “Buy Next” / “Sell Next” signals on current candle Works with arrow-based or buffer-based signals 2️⃣ Next Candle Execution EA does not trade on the candle where the signal appears Orders placed only at first tick of the next candle Timeframes supported: M1, M5, M15

Project information

Budget
30+ USD
Deadline
to 10 day(s)

Customer

(2)
Placed orders4
Arbitrage count0