Backtest stops with error randomly while working

Created at 27 Jul 2018, 04:55
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!
LA

lavio@gigalink.com.br

Joined 11.07.2017

Backtest stops with error randomly while working
27 Jul 2018, 04:55



26/07/2018 22:49:56.256 Backtesting stopped: Error #493582 occurred

This error stops backtesting randomly. Not always (using the SAME robot). Just sometimes.

Lavio

 


 


@lavio@gigalink.com.br
Replies

lavio@gigalink.com.br
27 Jul 2018, 04:58

I forgot to mention: when using Spotware Ctrader 3.01


@lavio@gigalink.com.br

ap11
27 Jul 2018, 11:10

Hi Lavio,

This reason for the error is the conversion between robot time zone and UTC. When a robot has a time zone with daylight saving time, conversion to UTC might fail.

We are investigating this issue. The easy fix, for now, is to switch robot to UTC time zone:

[Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class NewcBot : Robot

You can help us with some details:

  • Symbol and timeframe
  • Backtesting start and end dates
  • Source data (ticks, m1 bars or selected timeframe bars)
  • If you can provide cBot, please send it to community@spotware.com. If no, it would be useful to hear from you what cBot uses (timer, order types, indicators etc.)

Thank you in advance,

Andrey


@ap11

lavio@gigalink.com.br
31 Jul 2018, 00:28

EURUSD H1

Dates maximum

Source is M1 bars

It makes some calculations using time.

The header is: [Robot(TimeZone = TimeZones.ESouthAmericaStandardTime, AccessRights = AccessRights.FullAccess)]

It uses this in a loop:  h = MarketSeries.OpenTime.Last(n).Hour;

This on the OnBar():  TimeDifMin(_position.EntryTime, Server.Time) > 60

It uses mostly the OnBar() event.

The OnTimer() (rate = 10 seconds) is used only to write some stuff on chart when live, not backtesting.

No indicators at all.

Lavio

 


@lavio@gigalink.com.br

ap11
13 Sep 2018, 12:30

 Hi Lavio,

The issue was fixed in the latest update for Public Beta (version 3.2).

Kind Regards,
Andrey


@ap11

lavio@gigalink.com.br
14 Sep 2018, 21:48

RE:

Andrey Pisarev said:

 Hi Lavio,

The issue was fixed in the latest update for Public Beta (version 3.2).

Kind Regards,
Andrey

 

Hi Andrey,

That's great.

And I ask you, PLEASE..., to add to the same version update, the editor settings, so one can DISABLE the autoformatting, which is very bad.

Also, notice that in the editor auto formatting, there is a ugly bug when using /*  comments */ and also // remarks. They get in very wrong positions.
It is a simple error very easy to see and reproduce.

Thanks, Lavio


@lavio@gigalink.com.br

lavio@gigalink.com.br
14 Sep 2018, 21:56

RE: RE:

 

Ok! I have just updated to the 3.02 version and the autoformatting option now is there. Thank you very much.

Lavio

 


@lavio@gigalink.com.br