Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
NT closing positions rules
Collapse
X
-
That is the behavior if you are using Market Orders. You can try to use Limit Orders instead, but that opens a whole new can of worms.Originally posted by entropy View Post
-
Hi entropy,
Yes, enter statements will reverse a position, and will indicate separately close position and the name of the enter rule as two separate items. They'll take care of the closing and opening order in the opposite direction.
If you don't want this behavior, you can add a market position check to your entries, to check that you are flat before submitting the order.
if (Position.MarketPosition == MarketPosition.Flat)
Leave a comment:
-
NT closing positions rules
Dear NT Support:
If I place a long (short) order while a short (long) order is open does NT also send a close position order to complete the flip? Can I disable this? I am already handling the exit but NT is doubling on me, not sure what's generating the double. The order description is just "Close position" which is nowhere in my code.
Thanks!Tags: None
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
68 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
39 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
63 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
62 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
53 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Leave a comment: