HomeSample Page

Sample Page Title


FX AVALANCHE EA – HOW TO SET UP

INFO

Working Specs:

Core Options:


STEP 1 – INSTALLATION

For MT5:

  1. Buy FX Avalanche EA from the MQL5 Market
  2. The EA installs routinely into your MetaTrader 5 terminal
  3. Open the Navigator panel (Ctrl+N)
  4. Discover “FX Avalanche EA” underneath Professional Advisors > Market
  5. Drag it onto your required chart (any image, any timeframe)

For MT4:

  1. Buy FX Avalanche EA from the MQL5 Market
  2. The EA installs routinely into your MetaTrader 4 terminal
  3. Open the Navigator panel (Ctrl+N)
  4. Discover “FX Avalanche EA” underneath Professional Advisors > Market
  5. Drag it onto your required chart (any image, any timeframe)

Vital: Allow WebRequest for Information Filter

The Information Filter requires web entry to fetch the financial calendar.

MT4: Go to Instruments > Choices > Professional Advisors > Verify “Enable WebRequest for listed URL” and add:

https://nfs.faireconomy.media

MT5: Go to Instruments > Choices > Professional Advisors > Verify “Enable WebRequest for listed URL” and add:

https://nfs.faireconomy.media

Additionally be sure that “Enable algorithmic buying and selling” is enabled and “Enable reside buying and selling” is checked within the EA’s Frequent tab.


STEP 2 – STRATEGY SELECTION

FX Avalanche EA provides 4 distinct buying and selling methods managed by the strattype parameter:

RSI – Low Threat (strattype = 0)

Greatest for: Conservative merchants preferring indicator-confirmed entries. Appropriate for ranging and mean-reverting pairs.

MA – Medium Threat (strattype = 1) — DEFAULT

Greatest for: Balanced strategy that avoids opening new grids whereas an current one is energetic. Good general-purpose technique.

HED – Excessive Reward (strattype = 2)

Greatest for: Aggressive hedge/grid merchants who need steady market publicity in each instructions. Requires bigger accounts and understanding of grid threat.

MAN – Handbook (strattype = 3)

Greatest for: Merchants who wish to management entry timing whereas letting the EA handle the grid and exits.


STEP 3 – LOT SIZE CONFIGURATION

Handbook Mode (Default)

When lottype = Handbook (default), you set the bottom lot immediately:

Auto Mode

Set lottype = Automated to calculate tons from account steadiness:

Grid Lot Development

Every subsequent grid order multiplies the lot measurement by lotMul (default 1.5x). The mulSkip parameter controls how steadily the multiplier applies (default 1 = each order):

Grid StageCalculation (lotMul=1.5, mulSkip=1)Lot Measurement
Stage 10.01 × 1.5^00.01
Stage 20.01 × 1.5^10.02
Stage 30.01 × 1.5^20.03
Stage 40.01 × 1.5^30.05
Stage 50.01 × 1.5^40.08
Stage 60.01 × 1.5^50.11
Stage 70.01 × 1.5^60.17
Stage 80.01 × 1.5^70.26
Stage 90.01 × 1.5^80.38
Stage 100.01 × 1.5^90.58

With mulSkip = 2, the multiplier applies each 2nd order:

Grid StageCalculation (lotMul=1.5, mulSkip=2)Lot Measurement
Stage 10.01 × 1.5^00.01
Stage 20.01 × 1.5^00.01
Stage 30.01 × 1.5^10.02
Stage 40.01 × 1.5^10.02
Stage 50.01 × 1.5^20.03

All tons are rounded to your dealer’s lot step and capped by lotMax (0 = no cap).


STEP 4 – GRID SETTINGS

These parameters management how the grid is constructed and expanded:

ParameterDefaultDescription
takeprofit10Take revenue in pips (utilized to weighted common value)
dist220Distance in pips for the 2nd commerce
dist31third commerce distance multiplier (dist3 × dist2)
dist414th+ trades distance multiplier (recursive)
tradeLimit20Most orders per aspect (0 = no restrict, exhausting max 80)
allowHedgetrueEnable purchase and promote positions concurrently

Distance System

The grid makes use of a three-phase distance calculation that widens as depth will increase:

Commerce #SystemInstance (dist2=20, dist3=1, dist4=1)
2nddist220 pips
thirddist3 × dist21 × 20 = 20 pips
4thdist4 × dist3 × dist21 × 1 × 20 = 20 pips
fifthdist4 × (4th distance)1 × 20 = 20 pips
sixth+dist4 × (earlier distance)Recursive multiplication

With widening distances (dist2=20, dist3=1.5, dist4=1.2):

Commerce #SystemDistance
2nd2020 pips
third1.5 × 2030 pips
4th1.2 × 1.5 × 2036 pips
fifth1.2 × 3643 pips
sixth1.2 × 4352 pips

Growing dist3 and dist4 above 1.0 creates a widening grid that areas orders additional aside as drawdown deepens.

Grid Growth Logic

BUY Grid: First order opens on sign. Further purchase orders are positioned when Bid drops the required distance beneath the bottom current purchase order.

SELL Grid: First order opens on sign. Further promote orders are positioned when Bid rises the required distance above the very best current promote order.

Take Revenue Mechanism

The EA calculates a volume-weighted common entry value throughout all open orders of the identical sort:

avgPrice = Sum(tons × openPrice) / Sum(tons)

When greater than 1 order exists, particular person TPs are eliminated and the EA manages a single TP degree at  avgPrice + takeprofit  (purchase) or  avgPrice – takeprofit  (promote). Two horizontal strains are drawn on the chart:


STEP 5 – DD RECOVERY

The Drawdown Restoration engine reduces grid publicity by pairing orders for mixed revenue closing.

ParameterDefaultDescription
ddRecoverytrueAllow DD Restoration mechanism
ddrCount3Minimal open orders earlier than DDR prompts
ddrProfit1Mixed revenue goal ($) for pair closing

How It Works

  1. DDR prompts when the variety of open orders of 1 sort (purchase or promote) exceeds ddrCount
  2. The EA finds the highest open value order and the lowest open value order of that sort
  3. It calculates the mixed revenue (together with swap and fee) of each orders
  4. If the mixed revenue exceeds ddrProfit ($1 default), each orders are closed
  5. This course of repeats on each tick, regularly peeling orders from the grid edges

Instance

With 5 purchase orders (costs: 1.1000, 1.0980, 1.0960, 1.0940, 1.0920) and present Bid at 1.0970:

Vital: DDR doesn’t assure revenue. It reduces grid measurement when favorable pairings exist however can’t overcome a strongly trending market.


STEP 6 – LOSS CUT

The Loss Lower characteristic supplies an emergency exit when losses exceed a threshold.

ParameterDefaultDescription
lossCutTypeNoneLoss reduce mode: None, Quantity, or Proportion
lcvalue1000Threshold worth ($ for Quantity, % for Proportion)

None (Default)

No loss reduce. The EA depends on grid restoration, DD Restoration, and take revenue to handle positions.

Quantity Mode

Closes all orders of 1 sort when their mixed loss exceeds the greenback quantity:

Proportion Mode

Closes all orders of 1 sort when their mixed loss exceeds a share of account steadiness:

Notice: Loss reduce is evaluated independently for the purchase aspect and promote aspect. It doesn’t shut all orders – solely the aspect that breached the brink.


STEP 7 – RISK MANAGEMENT

ParameterDefaultDescription
oneTradePerCandletrueJust one new commerce per candlestick
allowHedgetrueEnable simultaneous purchase and promote positions
maxspread0Most unfold filter in factors (0 = disabled)
tradeLimit20Most orders per course (0 = max)
maxPairs0Most pairs to commerce concurrently (0 = no restrict)

One Commerce Per Candle

When enabled, the EA solely opens one new order per bar/candlestick on either side. This prevents rapid-fire grid growth throughout unstable circumstances.

Unfold Filter

Set maxspread to your dealer’s common unfold + buffer. When the present unfold exceeds this worth, no new orders are positioned. Set to 0 to disable.

Hedge Management

When allowHedge = false, the EA won’t open purchase orders if promote orders exist (and vice versa). Just one course at a time. Helpful for brokers that don’t help hedging.

Margin Verify

Earlier than each order, the EA validates that enough free margin exists. If margin is inadequate, the order is rejected and a message is logged.


STEP 8 – NEWS FILTER CONFIGURATION

Activation

The Information Filter is all the time energetic (no express allow/disable toggle). If WebRequest is configured, the EA fetches the reside financial calendar. If not, it falls again to pattern-based detection.

How It Works

  1. The EA fetches the weekly financial calendar from the FairEconomy API each 4 hours
  2. It filters occasions by foreign money and impression degree
  3. Buying and selling pauses quarter-hour earlier than and resumes half-hour after every matching occasion
  4. If the API is unavailable, a built-in fallback detects main occasions (NFP, FOMC, CPI, GDP, ECB Fee)

Impression Ranges

ParameterDefaultDescription
highImpacttrueFilter high-impact occasions (NFP, FOMC, and so forth.)
medImpacttrueFilter medium-impact occasions
lowImpactfalseFilter low-impact occasions

Timing

ParameterDefaultDescription
closeBefore (minutes)15Cease buying and selling X minutes earlier than occasion
startAfter (minutes)30Resume buying and selling X minutes after occasion
currenciesAUD,CAD,EUR,GBP,JPY,NZD,USDComma-separated listing of currencies to filter

Information Show on Chart

ParameterDefaultDescription
showNewsBoxtruePresent countdown field on chart
showNewsLinestruePresent vertical strains at occasion instances
showTexttruePresent occasion identify textual content labels
newsCount5Variety of upcoming occasions to show
showBgtrueBackground rectangle behind information field
bgcolorBlackInformation field background colour

Shade coding:

Sample-Based mostly Fallback

When the API is unavailable, the EA detects these main recurring occasions:

OccasionScheduleTime (UTC)
NFP1st Friday of month13:30
FOMCFinal Wednesday of FOMC months19:00
US CPITue/Wed, Tenth-Fifteenth of month13:30
US GDPFinal Thursday of Jan/Apr/Jul/Oct13:30
ECB FeeThursday, 1st half of month (excl. Aug)13:15 / 13:45

WebRequest Setup (REQUIRED for reside calendar)

You MUST add the information URL to your platform’s allowed listing:

MT4/MT5: Instruments > Choices > Professional Advisors > Enable WebRequest for listed URL > Add:

https://nfs.faireconomy.media

With out this step, the information filter will use solely the built-in fallback calendar.


STEP 9 – TIME & DAY MANAGEMENT

Buying and selling Hours

ParameterDefaultDescription
use_datefalseAllow buying and selling hour filter
startTime7:00Buying and selling begin time (server time)
endTime19:00Buying and selling finish time (server time)

When use_date = true, the EA solely opens new orders inside the specified window. Current positions proceed to be managed (TP, DD Restoration) outdoors buying and selling hours.

In a single day classes are supported: If startTime > endTime (e.g., begin=20:00, finish=06:00), the EA inverts the logic and trades through the in a single day interval.

Day Administration

DayDefaultDescription
mondaytrueEnable buying and selling on Monday
tuesdaytrueEnable buying and selling on Tuesday
wednesdaytrueEnable buying and selling on Wednesday
thursdaytrueEnable buying and selling on Thursday
fridayfalseEnable buying and selling on Friday

Notice: Friday is disabled by default to cut back weekend hole publicity. Allow it in case your technique and pairs profit from Friday buying and selling.


STEP 10 – GENERAL SETTINGS

ParameterDefaultDescription
MagicNumber9244Distinctive EA identifier for order administration
dbtypeFullDashboard show mode (Full / Mini / None)
highResfalseExcessive-resolution dashboard format
showCandleProftruePresent revenue textual content on chart at shut positions

Vital: If operating a number of situations of FX Avalanche on the identical account, every occasion MUST have a singular Magic Quantity to stop order conflicts.

RSI Sign Settings (strattype = RSI)

ParameterDefaultDescription
rsiperiod9RSI calculation interval
rsipriceShutRSI utilized value
roverbought70Overbought degree (triggers promote sign)
roversold30Oversold degree (triggers purchase sign)

MA Sign Settings (strattype = MA)

ParameterDefaultDescription
ma1period5Transferring Common interval
ma1shift0MA shift
ma1methodSMAMA technique (SMA, EMA, SMMA, LWMA)
ma1priceShutMA utilized value

PANEL

As soon as operating, the EA shows a real-time dashboard in your chart. Three show modes can be found:

Full Dashboard

Exhibits all info:

Mini Dashboard

Compact show exhibiting solely:

No Dashboard

No panel displayed. Purchase/Promote buttons nonetheless seem for management.

Interactive Purchase/Promote Buttons

TechniqueButton Habits
RSI / MA / HEDClick on to toggle that course ON (inexperienced) or OFF (pink). Disabling prevents new entries however current positions proceed to be managed.
HandbookClick on to position a Purchase or Promote market order instantly.

In case you are new to FX Avalanche, use these settings:

  1. strattype = MA (Medium Threat) – Default technique, enters solely when no positions exist
  2. lottype = Handbook, lotSize = 0.01 – Begin small till you perceive grid conduct
  3. tradeLimit = 10 – Cut back from default 20 to restrict most grid depth whereas studying
  4. ddRecovery = true – Preserve DD Restoration enabled to assist scale back drawdown
  5. Allow Information Filter – Add the WebRequest URL and guarantee highImpact = true
  6. friday = false – Preserve Friday buying and selling disabled to keep away from weekend gaps
  7. allowHedge = true – Enable each instructions for max grid restoration alternative
  8. Begin on Demo – Check for at the very least 2-4 weeks earlier than going reside
  9. One pair first – Grasp grid conduct on one pair earlier than including extra

IMPORTANT NOTES

  1. Technique Choice: RSI and MA methods generate indicator-based indicators. HED mode opens positions routinely with out sign affirmation. Handbook mode requires you to click on buttons. Select based mostly in your involvement desire and threat tolerance.

  2. Grid Threat: Grid mode with lot multiplier will increase publicity geometrically. A ten-level grid with lotMul=1.5 ends in a closing order roughly 38x the preliminary lot measurement. At all times check on demo first and use tradeLimit + lotMax to cap threat.

  3. DD Restoration: DDR is just not a assured revenue mechanism. It reduces grid measurement when favorable order pairs exist. In a strongly trending market with all orders on one aspect, DDR compares orders of the identical sort (e.g., all buys) — the very best and lowest priced purchase orders are paired.

  4. Multi-Pair: FX Avalanche helps operating on a number of pairs concurrently. Every chart occasion should have a singular Magic Quantity. Use maxPairs to restrict whole simultaneous pair publicity.

  5. VPS: For finest outcomes, run on a VPS situated near your dealer’s server. The information filter and grid administration require the EA to be operating constantly.

  6. Dealer: Select an ECN dealer with tight spreads. Extensive spreads will set off the maxspread filter and stop buying and selling. In case your dealer doesn’t help hedging, set allowHedge = false.

  7. WebRequest: The information filter REQUIRES the WebRequest URL to be added in platform settings. With out it, solely the pattern-based fallback works (NFP, FOMC, CPI, GDP, ECB solely).

  8. Hedging Account (MT5): FX Avalanche requires a hedging account on MT5. The EA will show an alert and fail to initialize on netting accounts as a result of it holds simultaneous purchase and promote positions.

  9. One Commerce Per Candle: The default oneTradePerCandle = true prevents the grid from increasing a couple of degree per bar. Disabling this enables quicker grid constructing however will increase threat throughout unstable strikes.


Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles