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.
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
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
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.
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.
🔹 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.
🔹 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.
🔹 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.
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.
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.
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.
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.
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.
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.
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.
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).
⚙️ Common Trade Settings
Trade Direction:
Options: Buy / Sell / Both
Magic Number: Unique ID for the trade (e.g., 0)
Order Comment: Customizable text label
Close on Opposite Signal: True / False
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
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.
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
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
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.
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)