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?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Question about order of operations for reversing a position
Collapse
X
-
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?Tags: None
-
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
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
43 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
20 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
30 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
47 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
38 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment