Overview of the layer for creating robots for pair trading in BotTabPair in OsEngine.

Overview of the layer for creating robots for pair trading in BotTabPair in OsEngine.

BotTabPair is a special data source that can be used to create sets of pairs for trading in OsEngine.

It is the same type of source as BotTabSimple, BotTabIndex, and BotTabCluster. Overloads the IIBotTab interface.

Location:

Fig. 1. Location of the BotTabPair class within the project structure.

In addition to BotTabPair, two new types of indicators specifically designed for pair trading are used.

Fig. 2. Location of specialized pair trading indicators in the project structure.

They are built into each pair by default and are calculated automatically.

To understand what this means in terms of trading, you can read more here:

About correlation   Links

About cointegration  Links

The process of creating a tab for pair trading looks like this:

Fig. 3. Creating a tab for pair arbitrage.

• Create a private field of type BotTabPair.

• Call a method from the base robot class, TabCreate, and pass BotTabType enumeration as a parameter. In our case, Pair.

• Save a reference to the previously created field.

• After that, the robot with this source can be launched and configured inside BotTabPair pairs, and then trade.

BotTabPair - Storage of pairs (PairToTrade).

Each BotTabPair can simultaneously contain N pairs for trading. It was created specifically for this purpose, to enable trading multiple pairs simultaneously.

If you have any difficulties or questions, please write to the support chat. Link