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
      • 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

BackTester

1346 views 2

BACKTESTER

        The most important strategy to find the best and most profitable settings of any strategy based on the recorded ticks.
What you need to do to get a high-quality set to work on a live account:

1. Record quotes of the traded symbol
2. Launching a “trial” trading on a real account
3. Preparing the Backtest strategy for launch
4. Work on creating a set

      This is a roadmap for creating a working set.  If you have done everything according to the instructions, but the profit does not go to the broker, then most likely the broker’s conditions do not allow you to trade with the arbitration system.

1. Record quotes of the traded symbol

    To start recording quotes, check the Save Track to File box in the selected strategy and run it (you can do it without trading permission). We recommend recording an entire trading session, and at least 3 days for a better result.

BackTester - Screenshot 1

    After launching the strategy, quotes will be automatically recorded in a separate file with the name of the strategy that you are recording. When the required time is recorded, stop the strategy and now you can move on to the next points.

2. Launching a “trial” trading on a real account

    Launch the strategy on a live account with the desired symbol, allow trading, and be sure to add the View Orders checkmark.

BackTester - Screenshot 2

    It is important to check the lot size before launching on a real strategy (always conduct tests with a minimum), the size of the chip should be small for a set of statistics.

   For example, totestoncurrencies, you canuse the following”Basic”settings:

           Currency:

  •    Open a Gap = 2;
  •    Close the gap = 1;
  •    Take profit = 200;
  •     Stop loss = 100.

To test on Gold:

  •    Open gap = 10;
  •    Close the gap = 5;
  •    Take profit = 200;
  •    Stop loss = 100.

    We are waiting for 5-10 transactions to be executed. Then Stop the strategy and go to the Orders section.

BackTester - Screenshot 3

   Important parameters for the Backtest that need to be recorded:

    • average OpenExecutionTime, in this case, you can record 315ms;
    • average CloseExecutionTime, in this case, you can record also 315ms;
    • average OpenSlippagePT in this case, you can record 10pt;
    • average CloseSlippagePT in this case, you can record  also10pt.

   It is also important to pay attention to the number of open/closed transactions with a slip = 0. In our case, we can safely put a 50% probability in the Backtest.

Now we have all the data to start creating a working set.

3. Preparing the Backtest strategy for launch

   To do this, click and select the hidden history testing strategy :click   and choose the Backtest OneLegHidden strategy:

BackTester - word image 3262 78 BackTester - word image 3262 79

Next, the following actions will be required:

  • downloading previously recorded quotes for Fast Providers;
  • downloading previously recorded quotes for Slow providers;

Click and in the pop-up window click
BackTester - Fast Backtest 1

BackTester - word image 3262 83

   And we select quotes step by step for Fast providers, and then for Slow providers:

BackTester - Screenshot 4

    It is necessary to set the data that we received from testing on a real account in the settings of the slow provider. As we remember, we recorded the opening and closing of a deal as =315ms, the slip = 10pt, and the probability of opening/closing a deal with a slip = 0 is 50%.

    We fill in this data in the settings of  BOTH brokers (we do the same if the broker is the same)

BackTester - Screenshot 5

   Please note that the OneLegHidden strategy requires 2 “slow” brokers and 1 “fast” broker, so there will be 3 entries in total.

   If the quotes are loaded correctly, the following type of program will appear:

BackTester - Screenshot 6

   We can start testing with the “Basic” settings:

    • Open a gap = 2;
    • Close the gap = 1;
    • Take profit = 200;
    • Stop loss = 100.

BackTester - Screenshot 7

 

4. Work on creating a set

   After preparing the strategy, click start and wait for the result.

BackTester - Screenshot 8

   We recommend that you configure the set in the Orders section:

BackTester - Screenshot 9

   The most important parameters of:

    • NetProfit/deal (pt) – shows the average profit per transaction, taking into account all profitable transactions and unprofitable ones.
    • NetProfit(pt) – total profit with current settings

   Please also note that the data that we entered into the backtest is now fully reflected in the Backtest- Open/CloseExecutionTime, Slippage and the probability of slipping = 0 is approximately 50%. This is the right testing strategy.

   Now our task is to increase the profit on the transaction and the final profit.

   The first is to upgrade OpenGap by 1 and let’s start the strategy again.

BackTester - Screenshot 10

   We see that the profit per transaction has become higher, the total profit has also increased and the number of transactions has decreased.

              We raise it by 1 more OpenGap and let’s start the strategy again.

BackTester - Screenshot 11

   We see that the profit per transaction has decreased and the total profit too. Therefore, we leave the previous Gap = 3 as the basis and we can switch to other settings.

   We recommend the following configuration sequence:

    1. Open Gap – we find the biggest profit per trade and total profit.
    2. CloseGap – Just like with the opening of Gap, we are looking for the most profitable setup.
    3. TakeProfit/StopLoss – There are many options here, it is necessary to painstakingly search for the ideal option.
    4. TrailStart-TrailStop.

   After you have found the most profitable set, you need to write it down.

BackTester - Screenshot 12

   Pay attention to the gap size on the broker you want to trade on. We recommend setting the gep size not less than the spread size.

   Also note that there is a lot of volatility on big trading news and the spread widens very much on a slow broker. Limit it and you will protect your trading from unnecessary risks.

BackTester - Screenshot 13

    You must understand that it takes patience and painstaking work to create a set. Record several days of quotes and when creating a set on one day, test it on other days as well. If you see that the profit is very small or the trade is not stable, change the broker.

    Please note that the software allows you to trade in the limit order mode (for maximum trade concealment, but it is not suitable for all brokers – pay attention to the size of Stop orders in the symbol specification). The lifetime of a limit order is also important. We recommend setting 1000ms.

    Limit order testing is not available in the Backtest yet. To trade limit orders, change the order type from Market to Limit

BackTester - Screenshot 14

   Input data

Parameters Decoding
Settings
AllowTradeOpen Allow the opening of orders
Digits The number of decimal places in quotes
Volume1 The volume of the transaction being opened on the first slow broker
Volume2 The volume of the transaction being opened on the second slow broker
SlotsCount The number of simultaneously traded combinations
ExecutionControl Settings of the Order Execution speed control module
UseAutoShift Use automatic quote alignment between fast and slow broker.
AutoShiftPeriod The averaging period for automatic alignment of quotes
ManualShiftBidPt the number of points to shift the Bid price of a fast broker
ManualShiftAskPt the number of points to shift the Ask price of a fast broker
MinSpreadFastPt the minimum spread in points on a fast broker at which a deal can be opened
UseMaxSpreadFast use the maximum spread filter on a fast broker
MaxSpreadFastPt the value of the maximum spread filter in points on a fast broker, at which a deal can be opened
MinSpreadSlowPt the minimum spread in points on a slow broker at which a deal can be openedа
UseMaxSpreadSlow use the maximum spread filter on a slow broker
MaxSpreadSlowPt the value of the maximum spread filter in points on a slow broker at which a trade can be opened
MinOpenGapPt the minimum gap in points for opening a deal on a slow broker
FastTickDirectionCon firmation entry is only possible if the direction of the last tick on the fast broker coincides with the direction of the transaction
TakeProfitPt take profit in points
StopLossPt stop loss in points
MinLockDurationMs minimum holding time of the bow in milliseconds
HoldIfGapAbovePt the value of the transaction retention filter, if the gap is higher or equal to the specified value in points, then the transaction is held and no closing conditions are met

 

We recommend starting trading on real accounts only after carefully selected sets, taking into account the slippage in the tests.

Good Luck!!!

Attached Files
#
File Type
File Size
Download
1 .rar 21.95 MB ticks record GBPUSD
2 .preset 5.52 KB N GBP Hidden

Was this helpful?

2 Yes  No
Related Articles
  • Low Latency
  • Brokers That Allow Arbitrage
  • Forex VPS
  • B-Book
  • Last Look
  • Toxic Flow
Previously
Add/Edit Provider Window Settings
Up Next
Setting up a connection with the Broker Terminal via the EA connector
  • Copyright 2026 Westernpips.com. All Rights Reserved.

LiveInternet counter