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 samish18, Today, 01:01 PM
          1 response
          6 views
          0 likes
          Last Post NinjaTrader_LuisH  
          Started by WHICKED, Today, 12:56 PM
          1 response
          8 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by cre8able, Today, 01:16 PM
          0 responses
          3 views
          0 likes
          Last Post cre8able  
          Started by chbruno, 04-24-2024, 04:10 PM
          2 responses
          47 views
          0 likes
          Last Post chbruno
          by chbruno
           
          Started by WHICKED, Today, 12:45 PM
          1 response
          11 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Working...
          X