Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Enable Strategy

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

    Enable Strategy

    Hi Team Ninja

    I am having a problem with enabling strategies created with the strategy builder. It worked fine before but now I cannot make it work anymore.

    Thats what the log shows me:
    ​Any hints why it doesnt work and what this message means? I can enable the strategy but a few seconds later it automatically disables the strategy.

    Another question: What does it mean when charttrader is magenta?
    Click image for larger version

Name:	image.png
Views:	210
Size:	35.5 KB
ID:	1260045

    Thanks Team Ninja!​

    #2
    Hello Browniver,

    Thank you for your reply.

    It appears that maybe an attachment didn't come through. What is the log showing you when trying to enable strategies?

    As for the magenta chart trader, I suspect that is your simulation color selected at Control Center > Tools > Options > Trading > Simulation color. When a simulation account is selected, the order entry window background will change to that color. When a live account is selected, the background will match the NinjaTrader skin color. For more information:


    I look forward to your reply.

    Comment


      #3
      Hi Emily

      Here is the screenshot.

      It looks like a script wants to access data.

      Thanks!

      Comment


        #4
        Magenta was indeed simulation color.

        Comment


          #5
          Hello Browniver,

          Thank you for your reply.

          The error message you are receiving indicates that your strategy is using an indicator that has an added data series with AddDataSeries(). The strategy must also call AddDataSeries() for the same added data to load any bars data that the indicator requires. We also have a note in the help guide page about multi-time frame & instrument scripts:
          To maximize data loading performance, any NinjaScript object (indicator or strategy as host) which references a multi-series indicator which calls AddDataSeries must include it's own calls to AddDataSeries(). For example, if the code above was included in an indicator, and that indicator was referenced in a NinjaScript strategy, then the hosting strategy will need to include the same calls to AddDataSeries(). When the strategy adds the additional Bars objects, the calls to AddDataSeries() within the indicator will be ignored. If the Bars objects are not added by the strategy in such cases, and error will be thrown in the Log tab of the Control Center that would read - "A hosted indicator tried to load additional data. All data must first be loaded by the hosting NinjaScript in its configure state."


          What this means is that any data series that are added in the indicator will also need to be added on the Additional Data screen of the Strategy Builder to prevent this error.

          Please let us know if we may be of further assistance.

          Comment


            #6
            Thanks for your hint Emily!

            I could not make it work yet. Need some time over the weekend to experiment.

            Comment


              #7
              Yes I needed to add 1 Tick Charts for the Footprint Indicator.

              Thanks Emily for your help!

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by NullPointStrategies, Yesterday, 05:17 AM
              0 responses
              65 views
              0 likes
              Last Post NullPointStrategies  
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              139 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              75 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              45 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              50 views
              0 likes
              Last Post TheRealMorford  
              Working...
              X