Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
MultiBroker Strategy Error
Collapse
X
-
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
65 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
139 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
75 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
50 views
0 likes
|
Last Post
|
Comment