Bot Events

Created at 01 Dec 2019, 11:46
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!
CY

cysecsbin.01

Joined 10.11.2018 Blocked

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
Replies

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
Emailcontact@clickalgo.com
Phone: (44) 203 289 6573
Websitehttps://clickalgo.com

Twitter | Facebook | YouTube | Pinterest | LinkedIn

PS: Why not join our instant chat group on Telegram.


@ClickAlgo