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 Tim-c, Today, 03:54 AM
          0 responses
          3 views
          0 likes
          Last Post Tim-c
          by Tim-c
           
          Started by FrancisMorro, Today, 03:24 AM
          0 responses
          2 views
          0 likes
          Last Post FrancisMorro  
          Started by Segwin, 05-07-2018, 02:15 PM
          10 responses
          1,770 views
          0 likes
          Last Post Leafcutter  
          Started by Rapine Heihei, 04-23-2024, 07:51 PM
          2 responses
          31 views
          0 likes
          Last Post Max238
          by Max238
           
          Started by Shansen, 08-30-2019, 10:18 PM
          24 responses
          945 views
          0 likes
          Last Post spwizard  
          Working...
          X