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.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
69 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
42 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
24 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
27 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
54 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment