Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unexpected 'Close Position' orders

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

    #31
    worow,

    That is the behavior you should see. When you are short 300 and you try to submit an EnterLong() order it will get you into a 100 long position. To do this it needs to close your short position first. That means submitting a "Close position" order of 300. And then getting you in 100 long means another order for 100 long.

    This is what NinjaTrader does. If you only wanted to go down 100 you need to submit ExitShort() and you need to tie it to which 100 shares you wanted to close.

    Say you got 300 through three EnterShorts(). Each one needs a unique name and then you can close each 100 position individually.
    Josh P.NinjaTrader Customer Service

    Comment


      #32
      Josh,

      Thanks, I feel pretty foolish. I realized after my last post that EnterLong or Entershort would reverse the position and that I needed another method to make the trade I wanted.

      -Thanks for your help

      Comment


        #33
        Last question before the weekend: is there a simple way to enter buy and sell orders without specifying signal name etc? I don't need to track that and I am worried about the order handling getting awkward as the position moves from long to short.

        Thanks again and have a nice weekend.

        Comment


          #34
          When you are using a scale in/out strategy you will want to signify signal names. If you are only going with one position. Enter long 100, followed by enter short 100 and it is always like this then you do not need to specify signal names.
          Josh P.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Today, 05:17 AM
          0 responses
          20 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          119 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          63 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          41 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          45 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X