Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Why do some strategies fail to activate?

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

    Why do some strategies fail to activate?


    This happens rarely. I'm running the exact same strategy under 20 different charts/time frames, with different parameters. Yet, a few instances fail to activate, even though I have them enabled. Why?

    Thanks,




    Attached Files

    #2
    Hello timmbbo,

    Thanks for your notes.

    What version of NinjaTrader are you using? Please provide the entire version number. This can be found under Help -> About (Example: 8.?.?.?)​

    When you enable those strategies by clicking the 'Enable' button on the Strategies tab of the Control Center, does the strategy eventually enable after it has finished calculating logic?

    Do you see any error messages in the Log tab of the Control Center when trying to enable the strategies?

    If so, what exactly does the error message report? Send a screenshot of the error messages so we may see what they are reporting.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3

      Brandon, hey there, following up to this, I found that if I wait 5-15 minutes after enabling the strategy when I load a new chart, then the strategy status flips from white to green. I think what's going on is, the chart hasn't loaded all of the data, so the strategy can't activate.

      Comment


        #4
        Hello timmbbo,

        Thanks for your notes.

        If the strategy does turn from white to green in the Strategies tab of the Control Center then this means the strategy needed to finish calculating logic on historical data.

        You should make sure that the chart has loaded all data before enabling a NinjaScript strategy on the chart.

        If the strategy has a high amount of calculations to do, draws a large number of objects on the chart, is being used on a large amount of data, or Tick Replay is enabled then this would cause the strategy to take longer to calculate historical data.

        You may consider running the strategy on a chart that loads less data (such as fewer days to load), ensure Tick Replay is not enabled if it is not required for the strategy to run, and set the strategy to run using Calculate.OnBarClose instead of Calculate.OnPriceChange or Calculate.OnEachTick if possible. This would lessen the amount of historical data calculations the strategy would need to do.

        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        50 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        126 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        69 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        42 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        46 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X