SmartQuant Discussion
http://www.smartquant.com/forums/

Bug when plot in backtest mode
http://www.smartquant.com/forums/viewtopic.php?f=86&t=14882
Page 1 of 1

Author:  ericwang [ Sun Jan 06, 2019 4:31 pm ]
Post subject:  Bug when plot in backtest mode

Hi,

I found in backtest mode, when I plot a point which time (X-axis) is before current clock (for example, plotting zigzag indicator), its X value is current time.

The same zigzag indicator works well in live/paper mode.

Author:  skuvv [ Wed Jan 09, 2019 9:57 am ]
Post subject:  Re: Bug when plot in backtest mode

Hello,
I tried to reproduce this situation, but it works for me:

Code:
         // Log bars.
         Log(bar, "Bars");

         Log(bar.Close, "Points", bar.DateTime.AddMinutes(-5));


result:
Attachment:
shift.png
shift.png [ 13.61 KiB | Viewed 83438 times ]

Author:  ericwang [ Mon Jan 28, 2019 1:28 pm ]
Post subject:  Re: Bug when plot in backtest mode

Sorry for the late reply.

Let me check my code, my OQ ver is 1.0.6800.27397



skuvv wrote:
Hello,
I tried to reproduce this situation, but it works for me:

Code:
         // Log bars.
         Log(bar, "Bars");

         Log(bar.Close, "Points", bar.DateTime.AddMinutes(-5));


result:


Attachments:
sample.JPG
sample.JPG [ 34.2 KiB | Viewed 83360 times ]

Page 1 of 1 All times are UTC + 3 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/