Anyway thought the EntriesPerDirection would limit to 6 positions but I have 12 long.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Perfect Storm
Collapse
X
-
Perfect Storm
Enclosed are my orders and the initialize section of the strategy code which should of limited EntriesPerDirection to 6.. Here is the story,, was short 6, first blue bar with stops. The blue dot is an exit signal and a possible buy signal but not always so could not depend on it to take out the opposite position.. the label "mmS1","mmS2" comes from my code because of the blue dot.. The "close position" verbiage is not mine,, does this come from the stops??
Anyway thought the EntriesPerDirection would limit to 6 positions but I have 12 long.Tags: None
-
gg80108,
What has likely happened is you placed in your reverse orders too early. If you call for an enter long when you still hold a short position it will try to close your short position via the "Close position" order. This may generate issues like you see when you also try to manually close those positions in conjunction with the auto reverse logic. What you need to do is not submit any orders to close short if you know you are going to try to go long. Just place the go long order and it will close the shorts and get you the long automatically.Josh P.NinjaTrader Customer Service
-
A related question with example scenario -
Current position: -2
Entries per direction: 2
EnterLong(2) is called twice in very quick succession (e.g. due to a few quick ticks).
Is NT smart enough to know that the first EnterLong() needs to exit the short position but the second one doesn't, even if no ack has yet been received from the exchange?
In order words, will NT send buy 4, buy 2 in quick succession if it hasn't yet received any response for the first order?
Cheers,
-Swig-
Comment
-
As long as it still sees that short, the EnterLong has the potential to send the "Close position" order. Instead, if you know you want to do quick succession like that, please roll it into one entry or just wait for the first to fill before submitting the second. You can also use an exit order to close the short and then fire off your entries.Josh P.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
558 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
324 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
545 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
547 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment