Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How Calculate.OnPriceChange works
Collapse
X
-
How Calculate.OnPriceChange works
When using the OnPriceChange mode, does Close[0] represent the current price and Open[0] represent the price of the open bar? Any clarification of this mode will be appreciated. -
Hello Lumbeezl,
Thanks for your post.
When using Calculate.OnBarClose, a barsAgo reference of 0 will represent the bar that had just closed. When using Calculate.OnEachTick or Calculate.OnPriceChange, a barsAgo reference of 0 will represent the developing bar. Close[0] will represent the current price and Open[0] would represent the Open of that developing bar.
You can simulate Calculate.OnBarClose behavior by using a barsAgo reference under IsFirstTickOfBar.
More information on barsAgo indexing, Calculate, and IsFirstTickOfBar is linked below.
Working with Price Series - https://ninjatrader.com/support/help...ice_series.htm
Calculate - https://ninjatrader.com/support/help.../calculate.htm
IsFirstTickOfBar - https://ninjatrader.com/support/help...ttickofbar.htm
Please let us know if you have any additional questions.JimNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ScottWalsh, 04-16-2024, 04:29 PM
|
7 responses
34 views
0 likes
|
Last Post Today, 05:15 AM | ||
Started by cls71, Today, 04:45 AM
|
0 responses
5 views
0 likes
|
Last Post
by cls71
Today, 04:45 AM
|
||
Started by mjairg, 07-20-2023, 11:57 PM
|
3 responses
214 views
1 like
|
Last Post
by PaulMohn
Today, 04:22 AM
|
||
Started by TheWhiteDragon, 01-21-2019, 12:44 PM
|
4 responses
547 views
0 likes
|
Last Post
by PaulMohn
Today, 04:09 AM
|
||
Started by GLFX005, Today, 03:23 AM
|
0 responses
3 views
0 likes
|
Last Post
by GLFX005
Today, 03:23 AM
|
Comment