Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Oif closeposition

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

    Oif closeposition

    if there a way to use OIF CLOSEPOSITION command without disabling all strategies...other than REVERSEPOSITION ?

    I have been using FLATTENEVERYTHING however want to just close the current positions and keep the strat running...

    #2
    Hello ATI user,

    Unfortunately there is not a dedicated command to flatten positions, but leave the strategy running. Will need to custom code this by using Place command to place closing orders.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      the solution is to use CLOSESTRATEGY...provided however that you use PLACE to enter the trade instead of AtmStrategyCreate

      Comment


        #4
        I have a conflict when combining AtmStrategyCreate orders and OIF PLACE orders

        the issue is that I need to be able to close positions without disabling the strategy...so I use PLACE and CLOSE which works fine

        however I also need to be able to move the stops on the orders...CHANGE will work however I first need to check the status of the order...which is easily done using GetAtmStrategyEntryOrderStatus if order was placed using AtmStrategyCreate however those orders can not be closed without disabling the strategy

        so...how can I check the status of an order using OIF commands?

        Comment


          #5
          Unfortunately there is no way to check for working orders PLACED using OIF. There are order update files, but this only contains information about filled orders.
          Ryan M.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by ozziyhtomit, Today, 01:37 PM
          5 responses
          13 views
          0 likes
          Last Post ozziyhtomit  
          Started by hellboy78, Today, 12:44 PM
          6 responses
          14 views
          0 likes
          Last Post hellboy78  
          Started by Option Whisperer, Today, 12:19 PM
          6 responses
          18 views
          0 likes
          Last Post Option Whisperer  
          Started by sdauteuil, Today, 11:30 AM
          1 response
          14 views
          0 likes
          Last Post NinjaTrader_ChrisL  
          Started by Serac, Today, 10:38 AM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X