I am trying to reference the Low of the day just passed while still in the current day, in a minutely time frame
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Intraday bar number. Yesterday's Low while today is still forming.
Collapse
X
-
Intraday bar number. Yesterday's Low while today is still forming.
Does anyone know if there is a way to find intraday bar number if in a minutely time frame?
I am trying to reference the Low of the day just passed while still in the current day, in a minutely time frameTags: None
-
Thanks so much Paul. That is great.
Is there any good way to access the last bar of the previous day and the first bar of today (still forming) in the minutely time frame? So far I have used , for example,
Bla.Set(indicator[barsSinceSession+1]), for the last bar of the previous day
... but it looks messy and is probably fairly heavy on processing
Comment
-
Hello johnls101,
Thanks for your post.
You can use:
if (Bars.FirstBarOfSession) // true only on first bar of the session
{
// do something on first bar like access Close[0]
// and can also access the previous bar which would have been the last bar of the previous session, Close[1]
}
Reference: http://ninjatrader.com/support/helpG...rofsession.htm
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
160 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
307 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
245 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
348 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
178 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|

Comment