P
PipsGrowth
Trend FollowingOpen Source – Free

Pipsgrowth EX18111 TrendFollow

MT5 Expert Advisor (Open Source) · XAUUSD · M5

Pipsgrowth.com EX18111 GoldAI — AI-powered gold scalper with SMC + pyramid, full 12-layer stack.

Overview

Pipsgrowth EX18111 is a Smart Money Concepts scalper built specifically for XAUUSD on the M5 chart, and it does something the majority of gold robots on the marketplace don't: it tries to read market structure the way a discretionary SMC trader would, then layers a six-factor indicator consensus on top before pulling the trigger. The OnTick loop is a state machine. On every new bar, UpdateSwingStructure() walks InpSwingLength=20 candles on each side of a candidate pivot and either certifies or rejects the bar as a swing high or swing low. When a confirmed swing is later broken by the close of bar 1, the EA classifies the break as either a Break Of Structure (BOS, continuation in the existing swingTrend) or a Change Of Character (CHoCH, reversal against the prior swingTrend) and updates g_swingTrend accordingly. The same logic runs at InpInternalLength=5 for a faster, internal-structure trend that helps catch reversals inside a swing. Every confirmed structural break also calls CreateOrderBlock(), which scans up to ten bars back from the originating pivot and stores the extreme candle as an SOrderBlock struct with top, bottom, time, and bias. DetectFVG() runs in parallel, looking at three-candle sequences where the middle candle's range is non-overlapping and the imbalance exceeds InpFVGMinATR=0.5× ATR. Both zones are kept in rolling arrays capped at InpMaxOBCount=5 and InpMaxFVGCount=5, and the EA deactivates any zone as soon as price trades through it (CheckOBMitigation / CheckFVGMitigation).

The actual entry decision is gated by a six-point consensus score calculated separately for buys and sells. CalculateBuyScore() awards one point each when: RSI(9) sits between 30 and 70 (configurable via InpRSI_OS / InpRSI_OB); the Hull MA at bar 1 is higher than at bar 2 (an internal slope confirmation, where the Hull is built from two LWMAs at periods 20 and 10 with the standard 2*LWMA(N/2) − LWMA(N) construction); the fast EMA(9) is above the slow EMA(21); the current ATR(14) exceeds the 20-bar average ATR by InpATRVelocity=1.2×; g_swingTrend is BULLISH; and an active BOS or CHoCH alert fired on the current bar. The mirror logic runs for sells. The trade only fires when buyScore (or sellScore) clears InpMinSignalScore=3 AND the swingTrend agrees with the directional bias. If those conditions hold, ProcessEntrySignals() walks the entry modes in MODE_ALL / MODE_OB_RETEST / MODE_FVG_FILL / MODE_BOS_BREAK order. A bullish or bearish engulfing pattern (IsBullishEngulfing / IsBearishEngulfing, with the previous bar's body fully inside the current bar's body and the current body larger) or a pin bar with wick-to-body ratio above InpPinBarRatio=2.5 acts as a discretionary override and forces validEntry true regardless of the SMC path.

Risk is sized by CalculateLotSize(), which uses balance × InpRiskPercent=2.0% divided by the SL distance in tick units, floored to SYMBOL_VOLUME_STEP and capped at SYMBOL_VOLUME_MIN/MAX. InpFixedLot overrides the formula when set above zero. Stop loss and take profit are ATR-anchored: SL = 1.5×ATR(14) below entry for longs, TP = 2.5×ATR(14) above entry, producing a 1:1.67 risk-reward at the defaults. The order uses MqlTradeRequest with deviation=30 and the fill mode auto-detected from SYMBOL_FILLING_MODE in GetFillMode(). Margin is sanity-checked at 80% of free margin before any new ticket is sent, and a 5-minute cooldown (InpTradeCooldownMin) is enforced between trade attempts.

EX18111 is also one of the few EAs in the PipsGrowth catalogue with a true pyramid. ExecutePyramidLeg() is only called when CanAddPyramidLeg() confirms the open legs are all in profit (InpRequireAllProfit=true), the last leg's profit exceeds InpMinProfitNextLeg=$1.50, at least 60 seconds have elapsed since the previous leg, and the current count is still below InpMaxPositions=3. The size of each additional leg is base × InpPyramidLotMult=0.75^legNum, which means a de-escalating pyramid (legs 1, 0.75, 0.5625) rather than the more common escalating martingale. Before any pyramid leg is opened, RatchetToBreakeven() walks every open position in the same direction and tightens the SL to entry + spread for buys, entry − spread for sells. ManagePositions() then handles the trailing logic on every tick: once price exceeds entry by InpBreakevenATR=0.8×ATR, the stop is ratcheted to entry plus 10 points, and once price is beyond that BE level, the trail advances by InpTrailATR=0.5×ATR on each subsequent tick that the new SL would beat the existing one by 10 points. TPs are never modified after the fact.

The optional AI news layer is the EA's most experimental feature. If you populate InpPerplexityAPIKey with a real key and add https://api.perplexity.ai to MT5's allowed WebRequest URLs, CheckAINews() will POST to the Perplexity llama-3.1-sonar endpoint every InpNewsCheckInterval=300 seconds, asking for a single-word bias (BULLISH / BEARISH / NEUTRAL) plus a one-line reason covering upcoming high-impact USD data, geopolitical events, and recent Fed statements. The response is parsed by ParseAIResponse() and stored in g_aiBias. If AI returns BULLISH but g_swingTrend is BEARISH (or vice versa), entries are blocked — so the AI acts as a veto rather than a source of fresh signals. With no API key the EA silently degrades to AI_DISABLED and runs on structure + indicators alone; the in-comment claim of a 12-layer stack is therefore aspirational in the default config, with the AI layer being the most obviously optional piece.

The session gate uses server time, not GMT. IsWithinSession() returns true between InpSessionStartHour=8 and InpSessionEndHour=20, and when InpAvoidRollover is true it also blocks the 21:00-01:00 window when spreads and swap charges tend to spike. Two safety stops run independently: IsDrawdownExceeded() compares the current equity against g_peakEquity and trips when the trailing drawdown exceeds InpMaxDDPercent=30%; IsDailyLossExceeded() compares equity against g_startDayEquity (reset every day in CheckNewDay) and trips when realized plus unrealized loss exceeds InpMaxDailyLossDollar=$15. IsSpreadOK() refuses entries when the live spread exceeds InpMaxSpreadPoints=50 — which on XAUUSD is roughly half a dollar per ounce, a sensible filter for retail brokers.

The on-chart dashboard is built once in OnInit and updated every second by UpdateDashboard(). It shows the live swing trend, AI bias (if enabled), the buy/sell consensus scores, RSI(9) value, Hull MA direction arrow, ATR in points, spread status, open position count vs the cap, total P/L including swap, drawdown percent, and whether the session is active. Order blocks are drawn as dodger-blue rectangles for bullish zones and coral rectangles for bearish zones, while FVGs use spring-green and tomato fills. All of this is purely cosmetic — the trading decisions are made entirely by the SMC + consensus pipeline described above.

Backtest expectations: on a quality 5-minute XAUUSD dataset with realistic spread (20-30 points), expect 2-5 entries per London-NY session and a win rate in the 40-55% range given the 1:1.67 reward ratio. The pyramid de-escalation means a long trend day can add 2-3 legs to a single idea and amplify the winners, while the all-legs-must-be-profitable gate prevents the pyramid from forming in a chop environment. The trailing DD cap is the main account-level safety, and $15 daily loss is a tight per-day limit — well-suited to a $100 micro account but easy to bump up for larger balances via the InpMaxDailyLossDollar input.

Strategy Deep Dive

On each new M5 bar, EX18111 rebuilds the swing and internal pivot structure by scanning InpSwingLength=20 / InpInternalLength=5 bars on each side of candidate highs and lows, then classifies any break of the prior pivot as a BOS (continuation) or CHoCH (reversal), creating a fresh Order Block and resetting the swingTrend. In parallel it detects three-candle imbalances that exceed InpFVGMinATR=0.5×ATR and stores them in a rolling FVG array, with both zones auto-mitigated when price trades through them. A six-point consensus score is then calculated independently for buys and sells from RSI(9), Hull MA slope, EMA(9/21) cross, ATR velocity vs the 20-bar average, the swingTrend, and a same-bar BOS/CHoCH alert, with InpMinSignalScore=3 required to fire. If the score clears, the EA checks for an active OB retest, FVG entry, BOS/CHoCH break, or a discretionary engulfing/pin-bar pattern, and sends a fixed-lot or 2%-risk ticket with SL=1.5×ATR and TP=2.5×ATR, then optionally adds up to two pyramid legs at 0.75× and 0.56× the base size once all open legs are profitable by at least $1.50 and the cooldown has elapsed. ManagePositions() handles the tick-level trailing: BE snap at 0.8×ATR profit, then 0.5×ATR ratchet steps with a 10-point minimum. When an API key is set, CheckAINews() calls Perplexity every 300 seconds to obtain a bias verdict, which acts as a veto when it contradicts the structural trend.

Entry Signal

Entry fires only on a new M5 bar when the six-factor consensus score (RSI 30-70, Hull MA slope up, EMA 9>21, ATR velocity >1.2x, swingTrend aligned, BOS/CHoCH alert on the bar) reaches InpMinSignalScore=3, the swingTrend matches direction, and one of the SMC entry modes triggers: a fresh BOS/CHoCH break (MODE_BOS_BREAK), a price retest of an active Order Block (MODE_OB_RETEST), or price entering an active FVG zone (MODE_FVG_FILL). Engulfing and pin bar patterns (wick/body ratio >2.5) act as discretionary overrides that force a valid entry. AI bias from Perplexity can veto entries when it contradicts the structural trend.

Exit Signal

Exits are managed entirely by ManagePositions() and the fixed TP. A long is closed at TP=2.5×ATR above entry, or when the trailing stop (ratcheted by 0.5×ATR steps after 0.8×ATR profit, with a 10-point minimum improvement per ratchet) gets hit. The breakeven snap fires once price exceeds entry by 0.8×ATR. There is no signal-based reversal exit; if price reverses, the trailing stop or TP handles the close.

Stop Loss

Stop loss is fixed at 1.5×ATR(14) below entry for longs (mirror for shorts), submitted with the order via MqlTradeRequest. The 30% trailing-drawdown account cap (InpMaxDDPercent) is the hard account-level kill switch, and the $15 daily loss limit (InpMaxDailyLossDollar) blocks new entries once tripped, both acting as global backstops rather than per-trade SLs.

Take Profit

Take profit is fixed at 2.5×ATR(14) above entry for longs (mirror for shorts), a 1:1.67 risk-reward at default settings. TP is never modified by the trailing logic; only the SL is ratcheted. The 3-leg pyramid effectively stacks three such TP targets in the same direction when the trend persists, with de-escalating size (1.0 / 0.75 / 0.5625) per leg.

Best For

EX18111 is built for a single-symbol XAUUSD M5 chart on a $100+ micro account, with the default 2% risk setting producing micro-lot positions of roughly 0.01-0.05 lots at 1.5xATR stops. The 8:00-20:00 server-time session filter plus the rollover block between 21:00-01:00 means it is most productive on brokers whose server clock aligns with London-NY flow — for GMT+2 or GMT+3 brokers the actual trading hours will shift; verify the session gate in the strategy tester. Use a low-spread ECN/RAW account (typical XAUUSD spread under 30 points) to keep the 50-point spread filter from rejecting too many setups. The optional Perplexity AI layer requires MT5 WebRequest permission for api.perplexity.ai and a valid API key; without it, the EA runs on SMC + indicator consensus alone with no loss of core functionality.

Strategy Logic

Pipsgrowth EX18111 TrendFollow — Strategy Logic Analysis (from .mq5 source)

Family: TrendFollow Magic: 22218111 Version: 2.00

BRIEF: AI-powered gold scalper combining Smart Money Concepts (BOS/CHoCH, Order Blocks, FVG) with multi-indicator consensus (RSI, Hull MA, ATR, EMA) and optional Perplexity AI news analysis. Features 3-leg pyramid scaling with breakeven ratcheting, session filters, and pattern detection. 12 layers: REGIME, SIGNAL, ENTRY, CONFIRM, NO-TRADE, CAPITAL CAP, RISK, SIZING, MANAGE, EXIT, SCALING, OnTester

INDICATOR STACK:

  • RSI
  • RSI_HTF
  • ATR
  • EMAFast
  • EMASlow
  • WMA_N
  • WMA_N2

KEY FUNCTIONS:

  • ResetPivot()
  • IsNewBar()
  • CheckNewDay()
  • GetIndicatorValue()
  • GetATR()
  • GetAverageATR()
  • IsSpreadOK()
  • IsWithinSession()
  • IsCooldownComplete()
  • IsDrawdownExceeded()
  • IsDailyLossExceeded()
  • CountMyPositions()
  • ...and 38 more

INTERNAL CONSTANTS (0 total):

INPUT PARAMETERS (48 total across 10 groups):

  • [=== Core Settings ===] InpMagicNumber = 22218111 // Magic number
  • [=== Core Settings ===] InpEnableTrading = true // Enable Trading
  • [=== Core Settings ===] InpMaxPositions = 3 // Max Pyramid Legs
  • [=== Core Settings ===] InpMaxSpreadPoints = 50 // Max Spread (Points)
  • [=== Core Settings ===] InpTradeCooldownMin = 5 // Cooldown Between Trades (min)
  • [=== Risk Management ===] InpRiskPercent = 2.0 // Risk % per Trade
  • [=== Risk Management ===] InpFixedLot = 0.0 // Fixed Lot (0=Auto Risk)
  • [=== Risk Management ===] InpMaxDailyLossDollar = 15.0 // Max Daily Loss ($)
  • [=== Risk Management ===] InpMaxDDPercent = 30.0 // Max Trailing Drawdown (%)
  • [=== Pyramid Scaling ===] InpMinProfitNextLeg = 1.50 // Min Profit ($) for Next Leg
  • [=== Pyramid Scaling ===] InpPyramidLotMult = 0.75 // Lot Multiplier per Leg
  • [=== Pyramid Scaling ===] InpRequireAllProfit = true // All Legs Must Be Profitable
  • [=== SMC Settings ===] InpSwingLength = 20 // Swing Detection Bars
  • [=== SMC Settings ===] InpInternalLength = 5 // Internal Structure Bars
  • [=== SMC Settings ===] InpMaxOBCount = 5 // Max Order Blocks
  • [=== SMC Settings ===] InpMaxFVGCount = 5 // Max Fair Value Gaps
  • [=== SMC Settings ===] InpFVGMinATR = 0.5 // Min FVG Size (ATR mult)
  • [=== SMC Settings ===] InpEntryMode = MODE_ALL // Entry Mode
  • [=== Indicators ===] InpRSIPeriod = 9 // RSI Period
  • [=== Indicators ===] InpRSI_OB = 70 // RSI Overbought
  • [=== Indicators ===] InpRSI_OS = 30 // RSI Oversold
  • [=== Indicators ===] InpHullPeriod = 20 // Hull MA Period
  • [=== Indicators ===] InpEMAFast = 9 // EMA Fast Period
  • [=== Indicators ===] InpEMASlow = 21 // EMA Slow Period
  • [=== Indicators ===] InpATRPeriod = 14 // ATR Period
  • [=== Indicators ===] InpATRVelocity = 1.2 // ATR Velocity Multiplier
  • [=== Indicators ===] InpMinSignalScore = 3 // Min Consensus Score (1-6)
  • [=== Patterns ===] InpEnableEngulfing = true // Enable Engulfing Pattern
  • [=== Patterns ===] InpEnablePinBar = true // Enable Pin Bar Pattern
  • [=== Patterns ===] InpPinBarRatio = 2.5 // Pin Bar Wick/Body Ratio
  • [=== AI/News ===] InpPerplexityAPIKey = "" // Perplexity API Key
  • [=== AI/News ===] InpNewsCheckInterval = 300 // AI Check Interval (sec)
  • [=== AI/News ===] InpAvoidHighImpact = true // Avoid High-Impact News
  • [=== AI/News ===] InpMinutesBeforeNews = 30 // Minutes Before News
  • [=== AI/News ===] InpMinutesAfterNews = 15 // Minutes After News
  • [=== Session ===] InpSessionStartHour = 8 // Session Start (Server Hour)
  • [=== Session ===] InpSessionEndHour = 20 // Session End (Server Hour)
  • [=== Session ===] InpAvoidRollover = true // Avoid Rollover (21-01)
  • [=== Exit Management ===] InpSLMultATR = 1.5 // SL ATR Multiplier
  • [=== Exit Management ===] InpTPMultATR = 2.5 // TP ATR Multiplier
  • [=== Exit Management ===] InpBreakevenATR = 0.8 // Breakeven Trigger (ATR)
  • [=== Exit Management ===] InpTrailATR = 0.5 // Trailing Step (ATR, 0=Off)
  • [=== Dashboard ===] InpShowDashboard = true // Show Dashboard
  • [=== Dashboard ===] InpShowZones = true // Show OB/FVG Zones
  • [=== Dashboard ===] InpDashX = 20 // Dashboard X Position
  • [=== Dashboard ===] InpDashY = 30 // Dashboard Y Position
  • [=== Dashboard ===] InpBullColor = clrDodgerBlue // Bullish Color
  • [=== Dashboard ===] InpBearColor = clrCoral // Bearish Color
Pseudocode
// Pipsgrowth EX18111 TrendFollow — Execution Flow (from source analysis)
// Family: TrendFollow
// AI-powered gold scalper combining Smart Money Concepts (BOS/CHoCH, Order Blocks, FVG) with multi-indicator consensus (RSI, Hull MA, ATR, EMA) and optional Perplexity AI news analysis. Features 3-leg pyramid scaling with breakeven ratcheting, session filters, and pattern detection. 12 layers: REGIME, SIGNAL, ENTRY, CONFIRM, NO-TRADE, CAPITAL CAP, RISK, SIZING, MANAGE, EXIT, SCALING, OnTester

ON_INIT:
    Create indicator handles: RSI, RSI_HTF, ATR, EMAFast, EMASlow, WMA_N, WMA_N2
    Initialize state variables
    Detect broker GMT offset

ON_TICK:
    1. Refresh indicator buffers (closed-bar shift=1)
    2. Manage existing positions:
       - Break-even check
       - ATR trailing stop
       - Profit lock ratchet
       - Time-based exit
       - Opposite-signal exit
    3. If new bar:
       a. ClassifyRegime() — ADX/ATR/BB regime detection
       b. NoTradeGate() checks:
          - Market open + session filter
          - Spread limit
          - Cooldown after loss
          - Consecutive loss limit
          - Kill switch
          - Max drawdown
          - Max concurrent positions
          - Daily/weekly loss limits
       c. GenerateSignal() — strategy-specific entry logic
       d. CheckConfirm() — HTF alignment + R:R + ADX minimum
       e. Calculate position size from risk %
       f. Execute with retry logic
       g. Mark bar to prevent duplicates

ON_TESTER:
    Custom fitness = weighted(RecoveryFactor, ROI, ProfitFactor, TradeCount, Sharpe, Drawdown)

Optimization Profile

Optimized Brokers:
ExnessIC Markets
Optimized Symbols:
XAUUSD
Optimized Timeframes:
M5

How to Install This EA on MT5

  1. 1Download the .mq5 file using the button above
  2. 2Open MetaTrader 5 on your computer
  3. 3Click File → Open Data Folder in the top menu
  4. 4Navigate to MQL5 → Experts and paste the .mq5 file there
  5. 5In MT5, right-click Expert Advisors in the Navigator panel → Refresh
  6. 6Drag the EA onto an H4 or Daily chart for best results
  7. 7Configure EMA periods, ADX threshold, and lot size in the dialog
  8. 8Enable Allow Algo Trading and click OK

EA Parameters

ParameterDefaultDescription
InpMagicNumber22218111Magic number
InpEnableTradingtrueEnable Trading
InpMaxPositions3Max Pyramid Legs
InpMaxSpreadPoints50Max Spread (Points)
InpTradeCooldownMin5Cooldown Between Trades (min)
InpRiskPercent2.0Risk % per Trade
InpFixedLot0.0Fixed Lot (0=Auto Risk)
InpMaxDailyLossDollar15.0Max Daily Loss ($)
InpMaxDDPercent30.0Max Trailing Drawdown (%)
InpMinProfitNextLeg1.50Min Profit ($) for Next Leg
InpPyramidLotMult0.75Lot Multiplier per Leg
InpRequireAllProfittrueAll Legs Must Be Profitable
InpSwingLength20Swing Detection Bars
InpInternalLength5Internal Structure Bars
InpMaxOBCount5Max Order Blocks
InpMaxFVGCount5Max Fair Value Gaps
InpFVGMinATR0.5Min FVG Size (ATR mult)
InpEntryModeMODE_ALLEntry Mode
InpRSIPeriod9RSI Period
InpRSI_OB70RSI Overbought
InpRSI_OS30RSI Oversold
InpHullPeriod20Hull MA Period
InpEMAFast9EMA Fast Period
InpEMASlow21EMA Slow Period
InpATRPeriod14ATR Period
InpATRVelocity1.2ATR Velocity Multiplier
InpMinSignalScore3Min Consensus Score (1-6)
InpEnableEngulfingtrueEnable Engulfing Pattern
InpEnablePinBartrueEnable Pin Bar Pattern
InpPinBarRatio2.5Pin Bar Wick/Body Ratio
InpPerplexityAPIKey""Perplexity API Key
InpNewsCheckInterval300AI Check Interval (sec)
InpAvoidHighImpacttrueAvoid High-Impact News
InpMinutesBeforeNews30Minutes Before News
InpMinutesAfterNews15Minutes After News
InpSessionStartHour8Session Start (Server Hour)
InpSessionEndHour20Session End (Server Hour)
InpAvoidRollovertrueAvoid Rollover (21-01)
InpSLMultATR1.5SL ATR Multiplier
InpTPMultATR2.5TP ATR Multiplier
InpBreakevenATR0.8Breakeven Trigger (ATR)
InpTrailATR0.5Trailing Step (ATR, 0=Off)
InpShowDashboardtrueShow Dashboard
InpShowZonestrueShow OB/FVG Zones
InpDashX20Dashboard X Position
InpDashY30Dashboard Y Position
InpBullColorclrDodgerBlueBullish Color
InpBearColorclrCoralBearish Color
Source Code (.mq5)Open Source
Pipsgrowth_com_EX18111.mq5
#property copyright "Pipsgrowth.com"
#property link      "https://pipsgrowth.com"
#property version   "2.00"
#property strict
#property description "Pipsgrowth.com EX18111 GoldAI — AI-powered gold scalper with SMC + pyramid, full 12-layer stack."
#include <Trade\Trade.mqh>

//+------------------------------------------------------------------+
//| CONSTANTS                                                         |
//+------------------------------------------------------------------+
//+------------------------------------------------------------------+
//| CONSTANTS                                                         |
//+------------------------------------------------------------------+
#define BULLISH 1
#define BEARISH -1
#define NEUTRAL 0
#define EA_PREFIX "GOLDAI_"

//+------------------------------------------------------------------+
//| ENUMERATIONS                                                      |
//+------------------------------------------------------------------+
enum ENUM_ENTRY_MODE {
  MODE_OB_RETEST, // Order Block Retest
  MODE_FVG_FILL,  // FVG Fill
  MODE_BOS_BREAK, // BOS Breakout
  MODE_ALL        // All Signals
};

enum ENUM_AI_BIAS { AI_BULLISH, AI_BEARISH, AI_NEUTRAL, AI_DISABLED };

//+------------------------------------------------------------------+
//| INPUT PARAMETERS                                                  |
//+------------------------------------------------------------------+
input group "=== Core Settings ==="
input int InpMagicNumber = 22218111;                        // Magic number
input string InpTradeComment = "Psgrowth.com Expert_18111";
input bool InpEnableTrading = true; // Enable Trading
input int InpMaxPositions = 3;      // Max Pyramid Legs
input int InpMaxSpreadPoints = 50;  // Max Spread (Points)
input int InpTradeCooldownMin = 5;  // Cooldown Between Trades (min)

input group "=== Risk Management ==="
input double InpRiskPercent = 2.0;                                   // Risk % per Trade
input double InpFixedLot = 0.0;            // Fixed Lot (0=Auto Risk)
input double InpMaxDailyLossDollar = 15.0; // Max Daily Loss ($)
input double InpMaxDDPercent = 30.0;       // Max Trailing Drawdown (%)

input group "=== Pyramid Scaling ==="
input double InpMinProfitNextLeg = 1.50;                              // Min Profit ($) for Next Leg
input double InpPyramidLotMult = 0.75; // Lot Multiplier per Leg
input bool InpRequireAllProfit = true; // All Legs Must Be Profitable

input group "=== SMC Settings ==="
input int InpSwingLength = 20;                                        // Swing Detection Bars
input int InpInternalLength = 5;               // Internal Structure Bars
input int InpMaxOBCount = 5;                   // Max Order Blocks
input int InpMaxFVGCount = 5;                  // Max Fair Value Gaps
input double InpFVGMinATR = 0.5;               // Min FVG Size (ATR mult)
input ENUM_ENTRY_MODE InpEntryMode = MODE_ALL; // Entry Mode

Full source code available on download

Educational purposes only. Do NOT use with real money. Test on demo accounts only.

Tags:ex18111trendfollowpipsgrowthfreemt5xauusd

Clear Warning: Educational Purposes Only

Clear Warning: This Expert Advisor is for educational and testing purposes only. Do NOT use it with real money. Test only on demo accounts. Trading with real money involves substantial risk of capital loss. This does not constitute investment advice.

Recommended Brokers for This EA

These EAs run on MT5 — use a regulated broker with fast execution and tight spreads

Community

Sign in to contributeSign In

Educational purposes only. Do NOT use with real money. Test on demo accounts only.

File NamePipsgrowth_com_EX18111.mq5
File Size60.3 KB
Versionv2.00
PlatformMetaTrader 5
File Type.mq5 Source
StrategyTrend Following
Risk LevelMedium Risk
Timeframes
M5
Currency Pairs
XAUUSD
Min. Deposit$100