Multi-Timeframe Signal Alignment EA

MQL5 Experts

Job finished

Execution time 49 minutes
Feedback from employee
A very good communicator, patient and fully understands the process, I would love to work with you again and again
Feedback from customer
Great work! Developer handled a complex multi-strategy EA with patience and skill. Delivered as required and stayed supportive throughout. Highly recommended!

Specification


🧠 Overview

This EA uses 4 indicators × 3 timeframes — fully configurable. Each indicator (EMA, ADX, MACD, AO) can be independently turned ON/OFF per timeframe, allowing you to build custom strategies with single or combined filters.

1. HTF (Higher Timeframe 1) Settings:

Enable | Indicator / TF | Parameters

True | Timeframe_HTF | MN

True | EMA_HTF | Period: 9, Method: Exponential

False | ADX_HTF | Period: 14, Level: 20

False | MACD_HTF1 | Fast EMA:12, Slow EMA:26, Signal:9

False | AO_HTF1 | Green = Up, Purple = Down


2. ITF (Intermediate Timeframe 2) Settings:

Enable | Indicator / TF | Parameters

True | Timeframe_ITF | W1

True | EMA_ITF | Period: 9, Method: Exponential

False | ADX_ITF | Period: 14, Level: 20

False | MACD_ITF | Fast EMA:12, Slow EMA:26, Signal:9

False | AO_ITF | Green = Up, Purple = Down


3. ETF (Entry Timeframe 3) Settings:

Enable | Indicator / TF | Parameters

True | Timeframe_ETF | D1

True | EMA_ETF | Period: 9, Method: Exponential

False | ADX_ETF | Period: 14, Level: 20

False | MACD_ETF | Fast EMA:12, Slow EMA:26, Signal:9

False | AO_ETF | Green = Up, Purple = Down


Here's a clear and modular breakdown of the Entry Conditions based on HTF, ITF, and ETF settings — where each indicator contributes as a filter and can be used independently or in combination.


✅ Entry Conditions

A Buy Trade is opened when all selected (enabled = true) indicator conditions are met across all active timeframes (HTF, ITF, ETF).

A Sell Trade is opened when the opposite conditions are met.


🔹 1. EMA (Exponential Moving Average)

Buy Condition:

Candle closes above EMA on all enabled timeframes.

Sell Condition:

Candle closes below EMA on all enabled timeframes.

✅ EMA conditions must be met individually on HTF, ITF, and ETF if enabled.


🔹 ADX (Average Directional Index)

Buy Condition:

ADX value > selected level (e.g., 20) AND +DI > -DI on all enabled timeframes.

Sell Condition:

ADX value > selected level AND -DI > +DI on all enabled timeframes.

✅ If ADX is enabled on multiple timeframes, each must pass the condition.


🔹 MACD (Moving Average Convergence Divergence)

Buy Condition:

MACD line crosses above zero or is already above zero on all enabled timeframes.

Sell Condition:

MACD line crosses below zero or is already below zero on all enabled timeframes.

✅ Confirm that MACD condition matches across all enabled timeframes.


🔹 AO (Awesome Oscillator)

Buy Condition:

AO bar is green (positive momentum) on all enabled timeframes.

Sell Condition:

AO bar is purple (negative momentum) on all enabled timeframes.

✅ AO should show consistent color signal across all active frames.



Multi-Timeframe Entry Logic Core Scenarios (1–4) – Introduction

These scenarios describe how indicator conditions are evaluated across multiple timeframes (HTF, ITF, ETF) in different combinations. They help define the logic for when a trade should be allowed based on which indicators are enabled, on which timeframe, and how they interact (AND/OR logic, priority, etc.). Each scenario shows a unique configuration that the EA must support for flexible strategy building.

For more flexible configurations, see Strategy Examples (5–8) in the appendix section below.

✅ Scenario 1: Same Indicator Across Timeframes (Strict Match)

Logic: If an indicator is enabled on multiple timeframes (HTF, ITF, ETF), each timeframe must meet its condition independently.

Example: If EMA is enabled on HTF, ITF, and ETF → price must be above EMA on all three to allow a Buy.

Use case: Ensures full trend alignment across timeframes.


✅ Scenario 2: Multiple Indicators on Same Timeframes

Logic: If multiple indicators (e.g., MACD + ADX) are active on the same timeframes, each one must pass for that timeframe.

Use case: Strengthens signal confirmation on one or more timeframes.

Example: If MACD and ADX are enabled on ITF and ETF → both MACD and ADX must meet their conditions on ITF and ETF to allow a Buy.


✅ Scenario 3: Single Indicator Standalone, Single Timeframe

Logic: If only one indicator is enabled on a single timeframe, it alone controls the entry logic.

Use case: Light/simple filtering strategy.

Example: If only EMA on ETF is enabled → trade is allowed based on EMA on ETF alone.


✅ Scenario 4: Multiple Indicators Across Timeframes AND Logic

Logic: When several indicators are enabled across multiple timeframes, all must pass (strict AND logic across all conditions).

Use case: Very strong confirmation before trade entry.

Example: If EMA is active on HTF, ITF, ETF and AO is active on the ETF → price must be above EMA on all 3 timeframes and the AO bar must be green on the ETF.


🔧 Trade Execution & Management

This section defines how trades are opened, managed, and closed, with flexible options to suit both conservative and aggressive strategies across all indicators and timeframes.


🔁 Trade Execution Type

1. Standard (Single Trade Mode) — [Default]

Only one trade is allowed per signal.

If a trade is closed manually, the EA will wait for a new signal before opening another trade.

No stacking of trades under the same signal setup.

2. Multiple Orders (Candle2Candle Mode)

A new trade is opened on every candle close that confirms the existing signal, as long as the original setup remains valid.

Example: If a Buy signal is triggered (e.g., price > EMA9 on HTF, ITF, ETF), then new Buy orders continue to open on each new candle close unless a candle closes opposite to the signal (e.g., price falls below EMA9).

Once a signal is invalidated, all active trades under that signal are closed.

🎯 SL/TP Configuration Options

These apply to both execution types but behave slightly differently in Candle2Candle mode:

SL/TP Mode Options (Dropdown List):

Fixed

ATR-based

CandleWickRR


Fixed Settings:

Fixed StopLoss: 0.0

Fixed TakeProfit: 0.0


ATR Settings:

ATR Period: 14

ATR Multiplier SL: 1.5

ATR Multiplier TP: 3.0

ATR Timeframe: 1 Day

ATR Candle: 1


CandleWick RR Settings:

(SL is placed just beyond the wick of the signal candle)

SL for Buy Trade: 2 Pips below candle wick / low.

SL for Sell Trade: 2 Pips above candle wick / high.


(TP is based on a Risk:Reward ratio)

TP Reward Ratio: 1.0 Ratio (Configurable), Example: 1:1 (TP = SL distance), or 1:2 (TP = 2× SL).


🧠 Advanced Trade Controls

⚙️ Common Trade Settings

Trade Direction:

Options: Buy / Sell / Both


🔁 Trade Management:

Magic Number: Unique ID for the trade (e.g., 0)

Order Comment: Customizable text label

Close on Opposite Signal: True / False


📈 Risk Mode

Use Risk Management: True / False

Risk Model:

Risk % per Trade: (e.g., 0.5%)

Fixed Lot Size: (e.g., 0.01)

Example: Risk % = 0.5 OR Fixed Lot = 0.01


⏱️ Time-Based Trading

Use Time Filter: True / False

Start Time: 01:00

End Time: 23:59


📈 Trailing Stop (TSL)

Enable Trailing Stop: True / False

Fixed TSL Settings:

Trigger: 10.0

Distance: 7.0

Step: 1.0

Dynamic TSL Options: (Set individually to True / False)

ATR-Based: SL trails at 2× ATR (Configurable)

MA-Based: SL trails above/below EMA9 (Configurable)

Candle-Based: SL trails 2 pips beyond each candle’s wick


Break Even (BE) Settings

Fixed Break Even: True/False (Default: False).

Break Even (Trigger Pips): 50.0.


Dynamic Break Even: True/False (Default: False).

Options:

Break Even at 1:1 RR.

Break Even when the next bar opens.



Appendix: Strategy Examples (5–8)

These custom setups show how to mix indicators across timeframes, separate trend from trigger logic, use OR logic, or let ETF confirm final entries. They offer flexible, real-world applications for more dynamic strategy building.


🔄 Scenario 5: Mixed Indicators per Timeframe

Logic: Different indicators can be assigned to specific timeframes. Each indicator must meet its condition on its assigned TF.

Use case: Build custom strategies like trend strength (HTF), direction (ITF), momentum (ETF).

Example Buy Conditions:

HTF: ADX > 20 and +DI > -DI

ITF: Price > EMA

ETF: AO bar is green


🧭 Scenario 6: Trend from HTF/ITF, Trigger from ETF

Logic: Use HTF/ITF indicators to confirm trend; only enter trade when ETF also confirms the trigger condition.

Use case: Avoids early entries by waiting for entry-level signal that agrees with higher trend.

Example Buy Conditions:

HTF: Price > EMA

ITF: MACD > 0

ETF: Candle closes above EMA and AO turns green


🔓 Scenario 7: OR Logic Within Same Timeframe (Optional)

Logic: In a single timeframe (e.g., ETF), allow any one of the enabled indicators to trigger (OR logic), rather than requiring all.

Use case: Flexible filtering; developer should provide toggle setting: Allow_OR_logic_same_TF = true/false.

Example on ETF:

Trade allowed if MACD > 0 or AO is green

Still combined with HTF/ITF via AND

Optional: Can be toggled using “Allow OR logic in same TF” setting.


🔧 Scenario 8: ETF is Final Decision Maker

Logic: Trade only executes if ETF conditions are met, even if HTF and ITF are aligned.

Use case: Reduces false positives by relying on the final trigger from the most responsive timeframe.

Example:

HTF and ITF show uptrend

But trade executes only if ETF confirms (e.g., green AO or breakout candle)




Responded

1
Developer 1
Rating
(21)
Projects
25
52%
Arbitration
3
0% / 100%
Overdue
2
8%
Free
2
Developer 2
Rating
(62)
Projects
90
29%
Arbitration
24
13% / 58%
Overdue
7
8%
Working
3
Developer 3
Rating
(329)
Projects
515
19%
Arbitration
35
46% / 31%
Overdue
34
7%
Working
4
Developer 4
Rating
(43)
Projects
63
24%
Arbitration
10
30% / 50%
Overdue
10
16%
Free
5
Developer 5
Rating
(24)
Projects
26
73%
Arbitration
1
0% / 100%
Overdue
0
Free
6
Developer 6
Rating
(5)
Projects
5
60%
Arbitration
1
0% / 0%
Overdue
2
40%
Free
Published: 1 code
7
Developer 7
Rating
(574)
Projects
945
47%
Arbitration
309
58% / 27%
Overdue
125
13%
Free
8
Developer 8
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
9
Developer 9
Rating
(319)
Projects
568
35%
Arbitration
82
30% / 45%
Overdue
206
36%
Loaded
10
Developer 10
Rating
(10)
Projects
14
43%
Arbitration
0
Overdue
3
21%
Free
Similar orders
//———————————————————————————————————————————————————————————————————— struct S_MCAV { double matureSum; double totalSum; double value; void Init () { matureSum = 0.0; totalSum = 0.0; value = 0.5; } void AddContext (int ctx) { totalSum += 1.0; if (ctx == 1) matureSum += 1.0; } void ApplyDecay (double rate) { matureSum *= rate; totalSum *= rate; } void Update () {
1. Title Development of a Custom MQL5 Expert Advisor for XAUUSD (MetaTrader 5) 2. Requirements Specification Overview: I am looking for an experienced MQL5 developer to build a robust, fully custom Expert Advisor (EA) for MetaTrader 5 tailored for trading Gold (XAUUSD). Core Specifications & Features: Asset & Timeframe: Designed specifically for XAUUSD. Timeframe should be selectable directly from the EA inputs
I'm looking for an experienced developer to create an automated gold trading bot. The bot should be compatible with MetaTrader 4/5 and TradingView. Key Requirements: - Automated trading bot - Compatible with MetaTrader 4/5 and TradingView - Implement scalping and swing trading strategies Ideal Skills and Experience: - Proficiency in trading algorithms - Experience with gold trading - Familiarity with MetaTrader and
Cerco uno sviluppatore MQL5 esperto per sviluppare da zero un Expert Advisor completamente nuovo per XAUUSD su MT5. Non desidero un semplice Expert Advisor basato su indicatori fissi. Desidero un sistema di trading dinamico e adattivo, in grado di adattare il proprio comportamento alle mutevoli condizioni di mercato di XAUUSD. Lo sviluppatore dovrebbe essere libero di combinare qualsiasi tecnica ritenuta opportuna
I am looking for a Senior MQL5 Developer to create a new MetaTrader 5 Expert Advisor from scratch. I will provide a complete Requirements Specification containing objective entry, exit and risk-management rules. This is not a request to copy or decompile an existing product. Project requirements: Clean and modular MQL5 source code. Exact implementation of the supplied strategy. One signal evaluation per configured
I need a robust optimization of my MT5 EA, mainly for XAUUSD (Gold). Please optimize the existing adjustable parameters such as entry/exit settings, SL/TP, trailing/break-even settings, and any other strategy parameters that are appropriate. I want the optimization focused on stable profitability, low/moderate drawdown, and robustness rather than simply the highest possible profit. Please use out-of-sample testing
I need an MT5 EA based on my strategy: MN1/W1/D1 trend analysis, H4/H1 confirmation, EMA 10/23, Fibonacci 12.7 BUY & 88.6/88.7 SELL entries, market structure/candlestick confirmation, automatic SL/TP, risk-based lot sizing, break-even, trailing stop, news filter, and prop-firm risk management. The EA should support scalping, intraday and swing trading, with future AI integration
Composite robot 30 - 200 USD
Title: Multi-Timeframe Pure Price Action & Elliott Wave Execution Bot for XAUUSD 1. Project Overview I need a robust, automated trading bot (Expert Advisor) for MetaTrader 5 (MT5) to trade XAUUSD (Gold) exclusively. The strategy is built entirely on Top-Down Multi-Timeframe (MTF) market structure, pure price action, and Elliott Wave principles. It does not use traditional lagging technical indicators (like RSI or
Build a fully mechanical EA for XAUUSD on D1 timeframe. Trader spends 5-10 mins per day to run it. No discretion. EA calculates, places orders, and walks away. Timeframe Use the Daily (D1) timeframe . At the close of each completed daily candle, identify: Previous day's High (wick) Previous day's Low (wick) Previous day's Open
The Candle Range Theory (CRT) 3-Candle Strategy is a price action method derived from Smart Money Concepts (SMC). It is based on the "Power of 3" logic (Accumulation, Manipulation, Distribution), essentially compressing an entire market cycle into a sequence of three specific candles. This strategy relies on the idea that the first candle sets a range , the second candle manipulates price to trap traders (liquidity

Project information

Budget
35+ USD
Deadline
to 10 day(s)