How to plot lines using cBots?

Created at 18 Feb 2020, 02:44
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!
MI

miloscicmil

Joined 27.12.2019

How to plot lines using cBots?
18 Feb 2020, 02:44


I would like to simply just plot Symbol.Bid and Symbol.Ask levels on a cBot backtesting chart (when using Tick data from server), ideally as a point for every tick, but one point per bar would also be great, and I can't find a way to do it. Is there a way to do such thing at all, to point-wise plot values on a cBot backtesting chart?

Thank you in advance,

Milos


@miloscicmil
Replies

PanagiotisCharalampous
18 Feb 2020, 08:17

Hi miloscicmil,

You can use DrawIcon() method and draw a circle or another icon of your choice.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous