Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy errors
Collapse
X
-
Strategy errors
I have been developing strategies via the wizard with no problem. I decided to try programming them. I simply copied and pasted code from an existing strat. to a new one. I had a bunch of errors so I canceled it. Now when I do a strat from the wizard, the errors from the strat I cancelled appear magically. How do I resolve this?Tags: None
-
Hello snotrag12,
Copy/Pasting the entire code would not be recommended as it can lead to errors like you are seeing. You may copy/paste parts of code if you would like but not the entire code.
If you would like to you may create a new strategy with the original code from another strategy by going to the Control Center -> Tools -> Edit NinjaScript -> Strategy. Then double left click on the indicator that you want to have the original code from. It will then open up the source code for the Strategy. Right click inside the window and select Save As. Type in a name of your choosing then press "Save". Press the "OK" button as NinjaTrader will automatically rename them for you. Now you have a new strategy based off the original strategy code that you can modify.
Note if it inside of the Strategy Wizard you may press the View Code button, then select Save As.
Happy to be of further assistance.JCNinjaTrader Customer Service
-
The easiest thing to do will be to correctly delete the errant strategy by using the strategy creation dialog box to delete the file.Originally posted by snotrag12 View PostI have been developing strategies via the wizard with no problem. I decided to try programming them. I simply copied and pasted code from an existing strat. to a new one. I had a bunch of errors so I canceled it. Now when I do a strat from the wizard, the errors from the strat I cancelled appear magically. How do I resolve this?
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
310 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
199 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
186 views
1 like
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
278 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
229 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment