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 burtoninlondon, Today, 12:38 AM
|
0 responses
2 views
0 likes
|
Last Post Today, 12:38 AM | ||
Started by AaronKoRn, Yesterday, 09:49 PM
|
0 responses
11 views
0 likes
|
Last Post
by AaronKoRn
Yesterday, 09:49 PM
|
||
Started by carnitron, Yesterday, 08:42 PM
|
0 responses
10 views
0 likes
|
Last Post
by carnitron
Yesterday, 08:42 PM
|
||
Started by strategist007, Yesterday, 07:51 PM
|
0 responses
12 views
0 likes
|
Last Post Yesterday, 07:51 PM | ||
Started by StockTrader88, 03-06-2021, 08:58 AM
|
44 responses
3,982 views
3 likes
|
Last Post
by jhudas88
Yesterday, 06:59 PM
|
Comment