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 johntraderuser2, Today, 02:34 AM
|
0 responses
6 views
0 likes
|
Last Post Today, 02:34 AM | ||
Started by IanS00, 03-27-2024, 11:24 AM
|
2 responses
12 views
0 likes
|
Last Post Today, 02:00 AM | ||
Started by Mariawilcoxi, Today, 01:32 AM
|
0 responses
4 views
0 likes
|
Last Post
by Mariawilcoxi
Today, 01:32 AM
|
||
Started by gleichnerany, Today, 01:17 AM
|
0 responses
5 views
0 likes
|
Last Post
by gleichnerany
Today, 01:17 AM
|
||
Started by WHICKED, 03-27-2024, 12:33 PM
|
4 responses
47 views
0 likes
|
Last Post Today, 12:28 AM |
Comment