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 03-21-2010, 06:56 AM   #1
MJUK10
Senior Member
 
Join Date: Dec 2009
Posts: 102
Thanks: 4
Thanked 0 times in 0 posts
Default Highest High for X Bars

Is there a function of calling the highest high or lowest low for X number of bars?

Thanks guys

Mark
MJUK10 is offline  
Reply With Quote
Old 03-22-2010, 01:34 PM   #2
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hello Mjuk10,

Thank you for your post.

You can use the functions MAX() and MIN() for this.
NinjaTrader_RyanM is offline  
Reply With Quote
Old 03-22-2010, 02:03 PM   #3
mountainclimber
Senior Member
 
Join Date: Jun 2008
Posts: 112
Thanks: 0
Thanked 0 times in 0 posts
Send a message via Skype™ to mountainclimber
Default

Hello,

If you want to do it over specified time range try this:
http://www.ninjatrader-support2.com/...ead.php?t=8600

Or send me a private message and I can code it for you.
mountainclimber is offline  
Reply With Quote
Old 03-28-2010, 07:41 AM   #4
MJUK10
Senior Member
 
Join Date: Dec 2009
Posts: 102
Thanks: 4
Thanked 0 times in 0 posts
Default

Thanks both for the advice.

Cheers

Mark
MJUK10 is offline  
Reply With Quote
Old 03-28-2010, 07:42 AM   #5
mountainclimber
Senior Member
 
Join Date: Jun 2008
Posts: 112
Thanks: 0
Thanked 0 times in 0 posts
Send a message via Skype™ to mountainclimber
Default

No problem!
mountainclimber 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
Highest High/Lowest low of last 'n' bars hari_krishna Indicator Development 1 02-15-2010 07:00 AM
Highest High of last 10 bars hilltop Indicator Development 4 08-25-2009 02:18 AM
Highest High jjthetrader General Programming 4 05-14-2009 12:19 PM
alert on Highest High in 7 bars rakeshSharma Miscellaneous Support 13 04-22-2009 07:08 AM
High greater than Highest High of last 20 Bars SamIam Strategy Development 1 08-19-2007 04:58 PM


All times are GMT -6. The time now is 07:12 PM.