Start running a bot without an instance for a multi symbol bot
Created at 29 Nov 2021, 11:37
Start running a bot without an instance for a multi symbol bot
29 Nov 2021, 11:37
Hello,
I am trying to create and multi asset bot. So it is not linked into any symbol. How can I start the bot without an instance liked to and symbol?
Since the bot is not connected to any one particular instrument I believe `OnTick` and `OnBar` on the bot would not be called and I have to use `MarketData.GetTicks` and `Tick` `Action` to add subscriptions?
Suminda
amusleh
29 Nov 2021, 14:47
Hi,
Your cBot will always be linked to a symbol which is the current chart symbol.
You can ignore the OnTick/OnBar and use any symbol BarOpened or Tick event you want to.
@amusleh