Also onbar update errors like this
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strait Errors during trading
Collapse
X
-
Strait Errors during trading
I will get this out of no where and it just freezes the trading until i restart it or reboot NT8 Average Price=0 Quantity=0 Market Position=Flat operation=Remove
Also onbar update errors like this1 PhotoTags: None
-
Hello Chryslertech,
Thank you for your inquiry.
In order to identify the cause of this error and see how the code is working, I suggest adding Print() statements throughout OnBarUpdate().
If you add a Print() every few lines, then you can review the NinjaScript Output window. Once the error appears, the last print to show in the output will help you to narrow down the line of code that caused the error in your strategy script.
For more info about using prints to debug your script:
https://forum.ninjatrader.com/forum/...121#post7911211
Please let me know if I can assist further.
-
Comment
-
Hello,
If you mean the Strategy Builder, yes prints can be added in the Builder. You can add the prints to the 'Actions' section of your sets.
Below is a link to a video on 'Debugging using prints with the Strategy Builder'.
NT8 Strategy Builder - https://drive.google.com/file/d/1CCl...gEIwJKv6L/view
Please let me know if I can assist further.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
87 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
132 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
65 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
118 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
67 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment