Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

VIX Seris not showing up in real-time

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

    VIX Seris not showing up in real-time

    Hey guys ive got a problem with my strategy, the VIX series is not showing up in real-time

    I am adding a secondary series

    Add("^VIX", PeriodType.Minute, 1440);

    I want to be able to load about 50 to 100 days of VIX daily data into my strategy. My strategy loads the info just fine for backtest but does not appear to be loading anything in real-time (it only loads the last day).


    This if statement does not pass as true:

    if(CurrentBars[1]>l1)
    {

    }

    this test also fails:
    Print(Medians[1][0]);
    Print(Medians[1][1]);
    Print(Medians[1][3]);

    Any ideas how tofix? the data provider is kinetick.

    #2
    Hello,

    Can you open a ^VIX chart without any issue?

    Do you have an example script you can post I can test?

    To export your script do the following:
    1. Click File -> Utilities -> Export NinjaScript
    2. Enter a unique name for the file in the value for 'File name:'
    3. Select the strategy from the objects list on the left -> click the right facing arrow ">" to add the strategy to the export
    4. Click the 'Export' button -> click 'yes' to add any referenced indicators to the export -> click OK to clear the export location message


    By default your exported file will be in the following location:
    • (My) Documents/NinjaTrader 7/bin/Custom/ExportNinjaScript/<export_file_name.zip>


    Below is a link to the help guide on Exporting NinjaScripts.
    http://www.ninjatrader.com/support/h...nt7/export.htm
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      This has been resolved apparently there needs to be bars required > the minimum for an SMA or EMA lookback otherwise it wont load the dataset at all.

      Comment


        #4
        Hello elitetradernyc,

        If you call a bar further back that there are bars on the chart, this bar will not exist and you will get a Object reference not set to an instance of an object error.

        This is true when you call any data series further back than there are bars. (A check that there are that many bars can prevent this)
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        152 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        87 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        131 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        127 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        106 views
        0 likes
        Last Post CarlTrading  
        Working...
        X