Description
Overview
Horizon Scalper is a fully systematic 5âminute scalper engineered for four highly liquid instruments: #USNDAQ100, XAUUSD (Gold), WTI Crude Oil and EURUSD. It enters only when six independent filters align, sizes every trade based on a fixed accountâcurrency risk, and pauses after a losing trade to avoid revengeâstyle consecutive losses.
The bot is intentionally selective â typically 0.5 to 2 trades per day per symbol â and is built around a strict 1:1.5 rewardâtoârisk skeleton driven by ATR, so stops and targets adapt automatically to changing volatility regimes.
How it works (entry logic)
A LONG (and mirror SHORT) is opened on bar close only when all of the following are true on the previous closed bar:
- EMA crossover â Fast EMA crosses above the Slow EMA (momentum trigger).
- Trend filter â Close is above the longerâperiod Trend EMA (trade with the higherâtimeframe direction).
- RSI range â RSI sits inside a "healthy momentum" band (not oversold, not overbought) â avoids both exhausted moves and stalling chop.
- ADX strength â ADX is above a minimum threshold, confirming a real trend rather than noise.
- Bollinger filter â Price is not pushed against the upper band (for longs) â prevents buying into immediate meanâreversion.
- Candle confirmation â Current close is higher than the previous close.
Shorts use the symmetrical conditions (cross down, below trend EMA, RSI in short range, away from lower band, bearish close).
Risk and money management
- Fixed accountâcurrency risk per trade (default 50 CHF). The bot computes the unit volume so that an SL hit equals exactly your defined risk, regardless of instrument or current ATR.
- ATRâbased SL & TP â SL = ATR Ă 1.0, TP = ATR Ă 1.5 (default), so volatility expands and contracts your stops automatically.
- Minimum ATR floor â entries are skipped when the market is too quiet (lowâvolatility chop).
- Cooldown circuitâbreaker â after a losing trade the bot stops trading for N bars (default 10), letting market conditions reset.
- Singleâposition rule â never more than one open position per symbol.
- Trading session filter â trades only inside a defined UTC window (the highâactivity hours for the chosen asset).
Optimization instructions
Because Horizon Scalper trades on 5âminute bars, market microstructure shifts quickly. The recommended workflow is:
Reâoptimization schedule
- Frequency: once per week.
- Lookback: the last 3 months of M5 data â going further back is counterâproductive because the M5 regime drifts.
- Backtesting mode: "m1 bars from Server (open prices)" is sufficient â you do not need tickâdata mode. The bot only acts on bar close, so m1âopen mode is faster and produces representative results.
- Spread: set a fixed value matching your broker's typical spread for the symbol (1 pip for FX/indices, 2â3 for Gold/WTI is realistic).
Parameters NOT to optimize
- Amount Risked on SL â this is your personal risk preference, not a strategy parameter. Set it to 1â2% of account equity and leave it.
- Trading Start / End hours â use the assetâspecific table above.
Walkâforward validation (recommended)
After each weekly optimization, run a quick outâofâsample test on the most recent 1â2 weeks that were not part of the optimization window. Only deploy parameters that hold up outâofâsample.
Parameter reference
Risk
- Amount Risked on SL (default 50) â Accountâcurrency loss if SL is hit. The bot backâcalculates volume from this.
EMAs
- EMA Fast / Slow Period (9 / 21) â The crossover pair. Fast above Slow = bullish bias.
- EMA Trend Period (50) â Higherâframe directional gate; entries only in its direction.
RSI
- RSI Period (7) â Short period for scalping responsiveness.
- RSI Long Min / Max (40 / 65) â Required RSI band for long entries.
- RSI Short Min / Max (35 / 60) â Required RSI band for short entries.
ATR / Risk
- ATR Period (14) â Lookback for volatility measurement.
- SL ATR Multiplier (1.0) â Stop distance = ATR Ă this.
- TP ATR Multiplier (1.5) â Target distance = ATR Ă this. Must be greater than SL multiplier or the bot will refuse to start.
- Min ATR Pips (3) â If current ATR is below this, entries are skipped.
ADX
- ADX Period (14) â Trendâstrength lookback.
- ADX Min Threshold (25) â Below this, market is treated as ranging and trades are skipped.
Bollinger Bands
- BB Period (20) â SMA basis.
- BB Std Dev (2.0) â Band width. Tighter = stricter exhaustion filter.
Risk Control
- Cooldown Bars After Lose Trade (10) â Number of M5 bars to wait after a loss before reâarming.
Session Filter
- Trading Start (UTC) / Trading End (UTC) â Inclusiveâstart, exclusiveâend UTC window. Use the assetâspecific table above; do not optimize.
Summary
The bot employs fixed account-currency risk per trade, calculating position size so that the stop loss equals the predefined risk amount. Stop loss and take profit levels are dynamically set based on the Average True Range (ATR), with a default 1:1.5 reward-to-risk ratio. It incorporates a cooldown period after losing trades to prevent consecutive losses and restricts to one open position per symbol. Trading occurs within defined UTC session windows aligned with each assetâs high-activity hours.
Horizon Scalper typically executes 0.5 to 2 trades per day per symbol, adapting stops and targets to current market volatility. It requires weekly re-optimization using the latest three months of 5-minute data to maintain effectiveness amid shifting market conditions. The bot supports backtesting with 1-minute open price data and includes parameters for EMA, RSI, ADX, Bollinger Bands, and ATR settings to tailor its behavior.
