Multi-Timeframe Signal Alignment EA

MQL5 Esperti

Specifiche


🧠 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)




Con risposta

1
Sviluppatore 1
Valutazioni
(20)
Progetti
24
54%
Arbitraggio
3
0% / 100%
In ritardo
2
8%
Gratuito
2
Sviluppatore 2
Valutazioni
(45)
Progetti
64
22%
Arbitraggio
10
20% / 30%
In ritardo
6
9%
Caricato
3
Sviluppatore 3
Valutazioni
(281)
Progetti
436
18%
Arbitraggio
26
46% / 27%
In ritardo
26
6%
Occupato
4
Sviluppatore 4
Valutazioni
(35)
Progetti
48
19%
Arbitraggio
3
67% / 0%
In ritardo
8
17%
Occupato
5
Sviluppatore 5
Valutazioni
(3)
Progetti
3
33%
Arbitraggio
0
In ritardo
0
In elaborazione
6
Sviluppatore 6
Valutazioni
(3)
Progetti
3
33%
Arbitraggio
1
0% / 0%
In ritardo
2
67%
In elaborazione
Pubblicati: 1 codice
7
Sviluppatore 7
Valutazioni
(564)
Progetti
933
47%
Arbitraggio
303
59% / 25%
In ritardo
125
13%
Caricato
8
Sviluppatore 8
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
9
Sviluppatore 9
Valutazioni
(278)
Progetti
498
36%
Arbitraggio
63
33% / 35%
In ritardo
178
36%
Caricato
Ordini simili
Hello expert developers, I need an expert sierrachart developer for my project, anyone who is capable should kindly bid to this project for detailed information of what it entails, thanks
Hi, I need a Professional Software Programmer who have a good experience in Sierrachart coding, I would like to discuss my project with you. Kindly send me a message if you can do this job. Thanks
Mt5EA 30 - 50 USD
🧠 Core Logic Summary: Trend Detection (via EMAs) EA starts with trend check using EMA50 vs EMA200. If OppositeTrend=true, it trades against trend. Initial Trade + Hedge Pending Opens 1 trade (BUY/SELL) based on trend Places opposite pending (SELL STOP or BUY STOP) with defined Gap SL & TP are applied as per input (SL = Gap distance, TP = dynamic recovery) Lot Progression (Multiplied) Base lot size is either fixed
I have a trading bot on MT5 platform that enters the market against the trend and averages positions using a Martingale system (a grid trader) until the price eventually reverses in its favor. This leads to a dangerous possibility of losing the entire deposit during sharp and prolonged price moves, since the bot does not use stop-losses and fully relies on a timely price reversal. A protection mechanism must be
Hola, estoy buscando un programador que me ayude a automatizar la ejecución de señales generadas en TradingView hacia MetaTrader 5 (MT5). Requisitos del proyecto: Ya tengo el bot en Pine Script funcionando en TradingView. Quiero que cuando se cumpla una condición en TradingView y se dispare una alerta con webhook, esa señal se ejecute automáticamente en MT5 (en mi cuenta real o demo). El puente debe ser estable
I’m looking for a skilled MQL5 developer to build a complete Expert Advisor (EA) from scratch in MetaTrader 5. The strategy is a time-based liquidity sweep on the M5 chart, designed for futures instruments like ES and CL on AMP Futures (CQG). 📌 Strategy Overview: Sweep Phase: During a configurable time window, the EA should track the highest and lowest candle bodies (open/close, not wicks). Entry Phase: In a
Hi i have a mt4 account i have a bot but its not trading i would like advice how to make it work or can some create a bot for me to my needs and give me a price to pay or cn we negotiate a percentage
I'd like to add the following Features and Functionalities to my EA. Most of the functionalities have code available, which makes the work much easier. Addition: 1. TRADE EXECUTION MODE: Add an input parameter and name it "Trade execution" to select either BUY or SELL, and when either option is selected in the input parameter, the EA should automatically start BUYING or SELLING without clicking BUY OR SELL on the
I need a simple semi auto trading panel for MT4, with the following functionality: Manual Start: One button to start a Buy grid, and another to start a Sell grid. The first trade is placed immediately at current market price by me, manualy Grid Trading Logic: After the initial trade, the EA automatically opens additional trades every X pips (configurable) in the same direction (e.g., only buys for Buy grid). The
I want a trading system which I will take signals from it ... the system must come with arrows.. channel.. showing .. if the buy trend is strong or weak with percentage.. for mt5 I will send a example on the video ... I don't want indicators are I I hope I find a developer who's more experienced

Informazioni sul progetto

Budget
35+ USD
Scadenze
a 10 giorno(i)

Cliente

(10)
Ordini effettuati16
Numero di arbitraggi0