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-2007, 01:04 PM   #1
grav_rat
Junior Member
 
Join Date: Feb 2007
Location: , ,
Posts: 17
Thanks: 0
Thanked 0 times in 0 posts
Post imported post


[align=left]I use AD in XTrader and would like to use it in NT6 and it would probably be a nice addition to the available indicators.Just a thought but I can't code it.[/align]
[align=left]regards,[/align]
[align=left]Accumulation/Distribution (AD)[/align]

[align=left]The Accumulation/Distribution (AD) study attempts to quantify the amount of[/align]
[align=left]volume flowing into or out of an instrument by identifying the position of the[/align]
[align=left]close of the period in relation to that period’s high/low range. The volume for the[/align]
[align=left]period is then allocated accordingly to a running continuous total.[/align]
[align=left]Formula[/align]

AD = cumulative ((((Close – Low) – (High – Close)) / (High – Low)) * Volume))
grav_rat is offline  
Reply With Quote
Old 02-24-2007, 03:41 AM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
Post imported post

Added for next beta release.

Ray
NinjaTrader_Ray is offline  
Reply With Quote
Old 02-20-2010, 01:02 AM   #3
asja.aa
Junior Member
 
Join Date: Oct 2008
Posts: 17
Thanks: 0
Thanked 1 time in 1 post
Default putting an MA on the AD indicator

Using the ADL indicator, I would like to put a 20 SMA on the ADL line. I tryed to do it but the SMA is allways referring to price and not to the ADL.
Isn't there a way to manage it?
asja.aa is offline  
Reply With Quote
Old 02-21-2010, 02:50 PM   #4
NinjaTrader_Austin
NinjaTrader Customer Service
 
NinjaTrader_Austin's Avatar
 
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 90 times in 82 posts
Default

asja.aa, NinjaTrader 7 will allow this type of behavior. You can "nest" as many indicators as you'd like into one final indicator. Unfortunately NinjaTrader 6.5 doesn't include this feature.

Another option would be to custom program this. To get a SMA of an ADL, you could do something like this:
Code:
double value = SMA(ADL(), 20)[0];
NinjaTrader_Austin 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


All times are GMT -6. The time now is 01:57 PM.