If so, do I need to create a custom data series to track what would be the normal "OnBarClose" Closes?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How do you access the end of the last Bar data when using Calculate.OnEachTick?
Collapse
X
-
How do you access the end of the last Bar data when using Calculate.OnEachTick?
If I'm using Calculate.OnEachTick, Close[1] references the close of the last tick, right?
If so, do I need to create a custom data series to track what would be the normal "OnBarClose" Closes?
Tags: None
-
Hello torch2k,
Thank you for your post.
If you are using a 1 tick data series, Close[1] would be the close of the tick previous to the current tick.
If you are using, say, a 1 minute data series, Close[1] would refer to the close of the previous 1 minute bar to the one currently forming if you are using Calculate.OnEachTick. Close[0] would be the current price of the forming bar, based on the tick it's calculating on.
Please let us know if we may be of further assistance to you.
-
Originally posted by NinjaTrader_Kate View PostHello torch2k,
Thank you for your post.
If you are using a 1 tick data series, Close[1] would be the close of the tick previous to the current tick.
If you are using, say, a 1 minute data series, Close[1] would refer to the close of the previous 1 minute bar to the one currently forming if you are using Calculate.OnEachTick. Close[0] would be the current price of the forming bar, based on the tick it's calculating on.
Please let us know if we may be of further assistance to you.
Oh, thanks! Glad I asked because I had that totally backwards in my head.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
80 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
40 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
64 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
64 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
54 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment