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!
See more
See less

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.
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by traderzoso, 12-27-2020, 05:19 PM
    6 responses
    229 views
    0 likes
    Last Post lekor
    by lekor
     
    Started by ETFVoyageur, 05-18-2024, 12:45 AM
    4 responses
    26 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by Skifree, Today, 11:47 AM
    4 responses
    17 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by molecool, Today, 01:48 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by ETFVoyageur, Today, 12:26 PM
    3 responses
    11 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X