Skip to content
All hypotheses

Hypotheses

BBRSI (geraked, MT5) faithful port on gold: BB(500,2)+RSI(7) band re-entry reversal with 1.1x averaging grid and 50% trailing stop, long-short, XAUUSDT.BINANCE 5m

Faithful translation of the MIT-licensed MT5 expert 'BBRSI' v1.6 by geraked (https://github.com/geraked/metatrader5, Experts/BBRSI.mq5; order handling from Include/EAUtils.mqh GerEA). All credit goes to the author. The…

Hypothesis

Faithful translation of the MIT-licensed MT5 expert 'BBRSI' v1.6 by geraked (https://github.com/geraked/metatrader5, Experts/BBRSI.mq5; order handling from Include/EAUtils.mqh GerEA). All credit goes to the author. The author built it for XAUUSD 5M (2021-02-26 to 2023-09-15). Our closest tradable gold instrument is the Binance USD-M gold perpetual XAUUSDT.BINANCE on 5-MINUTE bars. Its catalog history starts 2025-12-11, so about 9.5 months and about 80k bars are available. Indicators are computed on closed bars……Show moreShow less

Faithful translation of the MIT-licensed MT5 expert 'BBRSI' v1.6 by geraked (https://github.com/geraked/metatrader5, Experts/BBRSI.mq5; order handling from Include/EAUtils.mqh GerEA). All credit goes to the author. The author built it for XAUUSD 5M (2021-02-26 to 2023-09-15). Our closest tradable gold instrument is the Binance USD-M gold perpetual XAUUSDT.BINANCE on 5-MINUTE bars. Its catalog history starts 2025-12-11, so about 9.5 months and about 80k bars are available. Indicators are computed on closed bars only: Bollinger Bands on close (period BBLen=500, deviations BBDev=2.0, shift 0, SMA mid with population std like MT5 iBands) and RSI on close (RSILen=7, Wilder smoothing like MT5 iRSI). Fixed constants: RSILower=30, RSIMiddle=50, RSIUpper=70. The logic runs once per new bar. Index [1] is the last closed bar and [2] is the bar before it. The EA is a band-re-entry reversal: a bar closes outside the band with RSI at an extreme, then the next bar closes back inside the band, on the same side of the mid, with RSI back across the 30/70 line. It enters toward the mid. By default the EA sends no hard SL or TP (IgnoreSL=true, IgnoreTP=true). Exits are handled by two things: (a) a trailing stop at TrailingStopLevel=50% of the original stop distance, and (b) a martingale-style averaging GRID (Grid=true, GridVolMult=1.1, GridMaxLvl=20, GridTrailingStopLevel=0). The grid adds positions every 'stop distance' against the trade and closes the whole basket at a common take-profit that recovers the first position's stop-distance loss plus costs. Other defaults as written: CloseOrders=false (so the mid-band exit in CheckClose is INACTIVE by default); CloseOnProfit=true; Reverse=false; Risk=1.0 with RISK_DEFAULT; EquityDrawdownLimit=0 (disabled); News=false; OpenNewPos=true; MultipleOpenPos=false; MarginLimit=300; SpreadLimit=-1 (disabled); SLDev=0; TPCoef=1; SLCoef=0.9. The port stays faithful, but read the policy notes. The default configuration is an averaging/martingale grid, the inventory family that lesson L171 reports as 5/5 dead, and the source is a public-library port, the family covered by L167. We submit it because the user asked for a faithful statement. The Analyst should read the result as a test of the source as written. A grid-OFF variant (Grid=false, with the stated trailing/stop behaviour) is PRE-REGISTERED as a second, separately scored variant, and it is the only form we consider potentially viable. Flat state: the book is flat whenever no basket is open. The EA holds at most one basket (Grid || !MultipleOpenPos means no new signal while any position is open). We expect it to be flat about 65-80% of the time.

Analysis

BBRSI

Backtest and paper results are hypothetical. Trading involves risk of loss.