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
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
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.htmPaul H.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by volIQ, Yesterday, 04:28 PM
|
1 response
12 views
0 likes
|
Last Post Today, 06:55 AM | ||
Started by martini, Yesterday, 04:45 PM
|
1 response
10 views
0 likes
|
Last Post Today, 06:45 AM | ||
Started by proptradingshop, 03-21-2024, 09:50 AM
|
5 responses
26 views
0 likes
|
Last Post Today, 05:17 AM | ||
Started by MaupinFinche, Today, 05:08 AM
|
0 responses
6 views
0 likes
|
Last Post
by MaupinFinche
Today, 05:08 AM
|
||
Started by Enkidu, Yesterday, 06:40 AM
|
9 responses
35 views
0 likes
|
Last Post
by Enkidu
Yesterday, 01:11 PM
|
Comment