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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    87 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    132 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    65 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    118 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X