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 bortz, 11-06-2023, 08:04 AM
          47 responses
          1,609 views
          0 likes
          Last Post aligator  
          Started by jaybedreamin, Today, 05:56 PM
          0 responses
          9 views
          0 likes
          Last Post jaybedreamin  
          Started by DJ888, 04-16-2024, 06:09 PM
          6 responses
          19 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by Jon17, Today, 04:33 PM
          0 responses
          6 views
          0 likes
          Last Post Jon17
          by Jon17
           
          Started by Javierw.ok, Today, 04:12 PM
          0 responses
          16 views
          0 likes
          Last Post Javierw.ok  
          Working...
          X