when is the new code going to take effect? Is it sufficient if I enabled/disabled the strategy, or I need to remove the existing instance and add it (as new) again?
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
Is instantiated strategy updated immediately after re-compile?
Collapse
X
-
Is instantiated strategy updated immediately after re-compile?
Hi question is this: say I have a strategy that has been running/added to an account, then I update the code and recompile --
when is the new code going to take effect? Is it sufficient if I enabled/disabled the strategy, or I need to remove the existing instance and add it (as new) again?Tags: None
-
This is a response from a user while you are waiting for an official answer. You can remove the existing instance and add it (as new) again, as you suggest, but that will require also resetting any customized parameters. An easier method is to right-click the chart and select Reload NinjaScript. Merely disabling and re-enabling a strategy will not cause a newly compiled version to be used.Last edited by caveat_lector; 04-04-2020, 07:32 AM.
-
Hi momchi, thanks for your post.
If you make code changes in the OnStateChanged method, you must remove the script from the chart/control center and re-add the script after compiling. If you change code anywhere else you can press "F5" on your keyboard or right click and select "Reload NinjaScript" after compiling.
Please let me know if I can assist any further.Chris L.NinjaTrader Customer Service
- Likes 1
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Rapine Heihei, Today, 08:19 PM
|
1 response
6 views
0 likes
|
Last Post Today, 08:30 PM | ||
Started by Rapine Heihei, Today, 08:25 PM
|
0 responses
5 views
0 likes
|
Last Post Today, 08:25 PM | ||
Started by f.saeidi, Today, 08:01 PM
|
1 response
5 views
0 likes
|
Last Post Today, 08:17 PM | ||
Change colour of Stop market and limit orders to red and green via indicator script
by Rapine Heihei
Started by Rapine Heihei, Today, 07:51 PM
|
0 responses
6 views
0 likes
|
Last Post Today, 07:51 PM | ||
Started by frslvr, 04-11-2024, 07:26 AM
|
5 responses
98 views
1 like
|
Last Post
by caryc123
Today, 07:47 PM
|
Comment