Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to Print ^VIX

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to Print ^VIX

    Hi NT8,

    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));
    }


    #2
    Hello Austiner87,

    To print the price you would need to print one of the series, for example Print(Close[0])

    I would suggest to remove the conditions you added as well if you are trying to test a print, making sure the output is happening and correct would be a better starting point before adding conditions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    90 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    137 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    120 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    71 views
    0 likes
    Last Post PaulMohn  
    Working...
    X