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 11-25-2009, 07:46 AM   #1
ninjablanks
Member
 
Join Date: Aug 2007
Posts: 64
Thanks: 0
Thanked 0 times in 0 posts
Default How do I find identical lows over past X number of bars?

I am trying to write an indicator to identify identical lows over the past 5 bars. How would I do that?
ninjablanks is offline  
Reply With Quote
Old 11-25-2009, 08:14 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,556
Thanks: 261
Thanked 1,015 times in 996 posts
Default

You would need to compare the current Low with the Low x bars back (Low[index]) - http://www.ninjatrader-support.com/HelpGuideV6/Low.html

As a starting point for your code you could review the Tweezer Tops and Bottoms from our sharing section - http://www.ninjatrader-support2.com/...+bottom&desc=1
NinjaTrader_Bertrand is online now  
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
Referencing Past Bars... BigDog008 Strategy Development 1 07-13-2009 07:14 PM
Finding the lows of new bars chatchgo General Programming 13 07-02-2009 11:23 AM
Comparing values of past bars twaydow Strategy Development 2 08-22-2008 12:38 AM
Find a bar number when chart is scrolled back MJT General Programming 1 05-09-2007 08:46 AM
Stop Loss Orders activated by number of trades past stop level DoveforUsAll Suggestions And Feedback 1 02-08-2006 01:19 AM


All times are GMT -6. The time now is 02:19 AM.