Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 zstheorist, Today, 07:52 PM
        0 responses
        7 views
        0 likes
        Last Post zstheorist  
        Started by pmachiraju, 11-01-2023, 04:46 AM
        8 responses
        150 views
        0 likes
        Last Post rehmans
        by rehmans
         
        Started by mattbsea, Today, 05:44 PM
        0 responses
        6 views
        0 likes
        Last Post mattbsea  
        Started by RideMe, 04-07-2024, 04:54 PM
        6 responses
        33 views
        0 likes
        Last Post RideMe
        by RideMe
         
        Started by tkaboris, Today, 05:13 PM
        0 responses
        6 views
        0 likes
        Last Post tkaboris  
        Working...
        X