ExitOnSessionCloseSeconds = 30;
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
Ignore session close
Collapse
X
-
Jesse,
I need to get clear on applying. If I make a change in <OnBarUpdate>, all that is required is Update Ninja Script but other changes require a script update. My question is what is an update? If I remove it from a strategy and reload it, obviously that is reloaded but if a strategy is disabled and a change is made followed by enabled, is that reloaded?
Comment
-
Hello galsermil,
Reloading NinjaScript by using F5 or disabling/re enabling a strategy just restarts the script using the existing settings that were defined when you applied it. If you change a default setting the scripts that are already running wont reflect that change even when doing a F5 or disabling/re enabling, its using the original defaults from when it was applied. You have to remove and re apply a script any time you change OnStateChange items so the script can reflect those changes.
F5 or disabling/re enabling will restart the script so you will see code changes to later parts of the script like OnBarUpdate. In general its best to just re apply a script any time you make a change and don't get the expected outcome.
JesseNinjaTrader Customer Service
Comment
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by pechtri, 06-22-2023, 02:31 AM
|
9 responses
122 views
0 likes
|
Last Post Today, 02:31 PM | ||
Started by frankthearm, 04-18-2024, 09:08 AM
|
16 responses
66 views
0 likes
|
Last Post Today, 02:17 PM | ||
Started by habeebft, Today, 01:18 PM
|
1 response
5 views
0 likes
|
Last Post Today, 02:03 PM | ||
Started by benmarkal, Today, 12:52 PM
|
2 responses
15 views
0 likes
|
Last Post
by benmarkal
Today, 02:00 PM
|
||
Started by f.saeidi, Today, 01:38 PM
|
1 response
8 views
0 likes
|
Last Post Today, 01:45 PM |
Comment