How to keep the older text on the chart chart once new text happens using cbot.

Created at 28 Jul 2020, 06:19
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!
PA

pankuolung0804

Joined 27.07.2020

How to keep the older text on the chart chart once new text happens using cbot.
28 Jul 2020, 06:19


Hi there,

How to keep the older text on the chart chart once new text happens using cbot.

Here is my code:

                var text1 = Chart.DrawText(Bars.Count.ToString, "CrossedOver", openTimeA, highPriceA, Color.Red);

The Bars.Count.ToString will be complied wrong.

Please help!

Thank you!

Mason

 


@pankuolung0804
Replies

PanagiotisCharalampous
31 Jul 2020, 08:12

Hi pankuolung0804

See below the correct code

var text1 = Chart.DrawText(Bars.Count.ToString(), "CrossedOver", openTimeA, highPriceA, Color.Red);

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous