Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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
-
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 bc24fl, 08-30-2019, 01:58 PM
|
3 responses
253 views
0 likes
|
Last Post
by PaulMohn
Today, 03:04 AM
|
||
Started by tradingnasdaqprueba, 04-09-2024, 09:52 AM
|
6 responses
26 views
0 likes
|
Last Post Today, 02:15 AM | ||
Started by PaulMohn, Today, 02:06 AM
|
1 response
3 views
0 likes
|
Last Post
by PaulMohn
Today, 02:12 AM
|
||
Started by Mindset, Today, 01:27 AM
|
0 responses
5 views
0 likes
|
Last Post
by Mindset
Today, 01:27 AM
|
||
Started by EB Worx, 03-07-2023, 05:05 AM
|
4 responses
99 views
1 like
|
Last Post
by cls71
Today, 01:17 AM
|
Comment