Tested in Version 2.6 (output also same in 2.53).
Below are a couple of iterations of the same code, commenting out/in
StartDate and
MinutesPerDay.
void run()
{
Verbose = 3;
BarPeriod = 60;
LookBack = 10000;
StartDate = 20110624;
EndDate = 20110625;
NumYears = 3;
MinutesPerDay = 1440;
}
Log:
testlb compiling............
EUR/USD 1849709 ticks read
12233(17621) bars 2009-06-21..2011-06-26 generated
Test: testlb EUR/USD 2011..2013
void run()
{
Verbose = 3;
BarPeriod = 60;
LookBack = 10000;
// StartDate = 20110624;
EndDate = 20110625;
NumYears = 3;
MinutesPerDay = 1440;
}
Log:testlb compiling...........
EUR/USD 1105694 ticks read
15054(21716) bars 2009-01-02..2011-06-26 generated
Test: testlb EUR/USD 2009..2011
void run()
{
Verbose = 3;
BarPeriod = 60;
LookBack = 10000;
// StartDate = 20110624;
EndDate = 20110625;
NumYears = 3;
// MinutesPerDay = 1440;
}
Log:testlb compiling...........
EUR/USD 1105694 ticks read
15054(21716) bars 2009-01-02..2011-06-26 generated
Test: testlb EUR/USD 2009..2011
void run()
{
Verbose = 3;
BarPeriod = 60;
LookBack = 10000;
StartDate = 20110624;
EndDate = 20110625;
NumYears = 3;
// MinutesPerDay = 1440;
}
Log:testlb compiling...........
Error 047: EUR/USD no 2004 history (History\EURUSD_2004.t6)
EUR/USD 3243025 ticks read
39196(56756) bars 2005-01-03..2011-06-26 generated
Test: testlb EUR/USD 2011..2013
I understand Zorro is trying to estimate max Lookback with
MinutesPerDay parameter but there seems to be an inconsistent behaviour when
StartDate is used.
Thanks.