Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Control Center Log ==> LogToFile
Collapse
X
-
Hello BartMan,
The OnStateChange() override method will update when a strategy is enabled or disabled.
If the instance reaches State.Configure, this means the strategy has been enabled, and will continue to update through State.DataLoaded, State.Hisorical, State.Realtime, and then State.Terminated.
If the instance has first reached State.Configure and then reached State.Terminated, that is a strategy that was disabled (vs an empty instance used for populating the UI).
Below is a link to the help guide on the Lifecycle of a NinjaScript.
As well as a link to a forum post that discusses.
QuantKey_Bruce is correct, the log is written to files in Documents\NinjaTrader 8\log.Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
24 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
120 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
63 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
41 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
45 views
0 likes
|
Last Post
|

Comment