
In this article, we will look at the source code of the data source in OsEngine, called BotTabPolygon.
Relationship between BotTabPolygon and PolygonToTrade.
BotTabPolygon (source) - a data source that implements the IIBotTab interface.
PolygonToTrade (instrument sequence) - is another, more low-level class that is directly responsible for trading a specific sequence of three instruments.
Each BotTabPolygon can have multiple sequences inside:

This architecture allows:
1. Applying common settings to sequences.
2. Quickly creating hundreds of instrument sequences for trading through the automatic creation of sequences from user interfaces.
3. Handling signals from hundreds of sequences with a single code.
In this article, we will examine the code of BotTabPolygon:

Location in OsEngine.
Regions inside the class.
1. Service code for overloading the IIBotTab interface, used in the higher-level OsEngine classes.
2. Common settings for sequences.
3. Storage, creation, deletion of trade sequences.
4. Outgoing events and their management.
5. Drawing a table by the source.
6. Logging.
7. A thread responsible for updating the profitability of sequences.
If you have any difficulties or questions, please write to the support chat. Link