NinjaTrader Support Forum  

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

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 02-23-2009, 06:51 PM   #1
tradinginzen
Senior Member
 
Join Date: Feb 2009
Posts: 105
Thanks: 0
Thanked 0 times in 0 posts
Default Determining when something is declining

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?
tradinginzen is offline  
Reply With Quote
Old 02-24-2009, 03:41 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

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.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 02-24-2009, 04:00 AM   #3
velocity
Senior Member
 
Join Date: Dec 2007
Posts: 314
Thanks: 0
Thanked 0 times in 0 posts
Default

try using slope indicator on the indicator
velocity 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
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


All times are GMT -6. The time now is 01:12 AM.