When using Calculate On Bar Close = false, Close[0] will give you the last traded price (current tick) regardless of the bar type you are using. This is because the bar has not technically closed and will continue to update as you receive new ticks in your range chart.
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
Multi-Time Frame BarUpdate, Entries and Exits
Collapse
X
-
David,
When using Calculate On Bar Close = false, Close[0] will give you the last traded price (current tick) regardless of the bar type you are using. This is because the bar has not technically closed and will continue to update as you receive new ticks in your range chart.MatthewNinjaTrader Product Management
-
Ah,I see... one other thing, consider
EMA(BarsArray[2], 8)[0]
This will calculate the EMA 8 of barObject 2, my 20 minute bars. However it will calculate on the Close Price. How would I declare the same thing but for it to calculate on the Opening Price and declaring the BarsArray to use also?
Thanks
David
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Waxavi, Today, 02:10 AM
|
1 response
16 views
0 likes
|
Last Post Today, 03:03 PM | ||
Started by Kaledus, Today, 01:29 PM
|
5 responses
13 views
0 likes
|
Last Post Today, 02:56 PM | ||
Started by Waxavi, Today, 02:00 AM
|
1 response
12 views
0 likes
|
Last Post Today, 02:53 PM | ||
Started by alifarahani, Today, 09:40 AM
|
5 responses
23 views
0 likes
|
Last Post Today, 02:53 PM | ||
Is it possible to have a drawing, such as a line, cycle through different colors?
by gentlebenthebear
Started by gentlebenthebear, Today, 01:30 AM
|
3 responses
17 views
0 likes
|
Last Post Today, 02:41 PM |
Comment