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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    30 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    47 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X