The attached pictures show (1) two examples of said double entries, and (2) the conditions of my strategy. Thanks!
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy Sometimes Enters Double / Duplicate Entries
Collapse
X
-
Strategy Sometimes Enters Double / Duplicate Entries
Hello, I am running a strategy (built in strategy builder) that trades 1 contract. However, every now and then, when the conditions are met, it enters two entries, (either at the same entry point or a tick or two apart). I can't figure out why. It is a condition that my strategy only enters a trade when market position is flat. Please help.
The attached pictures show (1) two examples of said double entries, and (2) the conditions of my strategy. Thanks!Tags: None
-
NinjaTrader_ChelseaB - it calculates on each tick. So if I understand correctly - is it the reason this is happening that after the first order is entered, it does not yet realize just yet that the current market position is no longer flat?
QuantKey_Bruce - Oh, I have EntriesPerDirection at 20 or so. Would it make a difference if I had it at 1? Also, would that mean that my strategy would enter 1 long trade, and then if another long trade comes along later, it would not enter the next one?
Thank you both! I really appreciate all the help I can get.
Comment
-
Hello dwfromhawaii,
Yes, until the first order is accepted, becomes working, is filled, and the position changes, new orders can be placed on each new tick as the position has not yet changed.
You could choose to use a variable such as a bool that is set to true once the order is placed, and then back to false once the exit is submitted.
With EntriesPerDirection set to 20, you can 20 entries orders into the position before further entries are ignored. Set this to 1, if you only would like 1 entry into the position.Chelsea B.NinjaTrader Customer Service
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
45 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
21 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
31 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
50 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
42 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment