Trading botv1.4.015 options

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 · M15

Enters 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

BiasTimeframeD1
MinTrendEfficiency0.12 (10 bars)
Session GMT07–18
MonthProfitLock0.1% (keep 80%)
StopMultiplier2.5

XAUUSD 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%)).

Multi-symbol portfolio slot:USDJPY M30 (Magic 71040031) · XAUUSD M15 (Magic 71040031)
See full v1.4.0 portfolios

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.

15 of 15
ParameterTypeDefaultDescription
MaxMarginPercent
number14.0Account protection: one trade uses at most this % of the free margin; the lot size is reduced to fit (14 for this bot)
MaxMonthlyLossPercent
number10.0The 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
number0.1Month 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
number80.0Share of the month's best closed result that the month profit lock keeps, in % (80 for this bot; 0: break-even)
DrawdownThrottlePercent
number0.0Multiply RiskPercent by DrawdownThrottleFactor while account equity is this % or more below its peak (0 for this bot: off)
UseSessionFilter
booltrueTrading hours: open trades only from SessionStartGmt to SessionEndGmt (on for this bot)
SessionStartGmt
int7Trading hours: window start, hour in GMT (7 for this bot: London open)
SessionEndGmt
int18Trading hours: window end, hour in GMT (18 for this bot: stops before late NY fade)
BiasTimeframe
textD1Timeframe of the bias (D1 for this bot; current: automatic, one step above the chart)
MinTrendEfficiency
number0.12Skip new trades when the bias timeframe trend is choppy: efficiency ratio below this (0.12 for this bot; 0: off)
TrendEfficiencyBars
int10Bars of the bias timeframe for MinTrendEfficiency and MaxTrendEfficiency (10 for this bot; 2-150)
ZoneAtr
number0.75Width of a key zone, in ATRs (0.75 for this bot)
MinTouches
int3Swing points needed to mark a zone (3 for this bot)
StopMultiplier
number2.5The 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
number2.0Take profit at this many times the stop distance (2.0 for this bot)

More trading bots

View all trading bots