Yes, I am indeed referring to EndDate (don't know why you are bringing up EndYear). From the manual, for EndDate:

Quote:
EndDate
End of the simulation, either 4 digits for determining the year number of the last historical price data file (similar to StartDate), or a date in yyyymmdd format for ending the backtest at that date (f.i. 20091231 = December 31, 2009). If at 0 (default), or if the file has no year number, the simulation runs until the end of the available price history.

My guess is, since the routine downloads single files for the entire trading period, with no year number in their names, the system automatically runs to the end of data ignoring the EndDate command. That is a rather crude behavior! Don't you agree?

EDIT:

Just tried to give it an exact date, like 20140101 instead of just 2014, and it worked! Still, I feel like 2014 should default to 20140101 when price data files have no year labels. Otherwise it is kind of confusing.

Last edited by Hredot; 10/16/17 13:22.