NinjaTrader Support Forum  

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

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 08-19-2007, 04:30 PM   #1
SamIam
Junior Member
 
Join Date: Aug 2007
Posts: 21
Thanks: 0
Thanked 0 times in 0 posts
Default High greater than Highest High of last 20 Bars

Hello,

I am trying to create a strategy where the buy position is open @ market price if the high of the current bar is greater than the highest high of last 20 bars. But I am unable to find the syntax for HighestHighof???Bars. Can someone please help?

Sami
SamIam is offline  
Reply With Quote
Old 08-19-2007, 04:58 PM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

Hi SamIam,

Please use the MAX() indicator. Information located at the link below:

http://www.ninjatrader-support.com/H...aximumMAX.html
NinjaTrader_Ray 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
Swing High/Low and Zig Zag Indicators whitmark Suggestions And Feedback 39 01-19-2011 10:47 AM
Swing High/Low and Zig Zag Indicators Alfred Charting 9 09-03-2010 05:55 AM
Prior Bar High Or Low OCO Order jstockman Strategy Development 18 09-10-2007 08:09 PM
1st Hour High/Low pijamatrader Indicator Development 42 07-16-2007 05:31 PM
Swing Low/High indicator ts888 Indicator Development 10 07-12-2007 07:56 AM


All times are GMT -6. The time now is 06:11 AM.