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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
155 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
90 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
137 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
130 views
1 like
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
107 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment