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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      90 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      137 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      120 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      71 views
      0 likes
      Last Post PaulMohn  
      Working...
      X