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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
152 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
89 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
131 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
127 views
1 like
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
107 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment