How NextTrade Gold EA works — from signal to order, step by step.

NextTrade Gold EA decides to enter a trade in three stages. First, the swing engine detects a confirmed swing high or swing low on the closed bar of the configured timeframe (M15 default). Second, the signal must pass every enabled filter — session, Monday-gap, news, and optional candle-pattern confirmation. Third, once approved, the EA places a market order at the configured fixed lot with stop-loss and take-profit set in pips. Below: the exact decision flow, every gate, every filter — no black box.

For the input-by-input list, see all features documented. For the backtest workflow, see backtesting.

A signal is detected

A single swing engine. One job: spot a confirmed swing high or swing low on the closed bar of the configured timeframe.

Signal source

Swing high / swing low

On every closed bar of the configured timeframe (sw_custom_tf, default M15), the EA checks whether a swing point has just confirmed using a "bars-each-side" window (sw_strength, default 2).

Direction

Classic or Reverse mode

Classic (default): Swing low → BUY, swing high → SELL. Reverse: swing low → SELL, swing high → BUY. Pick the regime that fits your edge.

You get pinged — on every channel

The moment a signal passes the filter stack and an order is queued, the EA fires the same structured alert to every channel you've enabled. You stay informed without watching the chart.

Telegram Instant message to your chat or channel
9:41 N NextTrade Alerts bot · online Today ◆ NEXTTRADE GOLD EA XAUUSDc · M15 swing LOW confirmed Order BUY 0.03 Entry 4692.12 Stop-Loss 4668.14 (−23.98) Take-Profit 4753.82 (+61.70) Risk : Reward ≈ 1 : 2.57 14:22 Message

Configure your bot token once in EA inputs — alerts deliver to any chat or channel.

MetaTrader 5 — Mobile Push notification, iOS & Android
9:41 Friday, April 23 9:41 METATRADER 5 2m ago H1 bias updated — BULL @ 4692.11 METATRADER 5 now ◆ Trade signal — XAUUSDc BUY 0.01 @ 4692.12 · M15 swing LOW SL 4668.14 · TP 4753.82 · R:R 1:2.57

MT5 app's built-in push delivery — arrives within seconds, works in your pocket.

MetaTrader 5 — Desktop Native Alert dialog + sound + Journal log
MetaTrader 5 — NextTrade #12345 (XAUUSDc,H1) File View Insert Charts Tools Window Help 4780 4750 4720 4690 4706.41 /4706.49 Journal Trade Experts Alerts Mailbox 14:22:01 NextTrade v2.03: M15 swing LOW confirmed 14:22:01 Alert fired — "signal_h1_swing.wav" 14:22:02 OrderSend: BUY 0.03 @ 4692.12 → #412309 14:22:02 SL 4668.14 TP 4753.82 Magic 20250423 Alert — NextTrade 1 XAUUSDc — H1 Swing LOW NextTrade v2.03 signal confirmed. ORDER BUY 0.03 @ 4692.12 SL / TP 4668.14 / 4753.82 R : R ≈ 1 : 2.57 OK

Native popup + audio cue + Journal log — MT5's built-in notification system.

What a swing entry looks like

The swing engine waits for a completed swing low (or high) on the configured timeframe (M15 default), confirmed by a "bars-each-side" window. On confirmation, the order opens at the configured fixed lot, with SL/TP set in pips.

Swing engine

The engine watches every closed bar against a configurable "bars-each-side" window (sw_strength, default 2). A swing low is the lowest low in that window; a swing high is the highest high — pure arithmetic, zero interpretation.

  • Timeframe: configurable, default M15
  • Strength: configurable, default 2 bars each side
  • Classic mode = mean-reversion · Reverse mode = breakout
  • Fixed-lot entry; SL/TP set in pips
Bull Bear Lookback SL TP
XAUUSD H1 • Swing engine
LOOKBACK (5 BARS) SWING LOW lowest low in ± 5 bars CONFIRMED bar closes above swing TP SL BUY 0.03 R : R ≈ 1 : 2.5

Illustrative sequence. The EA only evaluates closed bars — signals never fire on the forming candle.

XAUUSD M15 • Hammer pattern
Body small, bullish Upper wick ≤ 25% of body Lower wick ≥ 2× body (req.) BUY entry fires on close of the hammer bar

Hammer — all thresholds configurable in the EA inputs.

Why rules, not vibes

Every pattern and swing is math, not interpretation. The same bar input produces the same decision every time — no discretion, no mood.

  • Wick-to-body ratios are numeric thresholds you can tune.
  • Swing lookback is an integer input (default 5).
  • SL and TP buffers are fixed-pip inputs.
  • Every decision is logged to the MT5 journal.

The filter stack runs

A detected signal isn't a trade — yet. It has to pass every enabled filter in this order:

1

Session filter

Is the current time inside one of your enabled sessions (Sydney / Tokyo / London / NY)? If not, signal is blocked.

2

Monday gap

Is the current time inside the Monday-gap avoidance window? If yes, signal is blocked.

3

News filter

Any high-impact news release within your configured before/after window? If yes, signal is blocked.

4

Candle pattern (optional)

If use_pattern_filter is on, the EA requires a recognised pattern (Hammer / Shooting Star / Morning Star / Evening Star) on the trigger bar — otherwise the signal is blocked.

5

Risk engine

Max daily orders reached? Daily loss limit hit? Max-drawdown halt active? If any, no new trade opens.

The order fires & is managed

If the signal survives every filter, the order opens at the configured fixed lot with SL/TP in pips, and trailing logic (optional) armed.

  • Lot size = fixed value from fixlot input (default 0.01)
  • SL and TP placed in pips (TP default 300, SL configurable)
  • Trailing stop (optional) activates after trail_start pips of favourable move
  • Close-on-opposite-signal: optional auto-close when a counter-signal fires
  • MT5 popup, mobile push, and optional email / Telegram alerts on fill, SL, TP

Setting it up — 3 steps

Total time from download to first demo trade: under 10 minutes.

1

Install

Copy the .ex5 into MT5's Experts folder. Restart MT5. Drag onto an XAUUSD chart.

2

Load preset

Open inputs panel → Load → select the included .set. Enable AutoTrading.

3

Demo, then VPS

Run demo for at least a week. Validate. Move to a VPS for 24/5 live operation.

Ready to ship?

Pick a license, download instantly, and follow the setup guide that's in your inbox.

See Pricing