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

NT8.0.4.0 A hosted indicator tried to load additional data. All data must first be lo

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

    NT8.0.4.0 A hosted indicator tried to load additional data. All data must first be lo

    NT8.0.4.0

    A hosted indicator tried to load additional data. All data must first be loaded by the hosting NinjaScript in its configure state.


    Another variation.

    You can not enable both of these strategies at the same time.

    I have reduced down to this simple code.

    If they are changed to the same way in each strategy, you may enable both.

    Looks more like a bug in NT8.

    Using playback-MR, no historical data, also did a full restart of NT8 to make sure it was still happening. I have not tried elsewhere (live).

    update-
    confirmed - does not work in LIVE either.
    Attached Files
    Last edited by sledge; 02-27-2017, 09:19 PM.

    #2
    Thanks much for the report sledge, we will try reproducing on our end.

    Could you please email to platformsupport the VIX data you used in the setup along with the base chart settings you've used for deploying the scripts?

    Thanks again,
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Hello Sledge,

      Thank you for sending us this data. It looks like we weren't quite able to see the same thing in the pre-release version of NinjaTrader. Please let us know after the next version is released if you continue to see this. For the aid of future techs, the differences between the two scripts are summarized below.

      Code:
      [COLOR=#FEBE00][FONT=Courier]...[/FONT][/COLOR] 
      [FONT=Courier] //This namespace holds Strategies in this folder and is required. Do not change it.[/FONT] 
      [FONT=Courier] namespace NinjaTrader.NinjaScript.Strategies[/FONT] 
      [FONT=Courier] {[/FONT] 
      [B][COLOR=#C81500][FONT=Courier]-    public class Strategy1 : Strategy[/FONT][/COLOR]
      [COLOR=#006400][FONT=Courier]+    public class Strategy2 : Strategy[/FONT][/COLOR][/B] 
      [FONT=Courier]     {[/FONT] 
      
      [FONT=Courier]         static     int ES = 0;[/FONT] 
      [COLOR=#FEBE00][FONT=Courier]...[/FONT][/COLOR] 
      [FONT=Courier]             if (State == State.SetDefaults)[/FONT] 
      [FONT=Courier]             {[/FONT] 
      [FONT=Courier]                 Description = @"demostrates: A hosted indicator tried to load additional data. All data must first be loaded by the hosting NinjaScript in its configure state.";[/FONT] 
      [B][COLOR=#C81500][FONT=Courier]-                Name = "Strategy1";[/FONT][/COLOR]
      [COLOR=#006400][FONT=Courier]+                Name = "Strategy2";[/FONT][/COLOR][/B] 
      [FONT=Courier]                 Calculate = Calculate.OnBarClose;[/FONT] 
      [FONT=Courier]                 EntriesPerDirection = 1;[/FONT] 
      [FONT=Courier]                 EntryHandling = EntryHandling.AllEntries;[/FONT] 
      [COLOR=#FF8C00][FONT=Courier]...[/FONT][/COLOR] 
      [FONT=Courier]             }[/FONT] 
      [FONT=Courier]             else if (State == State.Configure)[/FONT] 
      [FONT=Courier]             {[/FONT] 
      [B][FONT=Courier][COLOR=#C81500]-                AddDataSeries("^VIX", new BarsPeriod { BarsPeriodType = BarsPeriodType.Minute, Value = 3 }, "US Equities RTH"); [/COLOR] [/FONT]
      [COLOR=#006400][FONT=Courier]+                AddDataSeries("^VIX", Data.BarsPeriodType.Minute, 3);[/FONT][/COLOR][/B] 
      [FONT=Courier]             }[/FONT] 
      [FONT=Courier]         }
      [/FONT]

      Jessica P.NinjaTrader Customer Service

      Comment


        #4
        Ok, will re-test at that time.

        ----------------

        update: 03-06-2017 - NT 8.0.5.0 is working as expected. Both strategies are enabled at the same time.
        Last edited by sledge; 03-06-2017, 06:13 PM.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Tim-c, Today, 03:54 AM
        0 responses
        3 views
        0 likes
        Last Post Tim-c
        by Tim-c
         
        Started by FrancisMorro, Today, 03:24 AM
        0 responses
        3 views
        0 likes
        Last Post FrancisMorro  
        Started by Segwin, 05-07-2018, 02:15 PM
        10 responses
        1,772 views
        0 likes
        Last Post Leafcutter  
        Started by Rapine Heihei, 04-23-2024, 07:51 PM
        2 responses
        31 views
        0 likes
        Last Post Max238
        by Max238
         
        Started by Shansen, 08-30-2019, 10:18 PM
        24 responses
        945 views
        0 likes
        Last Post spwizard  
        Working...
        X