Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy State jumps from Configure to Terminated, nothing in between

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Strategy State jumps from Configure to Terminated, nothing in between

    I am using NT8, connected successfully to an Interactive Brokers account, and my strategies don't ever get to state Active or DataLoaded, nor do OnBarUpdate is ever called.
    To simplify it I created a new strategy and put only one line of code in it - (I try both on daily and minute charts)

    protected override void OnStateChange()
    {
    Print(State);
    SetDefaults(...);
    }

    When activating the strategy, my output window looks like this:

    SetDefaults
    SetDefaults
    Configure
    Terminated
    Terminated

    Why isn't even getting to become active, to load data, or to any bar update?

    #2
    Hello dadomil,

    Are you able to reproduce this behavior with the SampleMACrossOverScript that is included with NinjaTrader?

    Are you checking the box for Enabled to enable the script?
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    52 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    70 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X