the problem usually happens at 16:30 but also at 00:00, but I do not create new bar goes crazy buying or selling,
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
many entries on the same bar
Collapse
X
-
many entries on the same bar
hello i have some problems with the ninja player, i am playing my strategy in the CL with unirenko bars i have the brand playback activated. but sometimes it makes me many entries in the same bar when it should only make one. and my performans is triggered producing me many entries i would like to know how i can solve that. i attach some screenshots.
the problem usually happens at 16:30 but also at 00:00, but I do not create new bar goes crazy buying or selling,Tags: None
-
Hello JesusSanchez,
Many entries per bar is generally caused by using OnEachTick or OnPriceChange calculation mode and the entry condition remaining true. You could add logic to make sure only one entry can happen per bar. Generally the BarsSinceEntry could be used for that purpose:
if ((BarsSinceEntryExecution() > 0 || BarsSinceEntryExecution() == -1))
This method reports -1 if no entry was found, otherwise it counts up from the entry bar. You could use 0 and -1 as the values to make sure it is not on the same identical bar.
I look forward to being of further assistance.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
23 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
120 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
63 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
41 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
45 views
0 likes
|
Last Post
|

Comment