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 grab the previous week's High and Low from an Intraday chart

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

    How to grab the previous week's High and Low from an Intraday chart

    I'm working on 30min charts and I'd like to grab (and plot) the previous week High, Low and Close.
    How can I do that, working on 30min data?

    Thank you

    #2
    Hi stefy,

    You will want to use PriorDayOHLC(). To figure out which barsAgo you need to pass in to get the correct prior days' data you can use GetBar().
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by tradingnasdaqprueba, Yesterday, 03:42 AM
    10 responses
    37 views
    0 likes
    Last Post tradingnasdaqprueba  
    Started by Boyarchuk, Today, 05:39 AM
    0 responses
    4 views
    0 likes
    Last Post Boyarchuk  
    Started by Orion815, 05-02-2024, 08:39 AM
    3 responses
    21 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by frenkmly, Today, 04:49 AM
    0 responses
    5 views
    0 likes
    Last Post frenkmly  
    Started by ETFVoyageur, Yesterday, 07:05 PM
    2 responses
    20 views
    0 likes
    Last Post bltdavid  
    Working...
    X