Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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.Kate W.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Workspaces
by pibrew
Started by pibrew, Today, 06:10 PM
|
1 response
16 views
0 likes
|
Last Post Today, 07:31 PM | ||
Started by actualfacts.2021, 07-25-2021, 03:11 PM
|
8 responses
1,182 views
0 likes
|
Last Post
by linkcou
Today, 07:11 PM
|
||
Started by reynoldsn, Today, 07:11 PM
|
0 responses
4 views
0 likes
|
Last Post
by reynoldsn
Today, 07:11 PM
|
||
Started by needsomehelp147, 04-29-2024, 06:43 AM
|
2 responses
20 views
0 likes
|
Last Post Today, 06:59 PM | ||
Started by sidlercom80, 10-28-2023, 08:49 AM
|
177 responses
2,401 views
0 likes
|
Last Post
by jeronymite
Today, 06:43 PM
|
Comment