NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 11-11-2008, 02:41 AM   #1
stefy
Senior Member
 
Join Date: Apr 2008
Posts: 310
Thanks: 0
Thanked 0 times in 0 posts
Default 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
stefy is offline  
Reply With Quote
Old 11-11-2008, 08:24 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

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().
NinjaTrader_Josh is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trailing the Low or High of Previous Bars to Exit daven Strategy Development 3 09-23-2008 08:52 AM
Trade entry based off of High/Low of clicked on 1 minute bar on chart takacsj Charting 1 09-19-2008 03:20 AM
Previous Day's Close, High, Low Billy Valentine General Programming 2 04-13-2008 04:36 PM
Market Analyzer question and referencing Previous Day low qitrader Indicator Development 4 03-14-2008 12:57 PM
Retrieving the High/Lows of a Previous Move TAJTrades Indicator Development 3 12-10-2007 11:49 PM


All times are GMT -6. The time now is 09:01 AM.