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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    163 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    81 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    125 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    206 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    184 views
    0 likes
    Last Post CarlTrading  
    Working...
    X