Here is the script I am testing :
protected override void Initialize()
{
CalculateOnBarClose = true;
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
Print(Time[0].ToString("dd/MM/yyyy") + "," + Time[0].ToString("HH:mm:ss") + "," + Close[0]);
}
Timeframe : 1/1/2015 to 02/23/2015
However the output I am getting is this :
30/01/2015,06:00:00,187.7
31/01/2015,06:00:00,179.85
03/02/2015,06:00:00,180.65
04/02/2015,06:00:00,181.55
05/02/2015,06:00:00,185.85
06/02/2015,06:00:00,184.15
07/02/2015,06:00:00,184.2
10/02/2015,06:00:00,181.95
11/02/2015,06:00:00,183.6
12/02/2015,06:00:00,189.65
13/02/2015,06:00:00,190.5
14/02/2015,06:00:00,187.6
17/02/2015,06:00:00,182.9
18/02/2015,06:00:00,182.9
19/02/2015,06:00:00,178.8
20/02/2015,06:00:00,178.9
The data for almost all of January is missing and more importantly that from 21/02/2015 which is [0] is also missing (it is available as can be seen in charts and Data box).
Data source is yahoo.
Could you help me please?
Thank you !
Vin
P.S I have attached the Backtest Setup parameters which I've been using. I am working with Daily charts.
Comment