Robot chart drawing

Created at 27 Jun 2020, 20:06
GR

grey.walker

Joined 27.06.2020

Robot chart drawing
27 Jun 2020, 20:06


Hi I'm pretty new to CAlgo forgive me if im being really stupid. Is it the case that robots cannot draw on charts?

I'm trying to draw a blue down arrow at the last bar, however its not drawn to the chart.

Should be simple enough but I cant figure out.

 protected override void OnBar()
 {
    var lastBar = Bars.LastBar;
    Chart.DrawIcon(lastBar.OpenTime.ToString(), ChartIconType.DownArrow, lastBar.OpenTime, lastBar.High, Color.Blue);
 }


@grey.walker
Replies

PanagiotisCharalampous
29 Jun 2020, 09:24

Hi grey.walker,

Was the OnBar method executed but you got no arrows? Can you provide the complete cBot code?

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous