GoldBarrier supports multiple entry modes including breakout and naive controls on M30 timeframes while applying filters for ATR, regime, and trading sessions. Risk controls include max spread, cooldown, daily loss limit, max positions, and fake tick detection that refuses to run on modeled data. It provides statistical verdicts on backtests and benchmarks against buy-and-hold.
Read from GoldBarrier_v2.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpTPPercent
double
0.90
Take Profit (% of entry)
InpSLPercent
double
1.00
Stop Loss (% of entry)
InpEntryMode
ENUM_ENTRY_MODE
ENTRY_NAIVE
InpEntryTF
ENUM_TIMEFRAMES
PERIOD_M30
InpPullbackEMA
int
20
InpDonchianBars
int
20
InpRSIPeriod
int
14
InpRSIBuyLevel
double
45.0
InpRSISellLevel
double
55.0
InpUseRegime
bool
false
InpRegimeTF
ENUM_TIMEFRAMES
PERIOD_H1
InpRegimeFastEMA
int
50
Show all 37 inputs
Name
Type
Default
Description
InpRegimeSlowEMA
int
200
InpUseATRFilter
bool
false
InpATRPeriod
int
14
InpMinATRToTarget
double
3.0
InpMaxATRToTarget
double
20.0
InpUseADX
bool
false
InpADXPeriod
int
14
InpADXMin
double
20.0
InpUseSession
bool
false
InpSessionStartHour
int
8
InpSessionEndHour
int
20
InpSizingMode
ENUM_SIZING
SIZE_FIXED
InpFixedLots
double
0.01
InpRiskPercent
double
0.5
InpMaxSpreadPct
double
0.030
Max spread % of price (0=off)
InpMaxOpenPositions
int
1
InpCooldownBars
int
0
InpMaxDailyLossPct
double
0
0=off
InpMaxBarsInTrade
int
0
Force-close after N bars (0=off)
InpTickDensityCheck
bool
true
Detect fake tick models
InpMinTicksPerBar
double
50.0
Below this = OHLC modelling
InpAbortOnFakeTicks
bool
false
true = refuse to run at all
InpMagic
ulong
880200
InpSlippagePoints
int
30
InpVerbose
bool
false
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone jalolk/xauusd-forex-casino from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
3Copy the filesCopy the .mq5 file into Experts.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.
This MetaTrader 5 expert advisor is designed for scalping gold on the M1 timeframe. It features a versatile strategy engine capable of toggling between breakout and mean-reversion modes based on market conditions. The system manages trades using ATR-based trailing stops, break-even adjustments, and time-based exits. Ri
Gold SnR Momentum Scalper Pro is an automated scalping robot for MetaTrader 5, specifically optimized for XAUUSD on the M1 timeframe. It identifies entry points by combining support and resistance zones with RSI and moving average momentum. The system incorporates tick-level analysis to measure buying and selling press
Gold Dual Engine Scalper is an MT5 expert advisor designed for XAUUSD trading. It utilizes a regime-based state machine to navigate market conditions, employing two distinct engines: one for volatility burst continuations and another for liquidity sweep reversals. The EA monitors for price compression and market exhaus
UltraHFT Expert Advisor is a high-frequency scalping robot for MetaTrader 5 that combines five strategy layers including EMA crossovers, RSI mean reversion, and volatility breakouts. It evaluates market conditions on every tick, entering trades when multiple signals align. The system employs strict risk controls with h
This MetaTrader 4 expert advisor utilizes the SuperTrend and Bollinger Bands indicators to identify market entries. It monitors for trend changes, breakouts, corrections, and pullbacks. The EA incorporates several risk management tools, including a configurable stop loss, dynamic stop loss logic, and a trailing stop. I
Nyao Scalper is an automated scalping robot for MetaTrader 5 that utilizes a multi-factor weighted scoring system to identify trade opportunities. It evaluates trend alignment through EMA crossovers, momentum via RSI, and price action through wick rejection and candle body analysis. The EA manages risk with adaptive AT