Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cancel Strategy

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

    Cancel Strategy

    I am running eSignal with NT's ATI and would like to be able to cancel a specific strategy under certain conditions.

    For instance, if I am running 3 different strategies in the same account, how can I cancel one without affecting the others.

    NTFlattenEverything not only flattens that account but all other accounts.

    NTCancelOrder(orderID) cancels a specific order. Can I use this with my strategyID?

    Thanks.

    #2
    imported post

    Use NTCommand()

    for the parameter command, pass in CLOSESTRATEGY and also pass in a strategy id of the strategy you want to close. Please check the Help Docs for accurracy.
    RayNinjaTrader Customer Service

    Comment


      #3
      imported post

      Works fine. Thanks.

      On occassion I get a message "unknown strategy" which I assume is because it has already been closed or maybe hit its stop?

      Comment


        #4
        imported post

        Means the strategy is closed.
        RayNinjaTrader Customer Service

        Comment


          #5
          imported post

          got it....first I was passing the wrong strategyID

          ...then I was closing it just after the stops closed it....checking NTStrategyPosition(strategyID ) first now....works fine.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CaptainJack, 05-29-2026, 05:09 AM
          0 responses
          309 views
          0 likes
          Last Post CaptainJack  
          Started by CaptainJack, 05-29-2026, 12:02 AM
          0 responses
          199 views
          0 likes
          Last Post CaptainJack  
          Started by charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          186 views
          1 like
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          277 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          229 views
          0 likes
          Last Post CarlTrading  
          Working...
          X