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 futtrader, 04-21-2024, 01:50 AM
          4 responses
          41 views
          0 likes
          Last Post futtrader  
          Started by Option Whisperer, Today, 09:55 AM
          1 response
          11 views
          0 likes
          Last Post bltdavid  
          Started by port119, Today, 02:43 PM
          0 responses
          3 views
          0 likes
          Last Post port119
          by port119
           
          Started by Philippe56140, Today, 02:35 PM
          0 responses
          4 views
          0 likes
          Last Post Philippe56140  
          Started by 00nevest, Today, 02:27 PM
          0 responses
          2 views
          0 likes
          Last Post 00nevest  
          Working...
          X