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 NullPointStrategies, Today, 05:17 AM
|
0 responses
44 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
124 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
65 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
42 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
46 views
0 likes
|
Last Post
|

Comment