Help Drawing objects in CBot

Created at 17 Oct 2021, 02:04
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!
AL

alexpekar3000

Joined 17.10.2021

Help Drawing objects in CBot
17 Oct 2021, 02:04


Hi All,

 

Making the switch from MQL5 to CAglo and having issues with the basics.

I'm trying to get a CBot to put an up arrow at the high price of the last candle. 

Chart.DrawIcon(unique_name, ChartIconType.UpArrow, 1, Bars.HighPrices.Last(1), Color.Red);

Complies withour error, but nothing comes up on chart. I'm sure it's something silly I've missed. Any help would be appreciated.

 

Thanks


@alexpekar3000
Replies

amusleh
18 Oct 2021, 09:07

Hi,

Can you please post your cBot full code? so we will be able to replicate the issue.

 


@amusleh