Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Question about order of operations for reversing a position

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

    Question about order of operations for reversing a position

    Lets say my strategy is in a long position for 1 contract. After some time I get a short signal. If I use the EnterShort() function, under the hood what happens?

    Does Ninja check that I'm in a long already, and then basically execute Position.Close(), wait for a confirmation response from the broker, and then send an EnterShort() order for 1 contract, or does the system see that I'm currently long 1 contract, want to be in a position where I am short 1 contract, and simply EnterShort() for 2 contracts, knowing that 1 contract will close the current long and the other contract would put me short?

    #2
    Hello Epiphany79,

    Using the managed approach NinjaTrader will manage the position to reverse it.

    First, an order with the name 'Close position' will automatically be submitted to close the open long position. Then the sell entry market order will be submitted which will enter the short position.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    55 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    132 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    73 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X