Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Close[0]
Collapse
X
-
Close[0] will take the latest tick if the bar isn't "closed" yet. To know if the bar is closed you simply have to wait for the next bar's first tick to come in then reference Close[1] to go back to the previous bar's close price. To check this you can do:
Code:if (FirstTickOfBar) Print("Previous Bar's Close = " + Close[1]);Josh P.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
566 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
330 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
547 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
548 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment