Ignore Chart.Draw..... in optimization

Created at 24 Sep 2019, 16:57
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!
ctrader.guru's avatar

ctrader.guru

Joined 19.07.2018

Ignore Chart.Draw..... in optimization
24 Sep 2019, 16:57


Hi,

when use optimization and i have some function with Chart.Draw.... the optimization not work, i suggest to ignore it like MessageBox.


cTrader Automate
@ctrader.guru
Replies

martins
12 Nov 2019, 21:35

...meanwhile, we have to put all Chart.xxx calls inside if statements such as
if (RunningMode != RunningMode.Optimization)
{
Chart.xxx(...);
Chart.yyy(...);
}


@martins

genappsforex
19 Dec 2019, 08:57

RE:

Then also all references to the chartdraw objects should be ignored ofcourse.

 


@genappsforex