![]() |
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Aug 2007
Posts: 64
Thanks: 0
Thanked 0 times in 0 posts
|
I am trying to write an indicator to identify identical lows over the past 5 bars. How would I do that?
|
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,556
Thanks: 261
Thanked 1,015 times in 996 posts
|
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
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |