For example, if I was on the 5 minute, or any time frame really, where using Ninja Script could I access the opening and closing price of a candle, or as many candles as I want?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How To Get The Opening and Closing Price Of Candles
Collapse
X
-
How To Get The Opening and Closing Price Of Candles
Does ninja script give us access to the opening and closing price of all candles on all time frames?
For example, if I was on the 5 minute, or any time frame really, where using Ninja Script could I access the opening and closing price of a candle, or as many candles as I want? -
Hello Kalfaro27,
Thanks for your post.
The PriceSeries collection could be used to get the Open or Close price of the bars on a chart, regardless of the timeframe of the chart.
The Close PriceSeries would be used to get the Close price of bars on a chart. For example, Close[0] would get the current bar's close price.
The Open PriceSeries would be used to get the Open price of bars on a chart. For example, Open[0] would get the current bar's open price.
Please see the help guide documentation below for more information and sample code.
Close: https://ninjatrader.com/support/help.../nt8/close.htm
Open: https://ninjatrader.com/support/helpGuides/nt8/open.htm
Let me know if I may assist you further.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
41 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
20 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
28 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
45 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
37 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment