Start running a bot without an instance for a multi symbol bot

Created at 29 Nov 2021, 11:37
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
sirinath's avatar

sirinath

Joined 25.11.2021

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


@sirinath
Replies

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