What is the code to print the ^VIX index, the code below is not working. Thank you
else if (State == State.Configure)
{
AddDataSeries("^VIX", Data.BarsPeriodType.Second, 1, Data.MarketDataType.Last);
}
...
if ((Close[0] >= Open[0])
|| (Close[0] < Open[0]))
{
Print(@"VIX: " + Convert.ToString(VIX));
}

Comment