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
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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.Brandon H.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by rdtdale, Yesterday, 01:02 PM
|
2 responses
16 views
0 likes
|
Last Post
by rdtdale
Today, 07:54 AM
|
||
Started by TradeSaber, Today, 07:18 AM
|
0 responses
7 views
0 likes
|
Last Post
by TradeSaber
Today, 07:18 AM
|
||
Started by PaulMohn, Today, 05:00 AM
|
0 responses
10 views
0 likes
|
Last Post
by PaulMohn
Today, 05:00 AM
|
||
Started by ZenCortexAuCost, Today, 04:24 AM
|
0 responses
6 views
0 likes
|
Last Post Today, 04:24 AM | ||
Started by ZenCortexAuCost, Today, 04:22 AM
|
0 responses
3 views
0 likes
|
Last Post Today, 04:22 AM |
Comment