Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
My strategy Stopped working after few changes, reverted them but cant find the mistak
Collapse
X
-
My strategy Stopped working after few changes, reverted them but cant find the mistak
I am trying to come up with my own strategy, It worked up until last week. trying to workout some potential weaknesses, I made some changes that seemed to make it stop working. I tried to revert the changes but still cant find the error. I'm having no luck. Is there anyone here that could take a look at it and see if they have better luck? -
Hi Yandychang,
I'd would be willing to take a look for you if you post the script.
That said, the best way to debug your script to add prints to the code using the Print() command.
If you are looking for where the script is halting, add prints every few lines and see where the prints stop.
If you are looking at a particular branching command (if statements), then you can print all the values used in that branching command to see why the conditions evaluated the way they did.
Prints will go to the Output Window. (Tools -> Output Window...)
Below is a link to the help guide on Print().
http://www.ninjatrader.com/support/h.../nt7/print.htmChelsea B.NinjaTrader Customer Service
-
Thanks ChelseaB:
I figured it out, Looked it up in the log screen, seems to be working now.... I will take a look at the print() command since sometimes I want to see the values of my variables and DataSeries....
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
580 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
335 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
102 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
554 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
552 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment