Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MultiBroker Strategy Error

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

    #16
    I have changed the line no 79 and 80 to if (CurrentBars[0] < 0 || CurrentBars[1] < 0) return; Think this was the problem? So now it is checking the crossover of the added data series on the current bar of the minute chart?

    Comment


      #17
      Hello victorNT,

      Thank you for your reply.

      That will never return out of OnBarUpdate - CurrentBars is always going to be 0 or greater. If you are still checking the previous bar of the MACD, you will hit an error when trying to do so. I would suggest changing this back to what you previously had.

      That being said, I do not see in the code that you have taken the necessary debugging steps I've laid out in my previous posts:
      Hi. I have ninjatrader 8.0.23.2 and with multibroker lifetime license. I am trying to use simple MACD ATM strategy on SPY chart and trigger the order for Thinkorswim. But I am getting the below error, could you please guide me on the error. Thanks. Error image attached. Strategy error.png


      We in the support department cannot debug a strategy for you, we expect that you would add prints and utilize the order trace function to determine whether a trade should have been taken at a specific time. If you have added prints and turned on Trace Orders and do not understand what the output is telling you, we can assist with that.

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

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      62 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      134 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