Product Hyperlinks
INFO
Working Specs:
- Symbols: XAUUSD, GOLD (gold devices solely)
- Timeframe: H1 (1-hour)
- Minimal Deposit: $1,000 advisable ($5,000+ for deeper martingale ranges)
- Leverage: 1:100 or increased advisable
- Account Kind: Any (Hedging account most popular for MT5)
- Dealer: ECN dealer with tight gold spreads advisable
- VPS: Extremely advisable for uninterrupted 24/5 operation
Core Options:
- Twin SMA channel breakout entries (SMA Excessive + SMA Low) with configurable breakout distance
- Non-compulsory RSI momentum filter to dam entries in overbought/oversold situations
- Progressive martingale restoration with as much as 10 ranges and exponential lot scaling
- 7 individually configurable grid correction distance tiers
- Weighted-average take revenue for martingale sequence closing
- Reside Information Filter with financial calendar integration
- Threat safeguards: Max Drawdown, Day by day Loss restrict, Max Orders, Max Lot, Unfold filter
- Interactive on-chart dashboard with 5 one-click management buttons
STEP 1 – INSTALLATION
For MT5:
- Buy Aquila Gold EA from the MQL5 Market
- The EA installs mechanically into your MetaTrader 5 terminal
- Open the Navigator panel (Ctrl+N)
- Discover “Aquila Gold EA” underneath Skilled Advisors > Market
- Drag it onto an XAUUSD H1 chart
For MT4:
- Buy Aquila Gold EA from the MQL5 Market
- The EA installs mechanically into your MetaTrader 4 terminal
- Open the Navigator panel (Ctrl+N)
- Discover “Aquila Gold EA” underneath Skilled Advisors > Market
- Drag it onto an XAUUSD H1 chart
Vital: Allow WebRequest for Information Filter
The Information Filter requires web entry to fetch the financial calendar.
MT4: Go to Instruments > Choices > Skilled Advisors > Test “Permit WebRequest for listed URL” and add:
https://nfs.faireconomy.media
MT5: Go to Instruments > Choices > Skilled Advisors > Test “Permit WebRequest for listed URL” and add:
https://nfs.faireconomy.media
Additionally be sure “Permit algorithmic buying and selling” is enabled.
STEP 2 – ENTRY LOGIC (MA BREAKOUT + RSI)
Aquila Gold EA enters trades when worth breaks out of a twin SMA channel, optionally confirmed by RSI. Each situations should be met concurrently on a closed bar.
SMA Channel Breakout
The EA maintains two easy shifting averages on the configured timeframe:
| Parameter | Default | Description |
|---|---|---|
| InpMA_Period_High | 14 | SMA interval utilized to Excessive costs |
| InpMA_Period_Low | 14 | SMA interval utilized to Low costs |
| InpMA_TF | H1 | Timeframe for MA calculation |
| InpBreakoutDistance | 100 | Breakout distance in factors |
- BUY: Shut worth breaks above SMA(Excessive) + BreakoutDistance
- SELL: Shut worth breaks under SMA(Low) – BreakoutDistance
The EA makes use of confirmed (closed) bar knowledge to forestall false alerts and requires a contemporary breakout from a previous non-breakout state to keep away from re-entry into present strikes.
RSI Momentum Filter
| Parameter | Default | Description |
|---|---|---|
| InpUseRSI | true | Allow/disable RSI filter |
| InpRSI_Period | 14 | RSI calculation interval |
| InpRSI_Overbought | 70 | Blocks BUY entries when RSI above this stage |
| InpRSI_Oversold | 30 | Blocks SELL entries when RSI under this stage |
Set InpUseRSI = false to commerce pure breakouts with out RSI affirmation (not advisable – will increase false sign charge).
STEP 3 – MARTINGALE RECOVERY
When a commerce strikes in opposition to the place, the EA opens further orders at progressively wider distances to common down the entry worth. The complete sequence is closed on weighted-average take revenue.
Core Martingale Settings
| Parameter | Default | Description |
|---|---|---|
| InpUseMartingale | true | Allow martingale restoration |
| InpLotMultiplier | 2.0 | Lot multiplier per restoration stage |
| InpMaxMartLevels | 10 | Most restoration ranges per sequence |
| InpMaxLots | 100.0 | Exhausting cap on per-order lot dimension |
Lot Development Instance (InpInitialLots = 0.01, InpLotMultiplier = 2.0)
| Stage | Calculation | Lot Dimension |
|---|---|---|
| 1 (preliminary) | 0.01 × 2^0 | 0.01 |
| 2 | 0.01 × 2^1 | 0.02 |
| 3 | 0.01 × 2^2 | 0.04 |
| 4 | 0.01 × 2^3 | 0.08 |
| 5 | 0.01 × 2^4 | 0.16 |
| 6 | 0.01 × 2^5 | 0.32 |
| 7 | 0.01 × 2^6 | 0.64 |
| 8 | 0.01 × 2^7 | 1.28 |
| 9 | 0.01 × 2^8 | 2.56 |
| 10 | 0.01 × 2^9 | 5.12 |
All tons are rounded to dealer’s lot step and capped by InpMaxLots .
Conservative different: Set InpLotMultiplier = 1.5 for a gentler development – stage 10 turns into 0.38 lot as an alternative of 5.12 lot.
STEP 4 – GRID DISTANCE TIERS
In contrast to fixed-distance grids, Aquila Gold makes use of 7 individually configurable distance tiers. Every martingale correction might be positioned at a unique distance from the earlier entry, letting you widen the grid progressively to sluggish capital dedication throughout deep drawdowns.
| Parameter | Default | Description |
|---|---|---|
| InpCorrDist1 | 100 | Distance to stage 1 correction (factors) |
| InpCorrDist2 | 200 | Distance to stage 2 correction (factors) |
| InpCorrDist3 | 300 | Distance to stage 3 correction (factors) |
| InpCorrDist4 | 400 | Distance to stage 4 correction (factors) |
| InpCorrDist5 | 500 | Distance to stage 5 correction (factors) |
| InpCorrDist6 | 600 | Distance to stage 6 correction (factors) |
| InpCorrDist7 | 700 | Distance to stage 7 correction (factors) |
How It Works
After the preliminary order opens, the EA waits for worth to maneuver in opposition to it by InpCorrDist1 factors, then opens the extent 1 correction. After stage 1, it waits one other InpCorrDist2 factors for stage 2, and so forth.
Default grid footprint (from preliminary entry):
| Correction Stage | Cumulative Distance |
|---|---|
| Stage 1 | 100 pts |
| Stage 2 | 300 pts |
| Stage 3 | 600 pts |
| Stage 4 | 1000 pts |
| Stage 5 | 1500 pts |
| Stage 6 | 2100 pts |
| Stage 7 | 2800 pts |
Tuning for volatility: Widen all distances proportionally for high-volatility situations (e.g., double them throughout NFP week). Slender them for ranging markets. The widening sample (every stage bigger than the earlier) is the important thing design precept – maintain it monotonic.
Be aware: Corrections past stage 7 (ranges 8-10) reuse InpCorrDist7 because the spacing.
STEP 5 – TAKE PROFIT (WEIGHTED AVERAGE)
Aquila Gold makes use of two take revenue modes that function at totally different factors within the cycle.
Single-Order TP
| Parameter | Default | Description |
|---|---|---|
| InpTakeProfit | 100 | Take revenue in factors (utilized to the preliminary order when no grid is energetic) |
When solely the preliminary order is open (no corrections), the EA targets this fastened distance from the entry worth.
Weighted-Common Martingale TP
| Parameter | Default | Description |
|---|---|---|
| InpMartingaleTP | 10 | Martingale TP distance from the weighted common entry worth (factors) |
As soon as a martingale sequence is energetic (a number of corrections added), the EA calculates the volume-weighted common entry worth throughout all orders within the sequence, then closes the complete sequence when worth reaches weighted common + InpMartingaleTP (purchase) or weighted common – InpMartingaleTP (promote).
Why that is environment friendly: As lot sizes develop exponentially by means of the martingale ranges, the weighted common shifts closely towards the latest (largest) orders. A small retracement from the deepest correction is sufficient to shut the entire sequence in revenue – no want for worth to reverse to the unique entry stage.
STEP 6 – RISK MANAGEMENT
| Parameter | Default | Description |
|---|---|---|
| InpMaxDDPercent | 50.0 | Max fairness drawdown % earlier than emergency shut (0 = disabled) |
| InpDailyLossPercent | 0.0 | Max every day loss % earlier than buying and selling stops (0 = disabled) |
| InpCloseOnDD | true | Shut all positions when Max DD is hit |
| InpMaxOrders | 20 | Exhausting cap on whole open orders (purchase + promote) |
| InpMaxSpread | 50 | Blocks new entries when unfold exceeds this (factors) |
Beneficial Settings by Threat Profile
| Profile | Max DD | Day by day Loss | Max Orders | Lot Multiplier |
|---|---|---|---|---|
| Conservative | 30% | 5% | 10 | 1.5 |
| Balanced (default) | 50% | 0% (disabled) | 20 | 2.0 |
| Aggressive | 70% | 0% | 20 | 2.0 |
Vital: Setting InpMaxDDPercent = 0 disables the drawdown safeguard totally. All the time set a non-zero worth on dwell accounts.
STEP 7 – TIME FILTER
Non-compulsory hour-based buying and selling window to limit entries to particular classes.
| Parameter | Default | Description |
|---|---|---|
| InpUseTimeFilter | false | Allow hour-based buying and selling window |
| InpStartHour | 2 | Buying and selling begin hour (server time, 0-23) |
| InpEndHour | 22 | Buying and selling finish hour (server time, 0-23) |
When enabled, the EA solely opens new preliminary entries throughout the window. Current martingale sequence proceed to handle corrections and exits whatever the hour – the filter solely impacts contemporary cycle begins.
Use case: Keep away from Asian session liquidity lows on gold by setting Begin = 7 and Finish = 21 (server time).
STEP 8 – NEWS FILTER CONFIGURATION
Activation
Set InpUseNewsFilter = true to allow dwell financial calendar filtering.
How It Works
- The EA fetches the weekly financial calendar from the FairEconomy API each few hours
- It filters occasions by foreign money and influence stage
- Buying and selling pauses earlier than and resumes after every matching occasion
- If the API is unavailable, a built-in fallback detects main occasions (NFP, FOMC, CPI, GDP, ECB Charge)
Timing
| Parameter | Default | Description |
|---|---|---|
| InpNewsBeforeMins | 50 | Cease buying and selling X minutes earlier than occasion |
| InpNewsAfterMins | 30 | Resume buying and selling X minutes after occasion |
| InpNewsCurrencies | “USD” | Comma-separated currencies to filter (e.g., “USD,EUR,GBP”) |
Impression Ranges
| Parameter | Default | Description |
|---|---|---|
| InpHighImpact | true | Filter high-impact occasions (NFP, FOMC, CPI) |
| InpMedImpact | false | Filter medium-impact occasions |
| InpLowImpact | false | Filter low-impact occasions |
Information Show on Chart
| Parameter | Default | Description |
|---|---|---|
| InpShowNewsLines | true | Present vertical strains at occasion occasions |
| InpShowNewsText | true | Present occasion identify textual content labels |
| InpNewsDisplayCount | 5 | Variety of upcoming occasions to show |
| InpClrHighNews | clrRed | Excessive influence line/textual content colour |
| InpClrMedNews | clrOrange | Medium influence line/textual content colour |
| InpClrLowNews | clrYellow | Low influence line/textual content colour |
WebRequest Setup (REQUIRED)
You MUST add the information URL to your platform’s allowed checklist:
MT4/MT5: Instruments > Choices > Skilled Advisors > Permit WebRequest for listed URL > Add:
https://nfs.faireconomy.media
With out this step, the information filter will use solely the built-in fallback calendar protecting NFP, FOMC, CPI, GDP, and ECB Charge choices.
Gold-specific observe: As a result of XAUUSD is very delicate to USD-denominated information, the default foreign money filter is USD . Add different currencies solely if you need wider pauses.
STEP 9 – GENERAL SETTINGS
| Parameter | Default | Description |
|---|---|---|
| InpInitialLots | 0.01 | Preliminary lot dimension for the primary order in a cycle |
| InpTakeProfit | 100 | Fastened TP for the preliminary order (factors) |
| InpMartingaleTP | 10 | Martingale sequence TP from weighted common (factors) |
| InpMaxSpread | 50 | Max unfold filter (factors) |
| InpMaxOrders | 20 | Exhausting cap on whole open orders |
| InpMagicNumber | 20250407 | Distinctive EA identifier for order administration |
| InpEAComment | “AquilaGold” | Remark textual content hooked up to all orders |
Vital: If operating a number of situations of Aquila Gold on the identical account (e.g., one on XAUUSD and one on GOLD.m), every occasion MUST have a novel Magic Quantity to forestall order conflicts.
DASHBOARD
As soon as operating, the EA shows a real-time information panel in your chart displaying:
- Image, timeframe, present unfold, server time
- Account steadiness, fairness, free margin, floating P/L
- Purchase sequence: order depend, weighted common entry, present drawdown
- Promote sequence: order depend, weighted common entry, present drawdown
- Present sign readings: SMA(Excessive), SMA(Low), RSI
- Information filter standing and countdown to subsequent filtered occasion
- Commerce ON/OFF standing
Interactive Management Buttons
The panel consists of 5 clickable buttons for one-click order administration:
| Button | Motion |
|---|---|
| Commerce ON / Commerce OFF | Toggles new entries on/off. Current positions proceed to be managed. |
| Shut All | Instantly closes each place managed by this EA occasion (by Magic Quantity). |
| Shut Purchase | Closes all purchase positions (complete purchase sequence). |
| Shut Promote | Closes all promote positions (complete promote sequence). |
| Del Pending | Deletes all pending orders for this EA occasion. |
Panel Customization
| Parameter | Default | Description |
|---|---|---|
| InpDrawPanel | true | Allow/disable panel show |
| InpPanelX | 10 | Panel X place (pixels from top-left) |
| InpPanelY | 25 | Panel Y place (pixels from top-left) |
| InpPanelBgColor | darkish navy | Panel background colour |
| InpPanelBorderColor | darkish grey | Panel border colour |
| InpPanelTextColor | mild grey | Panel textual content colour |
| InpPanelHeaderColor | sky blue | Panel header colour |
| InpFont | Consolas | Panel font identify |
| InpFontSize | 9 | Panel font dimension |
Set InpDrawPanel = false to cover the panel (reduces CPU utilization on VPS).
RECOMMENDED SETTINGS FOR BEGINNERS
If you’re new to Aquila Gold EA, use these conservative settings:
- InpInitialLots = 0.01 (begin small – martingale grows shortly)
- InpLotMultiplier = 1.5 (gentler than the default 2.0)
- InpMaxMartLevels = 5 (cap grid depth till you perceive the habits)
- InpMaxDDPercent = 30.0 (tight drawdown security internet)
- InpUseRSI = true (maintain the RSI filter on – reduces false alerts)
- InpUseNewsFilter = true (important for gold on high-impact USD occasions)
- Begin on Demo (take a look at for at the least 2-4 weeks earlier than going dwell)
IMPORTANT NOTES
Gold solely: Aquila Gold is designed solely for XAUUSD / GOLD. Don’t run it on foreign exchange pairs – the breakout distance, grid tiers, and TP distances are all calibrated for gold’s level worth and volatility.
H1 timeframe: The EA is designed for H1. Operating it on decrease timeframes will produce way more alerts and dramatically change the danger profile – not advisable with out re-tuning each parameter.
Martingale Threat: Grid restoration with martingale will increase publicity exponentially. At default settings (2.0x multiplier, 10 ranges), stage 10 is 512x the preliminary lot dimension. All the time take a look at on demo first and use InpMaxLots + InpMaxMartLevels + InpMaxDDPercent to cap danger.
Hedging vs Netting (MT5): On MT5 netting accounts, just one route might be open at a time – the EA will solely handle one sequence per cycle. Hedging accounts are most popular.
Dealer: Select an ECN dealer with tight gold spreads (underneath 50 factors). Broad spreads will set off the MaxSpread filter and stop buying and selling, and can eat into the small Martingale TP distance.
VPS: For greatest outcomes, run on a VPS situated near your dealer’s server. H1 operation tolerates transient disconnections higher than M1 scalpers, however grid administration requires the EA to be operating when corrections set off.
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).
Distinctive Magic Numbers: A number of Aquila Gold situations on the identical account (e.g., XAUUSD + GOLD.m symbols) should every have a novel InpMagicNumber to forestall order conflicts.