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 First Setup and BackTester, Step by Step

14 views 0

The first One Leg Multi setup has five stages: record quotes without trading, read the Gap chart, measure your broker’s real execution with the minimum lot, test the set on the recorded quotes in the BackTester, then trade small and correct from the log. One Leg Multi is one of the strategies the Private 7 BackTester supports, so you can check levels on your own recorded data before risking money. Every setting mentioned links to its description in the One Leg Multi settings reference.

Before you start: what you need

  • Private 7 licence with One Leg Multi and the strategy tab added with the + button.
  • One or more fast feeds and one trading account added in Dashboard > Connections. Optionally a second account to use as Signal provider.
  • A Windows VPS near the broker server: see system requirements and Forex VPS.
  • A broker whose rules you have checked: see brokers that allow arbitrage.

Stage 1. Connect and record quotes without trading

  1. Add the providers. Fast Providers: one or more feeds. Signal Providers: leave empty unless you want the gap measured on another account. Slow Providers: the trading account. Enter each symbol exactly as the provider names it.
  2. Set Digits. 5 for EURUSD, 3 for USDJPY, 2 for XAUUSD at 4062.22. All levels in points depend on it.
  3. Untick Long and Short. Without them the strategy shows quotes and the gap but does not trade.
  4. Tick View Chart and Save Trace to File and press Start. The log shows “logging in…” and then “logged in.”; nothing is calculated until every provider has sent a quote.
  5. Record full sessions. Let the tab run through active hours, ideally for several days. Each start creates a set of files in C:\Program Files\Westernpips Private 7\.traces\OneLegMulti\<tab name>: an .xml with the settings, a .trace and one .ticks file per provider.
Edit Provider window for a fast provider: list of WPFast Sources such as Linux Europe FIX, Futures, API and Prime feeds
Choosing a fast feed in the Edit Provider window.

Stage 2. Read the Gap chart and choose Min Open Gap

The Gap chart shows, for every fast feed, how far its price is from the broker’s tradable price. Most of the time the gap moves in a narrow band of noise; the trading opportunities are the short peaks when a fast feed jumps and the broker has not followed yet.

  • The spread is already inside the gap. Gap Buy = fast Bid − broker Ask and Gap Sell = fast Ask − broker Bid, so do not add the spread to Min Open Gap.
  • Remove a constant offset. If the gap of a feed stays far from zero all the time, the providers quote at different levels. Turn on Use Auto Shift or set a manual shift so that the gap returns to zero between moves.
  • Set Min Open Gap above the noise, so that only clear peaks trigger trades. Compare peaks of different feeds: any feed whose gap reaches the level can open a trade.
  • Plan the exits. Choose TakeProfit, StopLoss and their modes, and decide whether you need Close Gap or a trailing stop.

Stage 3. Measure the broker’s real execution

The BackTester needs your broker’s execution time and slippage to give a realistic result. Measure them with a short live test:

  1. Set the minimum lot in Volume and tick View Orders.
  2. Allow trading (Long and/or Short), press Stop and Start and wait for 5–10 trades.
  3. Open the Orders tab and note the average open and close execution time in ms, the average open and close slippage in points and roughly what share of fills had zero slippage.

Stage 4. Test the set in the BackTester

  1. Open the backtest tab. Press + in the strategy tab bar and choose Backtest OneLegMulti. A tab named “OneLegMulti BACKTEST.NN” opens.
  2. Add the same providers as in the recorded session. In backtest mode the Edit Provider window has a Ticks Path field: press “…” and select the .ticks file of that provider from one recording. File names show the provider number: 0 = slow, 1, 2, … = fast feeds, 10 = signal. All files must come from the same recording time.
  3. Enter the execution you measured in the slow provider: Backtest open execution(ms), Backtest close execution(ms), Backtest open slippage(pt), Backtest close slippage(pt), Backtest open zero-slippage(%) and Backtest close zero-slippage(%). There are Position and Opportunity columns; for One Leg Multi trades the larger of the two values is used.
  4. Load or enter the set and press Start. The recorded quotes are replayed; the result appears in the log, on the chart and in the Orders tab.
  5. Change one parameter at a time. A practical order: Min Open Gap, then TakeProfit and StopLoss with their modes, then Close Gap, then trailing. Keep the version with the best profit per trade and total profit, not the one with the most trades.
  6. Check the set on other days. A set tuned on one recording should also work on the others; if it does not, it is fitted to noise.
Edit Provider in a One Leg Multi backtest tab: Ticks path to a recorded .ticks file and the Backtest execution, slippage and zero-slippage fields in Position and Opportunity columns
Edit Provider in a backtest tab: Ticks path and the Backtest execution, slippage and zero-slippage fields. The fields appear for every provider, but only the values of the slow provider affect the fills.

Important: enter the execution and slippage values in the slow (trading) provider. Values entered in a fast provider are ignored, and the backtest then fills every order instantly at the requested price.

One Leg Multi backtest on recorded XAUUSD quotes from 14:00 to 17:34 UTC: price, gap, spreads and the growing Profit(pt) line
A finished backtest of 3.5 hours of recorded XAUUSD quotes: price, gap, spreads and the Profit(pt) line.
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 Orders tab of the backtest: Total shows Orders count, Profit(pt) and Profit/deal(pt). Execution time and slippage of 0 mean no delay or slippage was set for the slow provider.

The XAUUSD example compares this backtest with live trading on the same quotes: the live result per trade was about a quarter lower, and it lists the execution values measured live.

How the BackTester simulates execution: an order is filled at the broker’s price on the first recorded tick after the execution delay; then a random extra slippage between 0 and the slippage you entered is applied, except in the zero-slippage share of trades. It does not show how the broker reacts to your orders, so always confirm the result live with the minimum lot. Parameter optimization (MultiBacktest) is not available for One Leg Multi in build 590.1: test variants one by one.

Replaying a session: the Analyzer item in the + menu opens a recorded .trace file and replays it with the settings that were active at that time. Use it to see exactly what the strategy saw around a trade.

More background on the workflow: BackTester guide.

Stage 5. Trade small and correct from the log

  1. Save the set with the disk icon in the Algorithm Settings header.
  2. Set protection. Keep SessionControl on: MaximumDrawdown(%) stops new entries after a drawdown in points from the session peak. Do not trade the same symbol on this account by hand while UseEmergencyClose is on.
  3. Trade the minimum lot and compare every OPEN OK / CLOSE OK line in the log with the broker terminal: same side, lot and prices.
  4. Correct one setting at a time. Many stop losses or large negative slippage usually mean Min Open Gap is too low for this broker; very few trades mean it is too high or a filter blocks entries.
  5. Raise the volume gradually, or switch to UseDynamicVolume when results are stable.

Next steps

  • One Leg Multi XAUUSD example: set, trades and backtest
  • One Leg Multi troubleshooting: problems and solutions
  • One Leg Multi settings reference
  • Edit Provider settings
  • Slippage: what it is and how to reduce it

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, and backtest results do not guarantee live 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
Up Next
One Leg Multi XAUUSD Example: Set, Trades and Backtest
  • Copyright 2026 Westernpips.com. All Rights Reserved.

LiveInternet counter