Trend Continuation Bot
Expert Advisor for MetaTrader 5 that follows the higher-timeframe trend: it waits for a pullback into a key zone and enters on a price-action confirmation.
- Net return
- +85.1%
- Profit factor
- 1.36
- Max drawdown
- 29.3%
- Trades
- 149
Backtest on XAUUSD M15 over 82 months, from $500 at 0.5% risk per trade and a 30% drawdown limit. Past results do not promise future returns.
Recommended MT5 setup
Best: XAUUSD · M15Enters trend-side retests of broken support/resistance zones during London and New York hours with a built-in ER10 chop filter.
- Primary chart
- XAUUSD M15
- Secondary pair
- USDJPY M30
- Suggested risk
- 0.5%–1.0%
- 7-year winning months
- 45W / 27L
Optimized v1.4.0 defaults built into this EA
BiasTimeframeD1MinTrendEfficiency0.12 (10 bars)Session GMT07–18MonthProfitLock0.1% (keep 80%)StopMultiplier2.5XAUUSD M15 · $500@0.5% (+85.1%) · $10k@1% (DD 6.9%, PF 1.53). Secondary pair verified on USDJPY M30 (Core FX portfolio sleeve (also XAUUSD H1: PF 2.06, DD 7.6% at $10k @ 1%)).
What it does
7 capabilities- Trading hours filter in GMT with automatic DST offset refresh, rollover pause, Friday cutoff and MT5 Economic Calendar news blackout
- Higher-timeframe bias, or the chart's own HH/HL trend
- Key level marking from swing points, drawn on the chart
- Waits for a pullback into a strong zone that holds, then confirms with pin bar, engulfing or inside bar
- Cost-adjusted break-even, partial take-profit, and rolling spread-spike guard
- Account-currency OrderCalcProfit risk sizing, margin cap, monthly loss budget and profit lock
- Pre-flight OrderCheck, freeze-level protection and execution circuit breaker
How it works
The bot takes the direction from the higher-timeframe bias (or, with the bias filter off, from the chart's own higher highs and higher lows). It marks the key support and resistance zones of the chart from its swing points and waits for price to pull back into a zone on the trend side that holds. Then it seeks a confirmation in the trend direction: a pin bar, an engulfing candle or an inside bar breakout. The stop goes beyond the zone and the pattern, the target at a fixed reward to risk, and the position is sized by the risk you choose. The zones and the step the bot is at are shown on the chart. The strategy runs in the bot's DLL and works only with an approved FXOpsPro license key.
Parameters & options
Configured directly in MetaTrader 5 Expert Advisor inputs.
| Parameter | Type | Default | Description |
|---|---|---|---|
MaxMarginPercent | number | 14.0 | Account protection: one trade uses at most this % of the free margin; the lot size is reduced to fit (14 for this bot) |
MaxMonthlyLossPercent | number | 10.0 | The bot loses at most this % of the month's starting balance in a calendar month: new trades are sized to the loss that is left, then none until the next month (10.0 for this bot; 0: off) |
MonthProfitLockPercent | number | 0.1 | Month profit lock: after the month's closed result reaches this % of the month's starting balance, new trades are sized to keep MonthProfitKeepPercent of its best closed result (0.1 for this bot; 0: off) |
MonthProfitKeepPercent | number | 80.0 | Share of the month's best closed result that the month profit lock keeps, in % (80 for this bot; 0: break-even) |
DrawdownThrottlePercent | number | 0.0 | Multiply RiskPercent by DrawdownThrottleFactor while account equity is this % or more below its peak (0 for this bot: off) |
UseSessionFilter | bool | true | Trading hours: open trades only from SessionStartGmt to SessionEndGmt (on for this bot) |
SessionStartGmt | int | 7 | Trading hours: window start, hour in GMT (7 for this bot: London open) |
SessionEndGmt | int | 18 | Trading hours: window end, hour in GMT (18 for this bot: stops before late NY fade) |
BiasTimeframe | text | D1 | Timeframe of the bias (D1 for this bot; current: automatic, one step above the chart) |
MinTrendEfficiency | number | 0.12 | Skip new trades when the bias timeframe trend is choppy: efficiency ratio below this (0.12 for this bot; 0: off) |
TrendEfficiencyBars | int | 10 | Bars of the bias timeframe for MinTrendEfficiency and MaxTrendEfficiency (10 for this bot; 2-150) |
ZoneAtr | number | 0.75 | Width of a key zone, in ATRs (0.75 for this bot) |
MinTouches | int | 3 | Swing points needed to mark a zone (3 for this bot) |
StopMultiplier | number | 2.5 | The stop loss is this many times as far from the entry as the level stop; the lot size is smaller, so the money at risk stays RiskPercent (2.5 for this bot) |
RiskReward | number | 2.0 | Take profit at this many times the stop distance (2.0 for this bot) |
More trading bots



