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 ghoul, Today, 06:02 PM
          3 responses
          14 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by jeronymite, 04-12-2024, 04:26 PM
          3 responses
          44 views
          0 likes
          Last Post jeronymite  
          Started by Barry Milan, Yesterday, 10:35 PM
          7 responses
          20 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by AttiM, 02-14-2024, 05:20 PM
          10 responses
          180 views
          0 likes
          Last Post jeronymite  
          Started by DanielSanMartin, Yesterday, 02:37 PM
          2 responses
          13 views
          0 likes
          Last Post DanielSanMartin  
          Working...
          X