NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 04-13-2008, 03:33 PM   #1
Billy Valentine
Member
 
Join Date: Dec 2007
Posts: 49
Thanks: 1
Thanked 0 times in 0 posts
Default Previous Day's Close, High, Low

What are the NinjaScript equivalents of Tradestation's tags for previous day's open, close, high and low?:

examples:
OpenD[1]
CloseD[1]
HighD[1]
LowD[1]
I wish to plot horizontal lines for these on a current day chart.

Thanks!
Billy Valentine is offline  
Reply With Quote
Old 04-13-2008, 04:08 PM   #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

If you are using daily charts already then accessing Close[1] etc will automatically return you the values of the previous days OHLC values. If you are on an intraday chart or a chart that is not a daily timeframe you can use this: http://www.ninjatrader-support.com/H...orDayOHLC.html
NinjaTrader_Josh is offline  
Reply With Quote
Old 04-13-2008, 04:36 PM   #3
Billy Valentine
Member
 
Join Date: Dec 2007
Posts: 49
Thanks: 1
Thanked 0 times in 0 posts
Default

Thank you! I knew it was there somewhere.
Billy Valentine 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
Best way to get priorclose from days previous to the previous scriabinop23 General Programming 3 02-02-2008 12:41 AM
Retrieving the High/Lows of a Previous Move TAJTrades Indicator Development 3 12-10-2007 11:49 PM
Current Bid > High of Previous 20 Days davidfw1866 Strategy Development 2 11-27-2007 06:08 AM
Trouble with Open, High, Low, Close SuzyG Indicator Development 4 03-05-2007 04:03 AM
SuperDome needs of Change Var respect the previous close Akros ATM Strategies (Discretionary Trading) 1 06-15-2006 12:55 AM


All times are GMT -6. The time now is 10:27 AM.