Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Multiple entries
Collapse
X
-
Multiple entries
In my OnBarUpdate, I have said to EnterShort if (Position.MarketPosition == MarketPosition.Flat). However, i noticed in backtest that there are several entries made before it exits previous position. I toggled CalcualtionOnBarClose with true and false but no difference. I want only one entry at one time. Separately, I have the Backtest properties set to Entry per Direction = 1 but that does not seem to work either.Tags: None
-
Thanks for quick reply. Did not think I would get a reply till next week.
My primary bars are 15m. And in the condition I'm checking for when 1m price close bar crosses 15m PSAR. Does this help.
So within the 15m bar there are several entries which I don't want. How can I restrict to only 1 entry at all time. Next entry only after first entry has exited.
Comment
-
ashish997,
Let me go back to your first post. You mention you have EntriesPerDirection set to 1. What do you have EntryHandling set to? This should be AllEntries if you want it to only allow for 1 position at a time. Setting it to UniqueEntries means 1 position per signal name you provide. If you have 2 or 3 different signal names it would be possible to have 2 or 3 different short trades active.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
656 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
371 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
109 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
574 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
579 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment