SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Sun Apr 02, 2023 9:15 am

All times are UTC + 3 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sun Jan 06, 2019 4:31 pm 
Offline

Joined: Thu Feb 05, 2015 11:15 am
Posts: 39
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.


Top
 Profile  
 
PostPosted: Wed Jan 09, 2019 9:57 am 
Offline

Joined: Wed May 05, 2010 9:49 pm
Posts: 583
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 4585 times ]


Top
 Profile  
 
PostPosted: Mon Jan 28, 2019 1:28 pm 
Offline

Joined: Thu Feb 05, 2015 11:15 am
Posts: 39
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 4507 times ]
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 3 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group