Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT8 Replacement for NT7 Disable() Method

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

    NT8 Replacement for NT7 Disable() Method

    I use several try-catch blocks in my unmanaged strategy code to trap runtime errors and after the count reaches N exceptions, I call the Disable() method to disable the strategy from operating. Disable() does not compile under NT8 and I have not been able to find a replacement method to date. Thanks.

    Whitmark Development
    whitmark
    NinjaTrader Ecosystem Vendor - Whitmark Development

    #2
    You can use:

    Code:
    SetState(State.Terminated);
    I will have the code breaking changes amended to reflect this new implementation.
    MatthewNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by WHICKED, Today, 12:56 PM
    2 responses
    14 views
    0 likes
    Last Post WHICKED
    by WHICKED
     
    Started by Felix Reichert, Today, 02:12 PM
    0 responses
    1 view
    0 likes
    Last Post Felix Reichert  
    Started by Tim-c, Today, 02:10 PM
    0 responses
    1 view
    0 likes
    Last Post Tim-c
    by Tim-c
     
    Started by cre8able, Today, 01:16 PM
    2 responses
    9 views
    0 likes
    Last Post cre8able  
    Started by chbruno, 04-24-2024, 04:10 PM
    3 responses
    49 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X