Bot Events
Created at 01 Dec 2019, 11:46
CY
Bot Events
01 Dec 2019, 11:46
My suggestion is to render public the bot events OnTick, OnBar, OnTimer, OnPositionOpened, OnPositionClosed etc... So that they can be attached to external classes with ease.
Take for instance a windows form that is used to monitor a bot on a chart, then it would be much easier to attach a Bot.Tick += FormUpdate; inside the form then calling the update from inside the bot in the OnTick method, which makes it cluttered.
-C
cTrader
ClickAlgo
01 Dec 2019, 20:50
Hi, Cysecsbin.01,
It is already possible to call most of these events from a referenced assembly by passing in the base robot class and subscribing in the same way as you currently do from a cBot.
Paul Hayes
Sales & Marketing
Email: contact@clickalgo.com
Phone: (44) 203 289 6573
Website: https://clickalgo.com
Twitter | Facebook | YouTube | Pinterest | LinkedIn
PS: Why not join our instant chat group on Telegram.
@ClickAlgo