code in on bar update:
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]protected[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]override[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]void[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] OnBarUpdate() {[/SIZE] [SIZE=2]Print([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].Format([/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"{0},{1},this.Historical={2}"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2], Time[0], Instrument.FullName, [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]this[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].Historical));[/SIZE] [SIZE=2]}[/SIZE]
4/19/2011 1:00:00 PM,^VIX,this.Historical=True
4/19/2011 1:00:00 PM,DIA,this.Historical=True
4/19/2011 1:00:00 PM,EEM,this.Historical=True
4/20/2011 1:00:00 PM,^VIX,this.Historical=True
4/20/2011 1:00:00 PM,DIA,this.Historical=True
4/20/2011 1:00:00 PM,EEM,this.Historical=True
4/21/2011 1:00:00 PM,EEM,this.Historical=False
4/21/2011 1:00:00 PM,DIA,this.Historical=False
I am not sure why I did not get a print statement for the VIX for 4/21 today is 4/25? When should I expect the VIX OnBarUpdate to fire?
Thanks,
Erik
Comment