Westernpips DocsWesternpips Docs
  • Home
  • FAQ
  • Documentation
  • Forums
  • Home
  • FAQ
  • Documentation
  • Forums
  • Crypto Trader
    • Crypto Scanner - 1 Leg
    • Crypto Scanner - 2 Leg
    • Crypto Table
  • Getting Started
    • Web Portal my.westernpips.com
      • Web Portal Password Recovery
      • How to Buy Westernpips Products?
    • Products Installation
    • Prerequisites
      • .NET Desktop Runtime Installation
      • ASP.NET Core Runtime Installation
      • Microsoft Redistributable Installation
    • System Requirements
    • Installation Troubleshooting
  • Westernpips Golden Tools 3.5.7
    • Downloading
    • First Run
    • Installing a Westernpips Products Using WGT
    • Working with Installed Products
    • WGT Update
  • Westernpips Private 7
    • How to Check Which Quote Feed Is Faster
    • Installing and First Run
    • License Activation and Login
    • Change License IP, Add new IP
    • User Interface
      • Main Window
      • Dashboard
        • Options
        • Strategies
        • Connections
        • Schedulers
    • Trades Discovery, Check Orders Duration
    • WESTERNPIPS PRIVATE 7 ALGOS
      • OneLeg
        • OneLeg: Before You Start
        • OneLeg First Setup, Step by Step
        • OneLeg Key Parameters with an XAUUSD Example
        • OneLeg Troubleshooting
      • Two Leg Simple Hedge
      • Two Leg Lock
      • Multi Leg Spread
      • One Leg Multi
        • One Leg Multi First Setup and BackTester, Step by Step
        • One Leg Multi XAUUSD Example: Set, Trades and Backtest
        • One Leg Multi Troubleshooting
      • OneLegHidden
      • Two Leg Standard
      • Remote
      • Copier
      • Clicker in WesternPips Private 7
      • Session Control — Quick Guide
      • Exucution Control — Quick Guide
      • Slippage Control - Fast Guide
      • Add/Edit Provider Window Settings
      • BackTester
      • Setting up a connection with the Broker Terminal via the EA connector
    • Connectors
      • Common Settings and Operation
        • FIX Connection Settings
        • FIX Logs
      • Trading and Fast Sources Connectors
        • 24Exchange Connector
        • Active Financial API Connector
        • Binance Connector
        • Bitfinex Connector
        • CBOE FIX Connector
        • Celer FIX Connector
        • CFH FIX Connector
        • CTrader FIX Connector
        • DukasCopy FIX Connector
        • DxFeed FIX Connector
        • Euronext FIX Connector
        • Exante FIX Connector
        • FastMatch ITCH Connector
        • FlexTrade FIX Connector
        • Fortex FIX Connector
        • FXCM FIX Connector
        • FxPig FIX Connector
        • GCEX FIX Connector
        • Gold-i Matrix FIX Connector
        • Integral FIX Connector
        • LMAX API Connector
        • LMAX FIX Connector
        • MaxxTrader FIX Connector
        • MT EA Connector
        • M4 Server Connector
        • M5 Server Connector
        • OGM FIX Connector
        • OKX Connector
        • OneZero FIX Connector
        • PrimeXM FIX Connector
        • Remote Connector
        • Rithmic Connector
        • RoE FIX Connector
        • Saxo FIX Connector
        • SolidFX FIX Connector
        • Spotex FIX Connector
        • TraderMade FIX Connector
        • Universal Connector
        • Universal Fast Connector
        • XenFin FIX Connector
        • XTRD FIX Connector
  • Westernpips Webcliker
    • System Requirements
    • Installer
    • Agent
    • UI Settings
    • UI Logs
    • Start/Stop
    • Connections
    • Trade platforms
      • CMC Markets
      • M5 Web
      • M4 Web
      • TRADE NATION
      • Exness Web
      • Universal cliker
      • IG Trading Platform
      • MEX / MultiBank
      • ByBit
      • EXANTE
      • IQ Option
      • Plus500
      • Quotex
    • Risk Warning
  • Glossary
    • Latency Arbitrage
    • Fast Price Feed
    • Execution Latency
    • Slippage
    • FIX API
    • Requote
    • Forex Arbitrage
    • Toxic Flow
    • Last Look
    • B-Book
    • Forex VPS
    • Brokers That Allow Arbitrage
    • Low Latency

One Leg Multi XAUUSD Example: Set, Trades and Backtest

7 views 0

This page walks through one trading day of One Leg Multi on XAUUSD (gold) with two fast feeds: the set that was used, one Sell trade traced tick by tick, the results of two live sessions and how a backtest of the same quotes compares with live trading. Use it as a worked example of how the settings behave, not as ready-made levels: the right values depend on your broker, its spread and its execution. Every setting is described in the One Leg Multi settings reference.

Providers and set used in this example

One Leg Multi tab in Westernpips Private 7 build 592: two fast feeds (XAUUSD FIX and GC futures), M5 broker account, Diagnostics with Gap Buy and Gap Sell per feed, session equity and the trade log
The One Leg Multi tab during the first session: two fast feeds, one broker account, the Diagnostics panel and the log.
  • Fast provider 1: WPFast Sources | Linux Europe FIX, symbol XAUUSD.
  • Fast provider 2: WPFast Sources | Linux Europe Futures, symbol GC (gold futures).
  • Signal provider: none, so the gap is measured on the trading account.
  • Slow provider: an MT5 broker account, symbol XAUUSD, spread 15 points during the session.
Block Settings in this set
General and volume Digits 2 (1 point = 0.01), Volume 0.5, UseDynamicVolume off
SessionControl InitialBalancePt 10000, UseEmergencyClose on, UseMaximumDrawdown on, MaximumDrawdown 30%
Shifter Use Auto Shift on, PeriodType Both, PriceMode Median, 100 ticks, 30000 ms, manual shifts 0
SpreadAveraging and filters Both, 10 ticks, 1000 ms; all spread filters off
Entry Min Open Gap 30 points
Exits TakeProfitMode FromEntry, TakeProfit 15; StopLossMode FromSignal, StopLoss 50; Close Gap off; trailing off

You can download the example set (.preset) and load it with the folder icon in the Algorithm Settings header to study it.

Why AutoShift matters with a futures feed

Gold futures trade at a premium to spot gold, so without alignment the GC feed would always look far above the broker. The Diagnostics panel at 11:39:08 UTC shows how AutoShift handles it:

Value Broker (Slow) Fast 1 (XAUUSD FIX) Fast 2 (GC futures)
Bid / Ask 3584.99 / 3585.14 3584.94 / 3585.09 3586.20 / 3586.50
Shifted Bid / Ask — 3584.99 / 3585.14 3584.90 / 3585.20
Spread (pt) 15 15 30
Gap Buy / Gap Sell (pt) — −15 / 15 −24 / 21

AutoShift moved the GC prices down by about 130 points, so both feeds are compared with the broker on the same level. Check the arithmetic: Gap Buy of Fast 1 = 3584.99 − 3585.14 = −0.15 = −15 points; Gap Sell of Fast 2 = 3585.20 − 3584.99 = 0.21 = 21 points. With the market quiet, both gaps sit near the broker’s spread and far from Min Open Gap 30.

Worked example: one XAUUSD Sell trade, step by step

One Leg Multi Sell trade on XAUUSD at 11:47:23 UTC: fast price falls, the gap drops to about -80 points, signal, fill and close markers on the broker price
The Sell at 11:47:23 UTC on the Chart tab: the fast prices fall, the Gap panel drops to about −80 points, and the Profit panel steps up after the close.
  1. The fast feeds move first. Around 11:47:23 UTC both fast feeds fall by more than a dollar while the broker’s price stays at its old level. Gap Sell falls far below zero.
  2. The Sell signal fires. When Gap Sell of a fast feed reaches −31 points, below −Min Open Gap 30, One Leg Multi sends a Sell of 0.5 lot at the broker’s Bid 3584.62.
  3. The order is filled with slippage. The broker fills at 3584.35 in 36 ms, 27 points worse than the signal price (Slippage=−27 pt).
  4. Exit levels are set. TakeProfitMode FromEntry places the take profit 15 points below the fill: 3584.20. StopLossMode FromSignal places the stop 50 points above the signal price: 3585.12.
  5. The broker catches up in one jump. The broker’s Ask drops straight to 3583.85, already past the take profit, and the position is closed there in 25 ms without slippage.
  6. The result. 3584.35 − 3583.85 = 0.50 = 50 points on 0.5 lot, although TakeProfit was only 15: the take profit is a trigger, and the close happens at the first broker price that reaches it.
Close-up of the One Leg Multi XAUUSD Sell trade: signal point, fill below it, close marker and the profit step
Close-up of the same trade: the signal point, the fill 27 points lower, the close and the profit step.
Log line What it means
SELL XAUUSD 0.5 at 3584.62 Gap=-31 pt. Signal: Gap Sell passed −30; Sell sent at the broker’s Bid.
OPEN OK [0]. Price 3584.35. Slippage=-27 pt. Execution=36 ms. Filled 27 points worse than requested.
CLOSE SELL XAUUSD at 3583.85 The take profit condition is met: broker Ask ≤ 3584.20.
CLOSE OK [0]. Price 3583.85. Slippage=0 pt. Execution=25 ms. Closed at the requested price: +50 points.

First live session: 9 trades in 13 minutes

Between 11:25 and 11:37 UTC the strategy made nine trades. The Orders tab and the terminal show the same trades; the terminal times are two hours later because this broker’s server runs at UTC+2.

Time (UTC) Side Signal Fill Slippage (pt) Close Result (pt)
11:25:02 Buy 3588.72 3588.74 −2 3589.20 +46
11:30:02 Sell 3590.19 3590.19 0 3589.84 +35
11:31:11 Sell 3589.63 3589.63 0 3589.19 +44
11:33:07 Buy 3585.98 3586.36 −38 3586.82 +46
11:33:13 Sell 3587.65 3587.65 0 3587.39 +26
11:35:13 Sell 3587.05 3586.63 −42 3586.48 +15
11:35:36 Buy 3585.12 3585.45 −33 3585.61 +16
11:36:48 Sell 3585.74 3585.74 0 3585.48 +26
11:37:10 Sell 3584.80 3584.80 0 3584.64 +16
One Leg Multi log on XAUUSD: BUY and SELL signals with gap, OPEN OK with slippage and execution time, CLOSE and CLOSE OK lines
The log of the last trades of this session.
One Leg Multi Orders tab: nine XAUUSD orders with open and close prices, execution time, slippage and totals such as Profit per deal and average execution time
The Orders tab: 270 points in 9 orders, 30 points per deal, average entry slippage −12.78 points, average execution 24.78 ms on entry and 29.44 ms on exit.
Nine One Leg Multi XAUUSD trades of 0.5 lot in the broker terminal, all closed in profit, total 102.95
The same nine trades in the broker terminal: total 102.95 in the account currency.
  • Every trade reached the take profit. With TakeProfitMode FromEntry the 15-point target is counted from the fill, so the four entries with 33–42 points of slippage still closed in profit.
  • Exits had no slippage. All nine closes were filled at the requested price.
  • Most profit came from broker jumps. Results of 26–46 points against a 15-point target show the broker often repriced past the take profit in one step.

Long session: the US trading hours

From 14:00 to 17:34 UTC the same set ran through the US session. The Orders tab exported to CSV gives these figures:

Measure Value
Trades 1,082 (585 Buy, 497 Sell); no OPEN FAILED, CLOSE FAILED, Emergency or Drawdown lines in the log
Result +26,200 points, 24.2 points per trade
Winning trades 92%: average +33 points; 87 losing trades: average −80 points, largest −162 points
Largest drawdown of the points curve −253 points
Entry slippage 68% of entries at the requested price; the rest on average −25 points (90% within −40); overall average −8.2 points
Exit slippage 99% of exits at the requested price
Execution time median 23 ms on entry and 28 ms on exit
Holding time median 0.09 seconds; 90% of trades closed within 1.9 seconds
XAUUSD M1 chart in the broker terminal with One Leg Multi buy and sell entries during the US session
Part of the session on the XAUUSD M1 chart in the terminal: each arrow is a One Leg Multi entry or exit.

The broker’s account report for the whole day (1,100 trades, all sessions above plus short test runs) shows a net result of +10,196.55 on a 100,000 starting balance, profit factor 4.85, 92% winning trades and a maximum balance drawdown of 0.10%.

What the numbers say about the settings:

  • Losses are larger than StopLoss 50. With StopLossMode FromSignal the stop is counted from the signal price, so entry slippage is already a loss, and a broker jump can pass the stop level before the close. Average losses of −80 points are the real cost of a stop.
  • The win rate carries the result. One average loss costs about two and a half average wins. A broker with more slippage or more failed peaks can turn the same set negative.
  • Very short holding times. Trades closed in about 0.1 seconds are exactly what broker risk teams look for. Check the broker’s rules before trading this way: see brokers that allow arbitrage.

These are the results of one day, one broker account and one set. They show how the strategy and its settings behave, not what to expect in the future.

Backtest of the same quotes compared with live trading

The quotes of the long session were recorded with Save Trace to File and replayed with Backtest OneLegMulti, using the same set but only the XAUUSD FIX feed and no execution delay or slippage on the slow provider.

One Leg Multi backtest on recorded XAUUSD quotes from 14:00 to 17:34 UTC: price, gap, spreads and the growing Profit(pt) line
The backtest of 14:00–17:34 UTC: the Profit(pt) line grows smoothly because every order is filled instantly at the requested price.
One Leg Multi backtest Orders tab: 1050 XAUUSD orders with zero execution time and slippage, total 34145 points and 32.52 points per deal
The backtest Orders tab: 1,050 orders, 34,145 points, 32.52 points per deal, execution time and slippage all 0.
Measure Backtest (no delay, no slippage) Live trading
Trades 1,050 1,082
Result +34,145 points +26,200 points
Per trade 32.5 points 24.2 points

The live result per trade was about a quarter lower, mostly because of entry slippage and the deeper stops it causes. To make a backtest of your own recordings realistic, enter the values measured live in the slow provider of the backtest tab. For this session they would be about: Backtest open execution 25 ms, Backtest close execution 30 ms, Backtest open slippage 50 points with Backtest open zero-slippage 68%, Backtest close zero-slippage 99%. The procedure is in first setup and BackTester.

How to adapt this example to your broker

  • Check Digits and the symbols of every provider; for a futures feed keep AutoShift on.
  • Record your own quotes and read the Gap chart: Min Open Gap 30 suited a broker with a 15-point spread and these feeds, not every broker.
  • Measure slippage and execution with the minimum lot, then test the set in the BackTester with those values.
  • Watch the cost of a stop. If average losses are much larger than StopLoss, consider StopLossMode FromEntry, a smaller lot or a higher Min Open Gap.

Related guides

  • One Leg Multi settings reference
  • One Leg Multi first setup and BackTester
  • One Leg Multi troubleshooting

Risk warning. Trading Forex, CFDs and cryptocurrencies with leverage carries a high risk of losing money. Results depend on the broker, its execution and rules, latency and settings; no profit is guaranteed. The set, trades and results on this page illustrate how the settings work on one account and one day; they are not a recommendation or a forecast, and past results do not guarantee future results. Test on a demo account first. Read the full risk warning.

Was this helpful?

Yes  No
Related Articles
  • Low Latency
  • Brokers That Allow Arbitrage
  • Forex VPS
  • B-Book
  • Last Look
  • Toxic Flow
Previously
One Leg Multi First Setup and BackTester, Step by Step
Up Next
One Leg Multi Troubleshooting
  • Copyright 2026 Westernpips.com. All Rights Reserved.

LiveInternet counter