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 05-31-2010, 03:32 AM   #1
Stem1
Member
 
Join Date: Jul 2009
Posts: 48
Thanks: 0
Thanked 0 times in 0 posts
Default Today's 9:00 bar

Hi, I would like to find out how to code a reference to the High and Low of each day's 9:00 60 min bar.
eg; if close[0] > High(today's 9:00 bar), then....
Thanks
Stem1 is offline  
Reply With Quote
Old 05-31-2010, 03:58 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

Stem1, you can use the GetBar() method for this task - http://www.ninjatrader.com/support/f...ad.php?t=19176
NinjaTrader_Bertrand 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
My bar chart saeed Charting 1 05-31-2010 04:48 AM
Backtest using daily bars (same bar signal) tradinghumble Strategy Development 3 05-28-2010 11:30 AM
data series bar type field - request/suggestion toddaclark Version 7 Beta General Questions & Bug Reports 5 05-28-2010 08:12 AM
Today's Last Bar is not available during BackTesting aksamyo Version 7 Beta General Questions & Bug Reports 2 01-12-2010 05:05 PM
Today's equity dha3936420 Strategy Development 1 07-03-2008 01:32 PM


All times are GMT -6. The time now is 11:55 PM.