Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How To Get The Opening and Closing Price Of Candles

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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?

    #2
    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>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    633 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    364 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    567 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    568 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X