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 benmarkal, Yesterday, 12:52 PM
          3 responses
          22 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by helpwanted, Today, 03:06 AM
          1 response
          17 views
          0 likes
          Last Post sarafuenonly123  
          Started by Brevo, Today, 01:45 AM
          0 responses
          11 views
          0 likes
          Last Post Brevo
          by Brevo
           
          Started by aussugardefender, Today, 01:07 AM
          0 responses
          6 views
          0 likes
          Last Post aussugardefender  
          Started by pvincent, 06-23-2022, 12:53 PM
          14 responses
          244 views
          0 likes
          Last Post Nyman
          by Nyman
           
          Working...
          X