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
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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.JesseNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Gerik, 12-21-2023, 08:20 AM
|
15 responses
201 views
0 likes
|
Last Post
by Mindset
Today, 02:06 PM
|
||
Started by visvabalaji, Today, 02:04 PM
|
0 responses
0 views
0 likes
|
Last Post
by visvabalaji
Today, 02:04 PM
|
||
Started by spottysallrite, Today, 11:31 AM
|
6 responses
14 views
0 likes
|
Last Post Today, 01:53 PM | ||
Started by volIQ, Yesterday, 04:28 PM
|
2 responses
16 views
0 likes
|
Last Post
by volIQ
Today, 01:42 PM
|
||
Started by adeelshahzad, Today, 11:49 AM
|
5 responses
16 views
0 likes
|
Last Post Today, 01:27 PM |
Comment