• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

A hosted indicator tried to load additional data. All data must first be loaded by th

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

    A hosted indicator tried to load additional data. All data must first be loaded by th

    I'm getting this error message in the output log:

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

    Steps.
    Put the MACrossOverSampleStrategy on a chart. Enable it in the strategies tab.

    There must be something corrupted in my system but it's happening on two different computers with my own strategies as well as the sample strategy.

    some strategies work sometimes but I cna't figure out what's different.

    If I put the strategy directly in the control Center ( instead of on a chart ) then it always works.

    #2
    Hello,

    Thank you for the post.

    This message is fairly specific for the reason this occurs, mainly this occurs only when a strategy uses a Indicator in which that indicator adds data. The strategy would also need to add the same series.

    I am not seeing this with the included default SampleMACrossOver strategy, you noted that you see this with a strategy named "MACrossOverSampleStrategy ". In this script, do you currently reference another indicator and does that indicator add a second series? If so you would need to copy the AddDataSeries syntax from the indicator into the strategy as well.

    If you are unsure of the changes needed, please provide the script for me to review and we could continue looking into the error.


    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      I'm using the SampleMACrossOver that comes with NT8.
      I just put that on a chart and try and start it. That's it.
      I can run TeamViewer if you want to see.

      Comment


        #4
        Hello,

        I would not necessarily want to schedule a remote session at this point, but you could send me the file you are using for me to further review. The SampleMACrossOver does not add any additional series, so potentially you have replaced the default script with something else.

        Please email me at platform support [at] ninjatrader.com and include a link to this post.

        Additionally please attach the file: Documents\NinjaTrader 8\bin\Custom\Strategies\@SampleMACrossOver.cs

        An image of the platform where you have applied this strategy would also be helpful.

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          See attached. The checkbox next to the strategy in the Control Center remains unchecked after I try to check it. When I try to enable it the message in the output window is displayed. All visible in the screen shot.
          I also attached the SampleMACrossover strategy,
          Attached Files

          Comment


            #6
            Hello,

            Thank you for providing the file.

            To further assist you, please email me at platform support [at] ninjatrader.com and include a link to this post. Additionally please send in your log and trace files for me to review:

            Open your NinjaTrader 8 folder under Documents.
            Right click on the 'log' and 'trace' folders and select Send To> Compressed (zipped) Folder.
            Send the 2 compressed folders as attachments to this email.
            Once complete, you can delete these compressed folders.

            I look forward to being of further assistance.
            JesseNinjaTrader Customer Service

            Comment


              #7
              Im having the same trouble, even with the sample strategies included on Ninja ;
              They can be enabled from the chart but not from control center check box because we get the error
              A hosted indicator tried to load additional data. All data must first be loaded by the hosting NinjaScript in its configure state.

              The log and trace files dont show any more info than that
              2016-12-15 12:40:14:274|3|4|A hosted indicator tried to load additional data. All data must first be loaded by the hosting NinjaScript in its configure state.
              2016-12-15 12:40:14:994|3|4|A hosted indicator tried to load additional data. All data must first be loaded by the hosting NinjaScript in its configure state.
              2016-12-15 12:40:16:037|3|4|A hosted indicator tried to load additional data. All data must first be loaded by the hosting NinjaScript in its configure state.
              2016-12-15 12:42:02:310|1|4|Enabling NinjaScript strategy 'SampleStrategyPlot/93006782' : On starting a real-time strategy - StartBehavior=WaitUntilFlat EntryHandling=All entries EntriesPerDirection=1 StopTargetHandling=Per entry execution ErrorHandling=Stop strategy, cancel orders, close positions ExitOnSessionClose=True / triggering 30 seconds before close SetOrderQuantityBy=Strategy ConnectionLossHandling=Keep running DisconnectDelaySeconds=10 CancelEntriesOnStrategyDisable=True CancelExitsOnStrategyDisable=True Calculate=On bar close IsUnmanaged=False MaxRestarts=4 in 5 minutes
              ( last row corresponds to the Strategy being enabled from that chart, while first 3 rows when trying to enable from control center checkbox )
              pmaglio
              NinjaTrader Ecosystem Vendor - The Indicator Store

              Comment


                #8
                Hello,

                Thank you for posting.

                We have actually been able to reproduce this as of this morning so a report to development has been made.

                If I have further details on this item I will reply back here.

                I look forward to being of further assistance.
                JesseNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by joemiller, Today, 07:33 AM
                0 responses
                6 views
                0 likes
                Last Post joemiller  
                Started by isnercrypto, Today, 06:42 AM
                0 responses
                4 views
                0 likes
                Last Post isnercrypto  
                Started by Coursocied67, Today, 04:02 AM
                0 responses
                5 views
                0 likes
                Last Post Coursocied67  
                Started by TheGameOfProbabilities, 07-18-2019, 06:56 AM
                7 responses
                37 views
                0 likes
                Last Post DaveS
                by DaveS
                 
                Started by claxxical, Yesterday, 10:00 PM
                0 responses
                11 views
                0 likes
                Last Post claxxical  
                Working...
                X