Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Is there a way to specify a condition for number of bars in a a time slot?
Collapse
X
-
Is there a way to specify a condition for number of bars in a a time slot?
Is there a way to specify a condition in the Strategy Wizard for the number of bars in a time slot? For example when using a non time based chart specify that if there are this number of bars in a time slot for example from 10 to 11 am then do the following. I think I can specify the time slot already but I need something that counts bars so that I can give it a numerical value. I don't know if there is anything that can be used for this purpose. Perhaps you can point me in the right direction. Thanks.Tags: None
-
One way would be to use Bars.GetBar() to get the corresponding bar number for your initial and end times, then take the difference.Originally posted by bijan View PostIs there a way to specify a condition in the Strategy Wizard for the number of bars in a time slot? For example when using a non time based chart specify that if there are this number of bars in a time slot for example from 10 to 11 am then do the following. I think I can specify the time slot already but I need something that counts bars so that I can give it a numerical value. I don't know if there is anything that can be used for this purpose. Perhaps you can point me in the right direction. Thanks.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
86 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
48 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
29 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
32 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
67 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment