EMBER FUSE EA - HOW TO SET UP

17 April 2026, 13:43
Kestutis Balciunas
0
37
EMBER FUSE EA - HOW TO SET UP

INFO

Working Specifications:

  • Symbols: All FX pairs, XAUUSD (Gold), indices, crypto - any symbol your broker offers
  • Timeframe: Any (SuperTrend runs on the chart TF or a specified TF)
  • Minimum Deposit: $500 per 0.01 lot ($1,000+ recommended)
  • Leverage: 1:100 or higher recommended
  • Account Type: Any (Hedging account preferred for MT5)
  • Broker: ECN broker with tight spreads recommended
  • VPS: Highly recommended for uninterrupted 24/5 operation

Core Features:

  • SuperTrend signal engine (configurable period, deviation, calc type)
  • Dynamic grid distances with martingale lot progression
  • Virtual or Real TP/SL and Trailing Stop
  • Weighted-average basket close (one side closed as a single basket)
  • DD Reduction algorithm pairs profitable + losing orders to shrink grids
  • Hedge mode (simultaneous buy and sell grids)
  • Autolot sizing based on free margin
  • Live News Filter with economic calendar integration
  • Interactive dashboard with 4 toggle/action buttons
  • 6 pre-optimized preset files included (FX + XAUUSD, Safe/Moderate/Aggressive)

STEP 1 - INSTALLATION

For MT5:

  1. Purchase Ember Fuse EA from the MQL5 Market
  2. The EA installs automatically into your MetaTrader 5 terminal
  3. Open the Navigator panel (Ctrl+N)
  4. Find "Ember Fuse EA" under Expert Advisors > Market
  5. Drag it onto your desired chart (any symbol, any timeframe)

For MT4:

  1. Purchase Ember Fuse EA from the MQL5 Market
  2. The EA installs automatically into your MetaTrader 4 terminal
  3. Open the Navigator panel (Ctrl+N)
  4. Find "Ember Fuse EA" under Expert Advisors > Market
  5. Drag it onto your desired chart (any symbol, any timeframe)

Important: Enable WebRequest for News Filter

The News Filter requires internet access to fetch the economic calendar.

MT4: Go to Tools > Options > Expert Advisors > Check "Allow WebRequest for listed URL" and add:

https://nfs.faireconomy.media

MT5: Go to Tools > Options > Expert Advisors > Check "Allow WebRequest for listed URL" and add:

https://nfs.faireconomy.media

Also make sure "Allow algorithmic trading" is enabled.

Load a Preset

In the EA Inputs tab, click Load and select a preset matching your instrument and risk profile (e.g.,  Ember_Fuse_XAUUSD_Safe.set ). Click OK to start.


STEP 2 - SIGNAL ENGINE (SUPERTREND)

Ember Fuse opens new series only when SuperTrend flips direction on a confirmed (closed) bar.

  • BUY new series: SuperTrend flips from DOWN to UP
  • SELL new series: SuperTrend flips from UP to DOWN

Once a series is open, further grid orders are added based on distance rules (not on signal changes). A new series can only start after the current one fully closes unless  Flag_Use_hedge = true .

SuperTrend Parameters

Parameter Default Description
TF Current Timeframe for SuperTrend calculation (PERIOD_CURRENT = chart TF)
ST_Period 66 SuperTrend period
Deviation 2.0 Deviation multiplier applied to the volatility measure
ST_MidPricePeriod 10 Mid-price smoothing period
ST_CalcType 0 Volatility measure (0 = ATR, 1 = StdDev, 2 = StdError)

Tuning tips:

  • Shorter period (30-50) — more signals, more responsive to short-term moves, noisier
  • Longer period (66-100) — fewer signals, cleaner trend identification, default 66 is balanced
  • Higher TF than chart TF — set  TF = PERIOD_H4  while running on M15 for multi-timeframe confirmation
  • Calc Type = 1 (StdDev) — statistical volatility, better for ranging instruments
  • Calc Type = 2 (StdError) — smoother, laggier, fewer false flips

Closing on Reverse Signal

Parameter Default Description
flag_Close_ot_Obr false Close current basket when SuperTrend flips the opposite way

Enable this to force early basket close on reverse signals instead of waiting for the weighted-average TP. Adds responsiveness but forfeits grid recovery potential.


STEP 3 - MONEY MANAGEMENT

Autolot (Free-Margin Based)

Parameter Default Description
fA_MM false Enable autolot (lot size from free margin)
iAuLot 1000 Free margin required per 0.01 lot

When fA_MM = true, the EA calculates:

lots = (FreeMargin / iAuLot) * 0.01

  • iAuLot = 1000  → $1,000 free margin = 0.01 lot
  • iAuLot = 500  → $500 free margin = 0.01 lot (more aggressive)

Manual (Fixed) Lot

Set fA_MM = false and use:

Parameter Default Description
dVol 0.01 Starting lot size for every new series
dML 500.0 Maximum lot size per order (hard cap)

Martingale Grid Progression

Parameter Default Description
MM 1.5 Lot multiplier per grid level

Grid order N uses  dVol * MM^(N-1) , capped by  dML .

Lot progression example (dVol = 0.01, MM = 1.5):

Grid Level Calculation Lot Size
1 (initial) 0.01 × 1.5^0 0.01
2 0.01 × 1.5^1 0.02
3 0.01 × 1.5^2 0.03
4 0.01 × 1.5^3 0.04
5 0.01 × 1.5^4 0.05
6 0.01 × 1.5^5 0.08
7 0.01 × 1.5^6 0.11
8 0.01 × 1.5^7 0.17
9 0.01 × 1.5^8 0.26
10 0.01 × 1.5^9 0.38

All lots are rounded to the broker's lot step and capped by  dML .

Conservative alternative: Set  MM = 1.3  for gentler progression. Aggressive:  MM = 2.0  (not recommended without deep capital).


STEP 4 - GRID DISTANCES (DYNAMIC)

The grid uses a two-phase distance system: fixed spacing for the first N orders, then dynamically widening distances for deeper levels to slow capital commitment.

Parameter Default Description
Fix_Distance 200 Fixed distance in points for early grid orders
Order_dinamic_distance 6 Number of orders before switching to dynamic distance
Dynamic_distance_start 200 Starting distance when dynamic mode activates
Distance_multiplier 1.2 Multiplier applied per subsequent dynamic order

How It Works

Using the defaults:

Grid Level Phase Distance
Orders 1-6 Fixed 200 pts each
Order 7 Dynamic (start) 200 pts
Order 8 Dynamic 200 × 1.2 = 240 pts
Order 9 Dynamic 240 × 1.2 = 288 pts
Order 10 Dynamic 288 × 1.2 = 346 pts
Order 11 Dynamic 346 × 1.2 = 415 pts
Order 12 Dynamic 415 × 1.2 = 498 pts

The dynamic phase creates a widening grid that spaces orders further apart as drawdown deepens. Deeper grids consume margin more slowly, giving price more room to retrace before the next add.

Pause Between Orders

Parameter Default Description
MinuteStop 0 Minimum minutes between grid orders (0 = disabled)

Set this to  5  or  10  to prevent rapid-fire grid expansion during spike moves. The EA will still monitor distance triggers but waits until the cooldown has elapsed before opening the next order.


STEP 5 - TAKE PROFIT & STOP LOSS

Each of TP and SL can be set independently to Virtual or Real:

Mode How it works
Virtual EA manages exit levels internally. Nothing placed on broker server. Requires EA to be running. Hides levels from broker.
Real EA places actual TP/SL on each order via OrderModify(). Visible to broker. Works even if EA disconnects.

TP/SL Parameters

Parameter Default Description
TPR 0 Real take profit in points (0 = disabled)
TPV 100 Virtual take profit in points (0 = disabled)
SLR 0 Real stop loss in points (0 = disabled)
SLV 0 Virtual stop loss in points (0 = disabled)

Default behavior: Only virtual TP is active ( TP_V_ = 100 ). No stop loss. The EA relies on trend continuation and DD Reduction to close losing baskets.

How Virtual TP Works (Basket Close)

Virtual TP is measured from the weighted average entry price across all open orders on one side. When price reaches:

  • weighted_avg_buy + TP_V_  (for buy basket)
  • weighted_avg_sell - TP_V_  (for sell basket)

...the entire basket is closed as a single group. As the grid deepens, the weighted average shifts toward the deepest orders, so a small retracement from the lowest grid level is enough to close the whole basket in profit.

Important: If you disable TPV (set to 0) without setting TPR, the EA has no exit mechanism and relies entirely on DD Reduction and/or reverse-signal closing.


STEP 6 - TRAILING STOP

Parameter Default Description
Flag_Real_Tral false Trailing mode (false = Virtual, true = Real)
iTS 0 Trail Start - points of profit before trailing activates (0 = disabled)
iTD 200 Trail Step - distance/step in points

How it works: Once the basket profit exceeds  iTS  points, the EA begins trailing. If price retraces by  iTD  points from the peak, the basket closes (Virtual mode) or each order's SL is modified (Real mode).

Default: Trailing is disabled ( iTS = 0 ). When disabled, the EA exits only via basket TP or reverse signal.


STEP 7 - DD REDUCTION ALGORITHM

The DD Reduction algorithm pairs profitable and losing orders to shrink the grid without waiting for a full basket retracement.

Parameter Default Description
Reduction true Enable DD Reduction algorithm
ReductionOrderNumber 6 Minimum open orders on one side before DD Reduction activates
ReductionPercent 1 Profit threshold (%) for pair close

How it works:

  1. DD Reduction activates when order count on one side reaches  ReductionOrderNumber
  2. The EA identifies the most profitable order and the most losing order on that side
  3. When their combined profit meets or exceeds  ReductionPercent  of the total lots cost, both are closed
  4. This process repeats on every tick, gradually peeling order pairs from the grid edges

Benefit: Reduces grid size and frees margin without waiting for price to reverse all the way back to the virtual basket TP level.

When to disable: If you prefer pure basket exits, set  Reduction = false . The basket will then close only via TP, trailing, or reverse signal.


STEP 8 - TRADE FILTERS

Spread Filter

Parameter Default Description
iMaxS 0 Maximum spread in points (0 = disabled)

When enabled, new entries (including grid additions) are blocked when spread exceeds this value. Essential for XAUUSD and exotic pairs during low-liquidity hours.

Trading Hours

Parameter Default Description
iStart_H 0 Trading start hour, server time (0-23)
iEnd_H 0 Trading end hour, server time (0-23)

Set  iStart_H = 0, iEnd_H = 0  to trade 24 hours. Set  iStart_H = 7, iEnd_H = 17  to restrict new entries to the London/NY overlap window. Grid additions and exits still run outside the window - the filter only affects new series.

Max Orders Cap

Parameter Default Description
iMO 100 Hard cap on total open orders across all sides

Combined with  dML  (max lot per order), this is the primary grid depth safety ceiling.

Hedge Mode

Parameter Default Description
Flag_Use_hedge true Allow simultaneous buy and sell baskets

When  true , the EA can hold buy and sell grids at the same time (faster recovery in volatile markets). When  false , only one direction can be active at a time.

Note: On MT5 netting accounts, hedging is not possible at the platform level. Use a hedging account if you want this feature.

Manual Order Support

Parameter Default Description
fHO true Include manually placed orders in grid management

When enabled, orders you place manually on the same chart (without the EA's magic number) are still included in basket averaging and DD Reduction calculations. Useful for supplementing the EA with discretionary entries.


STEP 9 - NEWS FILTER CONFIGURATION

How It Works

  1. The EA fetches the weekly economic calendar from the FairEconomy API at startup and every few hours
  2. It filters events by currency and impact level
  3. Trading pauses before and resumes after each matching event
  4. If the API is unavailable, a built-in fallback detects major events (NFP, FOMC, CPI, GDP, ECB Rate)

Timing

Parameter Default Description
closeBefore 15 Stop trading X minutes before event
startAfter 30 Resume trading X minutes after event
currencies "AUD,CAD,EUR,GBP,JPY,NZD,USD" Comma-separated currencies to filter

Impact Levels

Parameter Default Description
highImpact true Filter high-impact events (NFP, FOMC, CPI)
medImpact true Filter medium-impact events
lowImpact false Filter low-impact events

To effectively disable the News Filter: Set all three impact flags to  false , or set  currencies = "" . There is no single on/off toggle - the filter is always running but will find no matches.

News Display on Chart

Parameter Default Description
showNewsBox true Show countdown box on chart
showBg true Show background box behind the news box
bgcolor Black News box background color
newsCount 5 Number of upcoming events to display
showNewsLines true Show vertical lines at event times
showText true Show event name text labels
clrHighNews clrRed High-impact line/text color
clrMedNews clrOrange Medium-impact line/text color
clrLowNews clrYellow Low-impact line/text color

WebRequest Setup (REQUIRED)

You MUST add the news URL to your platform's allowed list:

MT4/MT5: Tools > Options > Expert Advisors > Allow WebRequest for listed URL > Add:

https://nfs.faireconomy.media

Without this step, the news filter will use only the built-in fallback calendar.


STEP 10 - DASHBOARD

Once running, the EA displays a real-time dashboard on your chart showing:

  • EA name, symbol, chart timeframe, current spread
  • Buy order count and floating buy P/L
  • Sell order count and floating sell P/L
  • Total P/L, account balance, equity, drawdown %
  • Server time and terminal status
  • SuperTrend direction indicator
  • News filter countdown

Interactive Control Buttons

The panel includes 4 clickable buttons:

Button Action
Buy ON / Buy OFF Toggle buy-side trading on/off. Existing buy orders continue to be managed.
Sell ON / Sell OFF Toggle sell-side trading on/off. Existing sell orders continue to be managed.
New Series: ON / OFF Toggle new series openings. When OFF, the EA manages existing baskets but does NOT start new ones on SuperTrend flips.
Close All Immediately closes every order managed by this EA instance (by Magic Number).

Use case for "New Series: OFF": Before a weekend or major news event, toggle New Series OFF to let current baskets close out naturally without opening fresh exposure.

Panel Customization

Parameter Default Description
fDraw true Enable/disable panel display
X1 10 Panel X position (pixels from top-left)
Y1 100 Panel Y position (pixels from top-left)
cCIP Gainsboro Panel background color
cCB Dark Gray Border color
cCT Dim Gray Border text color
cOpClBut Dark Orchid Open/Close button color
cTrNSStr1 Green Button ON color (Trade / New Series)
cTrNSStr2 Red Button OFF color (Trade / New Series)
cTimeTerminal Blue Terminal time color
Font Arial Panel font name
FontSize 10 Panel font size
Font_Metki Verdana Result text font
Size_Metki 14 Result text font size
ColorText_Metki White Result text color
Color_Fon_Metki Green Result text background color

Set  fDraw = false  to hide the panel (reduces CPU usage on VPS).


PRESETS

6 pre-optimized preset files are included:

Preset File Instrument Risk Notable Settings
Ember_Fuse_FX_Safe.set FX pairs Safe MM 1.3, Max 50 orders, Hours 7-17
Ember_Fuse_FX_Moderate.set FX pairs Moderate MM 1.65, Hedge ON, Hours 2-23
Ember_Fuse_FX_Aggressive.set FX pairs Aggressive MM 2.0, 24h trading
Ember_Fuse_XAUUSD_Safe.set Gold Safe MM 1.3, Max 50 orders, Hours 8-18
Ember_Fuse_XAUUSD_Moderate.set Gold Moderate MM 1.5, Hedge ON, Hours 5-11
Ember_Fuse_XAUUSD_Aggressive.set Gold Aggressive MM 1.8, 24h trading


Selecting a Preset

  1. Identify your instrument — FX pair or XAUUSD (Gold)
  2. Choose risk profile:
    • Safe — Smallest martingale, tighter trading hours, lower grid depth. Best for first deployment.
    • Moderate — Balanced growth with hedge mode on. Best after 2-4 weeks of Safe observation.
    • Aggressive — Highest martingale, 24h trading. Requires deeper capital and higher risk tolerance.
  3. Load it: EA Inputs tab → Click Load → Select the  .set  file → Click OK

For Instruments Not Covered (indices, crypto, exotic FX)

Start with the  Ember_Fuse_FX_Safe  preset as a base and manually adjust:

  • Fix_Distance  and  Dynamic_distance_start  — wider for more volatile instruments
  • iMaxS  — raise the spread filter for instruments with wide normal spreads
  • ST_Period  — longer period for choppier instruments

If you are new to Ember Fuse EA, use these settings:

  1. Load a Safe preset matching your instrument ( Ember_Fuse_FX_Safe  or  Ember_Fuse_XAUUSD_Safe )
  2. dVol = 0.01 (smallest starting lot)
  3. fA_MM = false (use fixed lot until you see the grid behavior)
  4. iMO = 50 (hard-cap the grid during learning)
  5. Reduction = true (let DD Reduction help shrink grids automatically)
  6. highImpact = true, medImpact = true (news filter active)
  7. Start on Demo (test for at least 2-4 weeks before going live)

IMPORTANT NOTES

  1. Presets matter: The 6 included presets contain instrument-specific tuning for grid spacing, lot progression, SuperTrend parameters, and trading hours. Always load a preset before trading - the default in-code values are generic baselines.

  2. Universal symbol support: Ember Fuse works on any instrument your broker offers. For non-FX/non-Gold instruments (indices, crypto), start with the FX Safe preset and manually widen  Fix_Distance  and  Dynamic_distance_start  for higher volatility.

  3. Multi-instance: If running Ember Fuse on multiple charts, each instance MUST have a unique  Magic  number to prevent order conflicts.

  4. VPS: For best results, run on a VPS located close to your broker's server. Grid management and virtual TP require the EA to be running continuously.

  5. Broker: Choose an ECN broker with tight spreads on your target instruments. Wide spreads will trigger the  iMaxS  filter and prevent trading, and will eat into virtual TP distances.

  6. Martingale Risk: Grid with martingale increases exposure exponentially. At  MM = 1.5  with 10 levels, the final order is ~38x the starting lot. Always use  iMO  (Max Orders) and  dML  (Max Lot) to cap risk.

  7. Hedging: If your broker/account does not support hedging (e.g., MT5 netting accounts), set  Flag_Use_hedge = false . The EA will then trade only one direction at a time.

  8. WebRequest: The news filter REQUIRES the WebRequest URL to be added in platform settings. Without it, only the pattern-based fallback works (NFP, FOMC, CPI, GDP, ECB).

  9. No news on/off toggle: The news filter is always active. To disable it, set all impact flags ( highImpact ,  medImpact ,  lowImpact ) to  false , or clear the  currencies  list.

  10. Virtual TP dependency: Default settings only use virtual TP ( TP_V_ = 100 ). This means the EA MUST be running continuously to manage exits. On disconnection, open baskets remain without TP until the EA reconnects. Consider enabling  TP_R_  (real TP) for disconnect protection.


CONTACT & SUPPORT