StartDate / EndDate discrepancy

Posted By: pcz

StartDate / EndDate discrepancy - 11/11/16 15:14

Normally the StartDate and EndDate variables work for me as expected.

But now I tried testing SPY strategy with data downloaded from Yahoo. When I set:
Code:
StartDate = 2009;
EndDate = 2009;


The Zorro main window says that it's testing 2009 as it's supposed to but the actual results (and equity graph) are from 2009 to 2016.
Posted By: jcl

Re: StartDate / EndDate discrepancy - 11/11/16 17:20

When you give no end date, the simulation uses the complete historical file. "2009" is not a date, it's the number of the first or last historical data file to be used. "20090101" would be a date.

http://manual.zorro-project.com/date.htm


Posted By: pcz

Re: StartDate / EndDate discrepancy - 11/11/16 20:35

Thank you, didn't realize that it's tied to the year number of historical data file.
© 2024 lite-C Forums