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 sjsj2732, Yesterday, 04:31 AM
|
0 responses
31 views
0 likes
|
Last Post
by sjsj2732
Yesterday, 04:31 AM
|
||
|
Started by NullPointStrategies, 03-13-2026, 05:17 AM
|
0 responses
286 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
283 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
133 views
1 like
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
91 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|

Comment