![]() |
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Senior Member
Join Date: Feb 2009
Posts: 105
Thanks: 0
Thanked 0 times in 0 posts
|
Hello, I want to write an indicator that will determine if a particular indicator is in decline, say, over the past 5 bars. Is there a "standard" way to do this or do I just check the close of each bar?
|
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
|
Hi, you could use Rising / Falling but this will only be over 1 bar back - http://www.ninjatrader-support.com/H...6/Falling.html
For bigger lookbacks, I would suggest doing a direct comparison.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Dec 2007
Posts: 314
Thanks: 0
Thanked 0 times in 0 posts
|
try using slope indicator on the indicator
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Determining if an indicator value is null | newguy | Indicator Development | 4 | 10-16-2007 04:16 PM |
| Determining Market Position | daven | Automated Trading | 1 | 09-27-2007 07:41 AM |
| Determining "Last Bar On Chart" | NinjaTrader_Ray | General Programming | 2 | 01-16-2007 03:17 PM |