ChartObjects during backtesting

Created at 01 Apr 2018, 10:18
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!
lec0456's avatar

lec0456

Joined 14.11.2012

ChartObjects during backtesting
01 Apr 2018, 10:18


I am trying to render a chart object during backtesting but can't get it to work. i am using the following code:

 

ChartObjects.DrawVerticalLine("LINE" + MarketSeries.OpenTime[MarketSeries.Close.Count-1], MarketSeries.OpenTime[MarketSeries.Close.Count-1], Colors.Blue, 1, LineStyle.Solid);
            

 

Can someone explain why that does not work?


@lec0456
Replies

douglascvas
01 Apr 2018, 14:29

I was about to ask the same thing....


@douglascvas

PanagiotisCharalampous
02 Apr 2018, 10:11

Hi lec0456,

Drawing chart objects is not available in backtesting. This feature will be added in a future version.

Best Regards,

Panagiotis

 


@PanagiotisCharalampous