In general, this bot is a new modification of 2 legs latency bots, to camouflage arbitrage flow. The opening of the initial lock is performed only manually or with the function “Reopen lock after x seconds”.
2 Legs Latency 3 instruments and orders
![](https://i0.wp.com/hftarbitrageplatform.com/wp-content/uploads/2022/07/trail-parameters.png?resize=536%2C144&ssl=1)
The initial lock orders on both sides will be opened with the volume specified in the “Initial lot” column. Lot multiplier 1 and 2 columns are used for lot scaling on both sides. For example, if you are using mt4 and mt5 brokers, for FX pairs it should be “1”. But if you are using FIX connections (CTrader for example), then you need to put multiplier “100000” on the FIX side, so for 1 lot, cTrader will trade 100000 units.
The “Trading lot” column stands for the volume, that will be closed as part of the initial lot when the system finds arbitrage opportunities. After closing this volume, on the side where the position was partially closed, from 1 to 3 virtual orders will be created from the closed volume, depending on how many trailing levels are selected in order management options for the instrument. To open order management options, you need to click the “Edit…” button in the column “Trail params”:
![](https://i0.wp.com/hftarbitrageplatform.com/wp-content/uploads/2022/07/2-legs-latency-3-orders-management.png?resize=602%2C323&ssl=1)
Each trailing level contains next settings:
Close % – the percent of the trading lot, that will be used as lot size for virtual order created on this level (Notice: The sum of this field for all activ levels should be equal to 100).
Stoploss – the distance (in pips) for new order StopLoss value from the order close price
Takeprofit – the distance (in pips) for new order TakeProfit value from the order close price
Minimal profit – if it is possible after the close price was crossed, the order stoploss will be modified (if the possibility exists) to close price +(-) this value (in pips) to fix your guaranteed profit. After that the order stoploss will be trailed with Trailing step size (if it is zero no trailing will be performed);
Pips for min profit – stoploss will be modified to close price+min profit, after the price reaches close price+Pips for min profit value;
Trailing step – distance order is trailed at;
Units (percent or points) – which units the upper mentioned parameters are specified
Order lifetime – the maximum time the virtual order will exist;
Spread SL – if checked, means that the value specified in the Stoploss field will be multiplied on the current spread to apply stoploss
Fields Min lot 1(2) and Lot step 1 (2) should be used for the proper lot size normalization according to the broker settings on side 1(2) , to avoid rejection because of improper order volume.
Notice: In this field “real” (not normalized) values should be entered, depending on instrument requirements.
To apply a different set of order management strategies, buttons “Save as template” and “Load from template” can be used, which allows you to store/restore your favorite options.
![](https://i0.wp.com/hftarbitrageplatform.com/wp-content/uploads/2022/07/2-legs-latency-3-instruments-and-orders.png?resize=1024%2C74&ssl=1)
Enabled – controls if the instrument is allowed to trade or not
Name – instrument name on feeder
Lot size 1 – lot size to be traded on the left side account
Lot size 2 – lot size to be traded on the right side account
Digits – how much digits instrument has in decimals
Spread SL – please check this box if you want to calculate Stop Los like percent from the spread
S/L – hidden stop loss for the position in points, if box “Spread SL” is not checked and in percent from the spread, if box “Spread SL” is checked
T/P – hidden take profit for the position
最小利潤 – how much profit the order should get (in points) for system to start trailing on this position
Pips for Min Profit – reserved, not used
Trail distance – the distance (in points) that is used for trailing on position
Trailing units – Points / Present . The software can calculate trailing stop in points or like percent from instrument’s price
Order lifetime – the maximum time the position can be opened
Slippage 1 – for instant execution brokers or FIX API brokers if you use limit orders – maximum allowed distance from requested price for the left side account
Slippage 2 – for instant execution brokers or FIX API brokers if you use limit orders – maximum allowed distance from requested price for the right side account
Commissions1 – you can set commissions for round turn for your left side account
Commissions2 – you can set commissions for round turn for your right side broker
Diff calculation method – please select one of 3: Standard, Reversed, SpreadCorrected
Standard | Reversed | SpreadCorrected |
BuyDiff = FastAsk – SlowAsk SellDiff = SlowBid – FastBid | BuyDiff = FastBid – SlowBid SellDiff = SlowAsk – FastAsk | BuyDiff = (FastBid – SlowAsk) SellDiff = (SlowBid – FastAsk) |
Include spread – check this box if you want to include the spread for differ to open calculation. The slow broker’s spread will be extracted from the difference to open.
Diff to open – distance between price on slow and fast to open the position
Units – select units points or percent for difference to open calculation. the percent is useful for crypto currencies arbitrage.
Max spread slow 1 – maximum allowed spread for the left side broker
Max spread slow 2 – maximum allowed spread for the right side broker
Max spread slow –
Max spread Fast – maximum allowed spread for the fast feed
Bid offset 1 – constant distance between bid on fast and bid on the slow left side broker (in points)
Bid offset 2 – constant distance between bid on fast and bid on the slow right side broker (in points)
Ask offset 1 – constant distance between ask on fast and ask on the slow left side broker (in points)
Ask offset 2 – constant distance between ask on fast and ask on the slow right side broker (in points)
Offset Calc – controls if the offset recalculation is used on instrument or not
Comment – internal identifier. The comment should be different for similar instruments.
Diff limit – maximum allowed difference for arbitrage signal
Curr Diff 1- current difference for between fast feed and the left side broker
Curr Diff 2– current difference for between fast feed and the right side broker
Max Diff 1 – the maximum difference between the fast feed and the left side broker that was detected during software was running
Max Diff 2 – the maximum difference between the fast feed and the right side broker that was detected during software was running
Curr Spread Slow 1 – current spread on the left side broker (in points)
Curr Spread Slow 2 – current spread on the right side broker (in points)
Curr Spread Fast – current spread on feeder (in points)
2 Legs Latency 3 bot settings
![](https://i0.wp.com/hftarbitrageplatform.com/wp-content/uploads/2022/07/2-legs-latency-3-settings.png?resize=947%2C753&ssl=1)
Label – the software generates a unique label for each strategy
Fast quotes session – you can select the fast feed session provided by our company: BJF Feed (London) or BJF Feed (NY), or add any of your fast connections in sessions and select it.
Slow session 1 – your slow session (broker) for arbitrage trading
Slow session 2 – your slow session (broker) for arbitrage trading
Offset recalculation group
Period – time distance between recalculations.
Interval – time interval, which is used to collect the ticks used for recalculations (from fast and slow broker)
Min ticks – minimum number of ticks on any (fast or slow) broker to perform recalculation.
Show results in log – please, tick if you want to check offset recalculation results.
Mapping group
Suffix – if your broker provides symbols in format EURUSDxxx, you need to specify xxx as Postfix
Mapping – in this field you need to specify specific symbols (CFDs, commodities) mappings. Each new mapping should be in separate line. The format is SymbolNameOnFast= SymbolNameOnMT5. For example. GDAXI=GER30.
Error Control – maximal number of allowed consecutive losses
Allow arbitrage – check if you allow the software searching for the arbitrage situations on this side
Allow open – check if you allow the software opening orders on this side
Close with S/L – the software will place stop loss when arbitrage situation appears on distance from the current price equal value specified in slippage in the instrument and orders tab
Max delay – maximally allowed delay for order opening in ms
T/P delay – set time in ms to make a pause before TP applying
Open/close parameters section
If you use the FIX API connection for trading, you can open FOK or IOC limit orders instead of market orders.
Open with limit – please, tick if you want to use limit orders instead of the market and select FOK limit or IOC limit.
Close with limit – please, tick if you want to use limit orders instead of the market and select FOK limit or IOC limit.
Trading options group
Time to strat trade – a time when the software will start searching for the arbitrage situations.
Time to stop trade – the time when the software will stop searching for the arbitrage situations.
Minimal order lifetime – this option is not available for the latency arbitrage
Hard S/L factor – if you want to place real hard stop loss together with hidden stop los, you need to set Hard S/L factor value and the software will calculate hard stop loss like hidden stop loss value x Hard S/L factor
Lock Management group
Automatically close all locks – you can select day(s) of week and Close time correspondent to your VPS time when the software wil close all opened locks automatically
Pauses
關閉鎖之間-關閉相關儀器的第 – pause in sec between closing 1st lock and 2d corresponding lock for the corresponding instrument
打開鎖之間 – pause in sec between opening 1st lock and 2d corresponding lock for the corresponding instrument
套利指令之間 – pause in sec between arbitrage orders
Reopen lock after – the software will reopen lock automatically after this time in seconds
Equity management group
Enable – controls if the equity management enabled or not
Max total equity – the part of equity you can afford to lose. Can be expressed either in currency or in percents.
Equity total minimum – if equity on account reaches specified value, the trading on the connection will be disabled.
Check news filter – please, check if you want to take into account economic news releases.
Trade on the news – please, check if you want to trade only on specific news releases.
Do not trade on the news – please, check if you do not want to trade on specific news releases.
Other users guide topics
- System requirements and Installation.
- Brokers/ Exchanges connectors.
- Bots (built-in strategies) adding
- Equity manager
- Botssetup