Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Varying Errors in strategy.
Collapse
X
-
Varying Errors in strategy.
I have made a script, and errors are coming left and right that are not logical. Everything works, but it decides to not invalidate this when that print is active. Or when this print is active, it says draw is set to false but still draws one object, when all 7 active objects draw bool is set to false. I would like to not share this script publicly, but would love the help of a kind experienced soul who could tell me if its because my script is not optimized or what is causing these errors. Help in exchange for access to the script sounds nice?Tags: None
-
Hello olisav57,
Without more specifics about the code you are having a problem with it would be difficult to say what may be happening. What I would suggest would be to create a reduced sample version of the script that you can share that just shows the general logic or conditions you are having problems with, with that our support could try to provide suggestions on ways to work through whatever the problem with that sample is. Outside of that all I could suggest would be to continue to use prints to diagnose what problem is happening by outputting what the strategy is logically doing.
-
I have another script, with the same logic but only bullish cases, that works perfectly. It's when I incorporate both logics that it thens creates errors that I do not comprehend. It's an 850 line script (with lots of spaces), can I send it in it's entirety here? I don't understand the error, so I cannot pinpoint where it forms.Originally posted by NinjaTrader_Jesse View PostHello olisav57,
Without more specifics about the code you are having a problem with it would be difficult to say what may be happening. What I would suggest would be to create a reduced sample version of the script that you can share that just shows the general logic or conditions you are having problems with, with that our support could try to provide suggestions on ways to work through whatever the problem with that sample is. Outside of that all I could suggest would be to continue to use prints to diagnose what problem is happening by outputting what the strategy is logically doing.
Comment
-
Hello olisav57,
From the description it sounds like you may be implementing something which makes it logically not work when added. What I would suggest is to create a new copy of the script that is working and start over on adding the other cases you wanted. When you encounter your first error make a post about that if your not sure why you are getting that. Also include a sample of the part of the code you are having an error with. While we cannot debug a full script for you we can work with small samples that show a specific problem or specific parts of code that you have identified as having a problem.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
53 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
130 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
70 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
44 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
49 views
0 likes
|
Last Post
|

Comment