View Full Version : how to program Farley's accumulation distribution accelerator? (see EL code)
suedeuno
01-11-2009, 06:36 PM
here is the easy language:
variables:
F1( 0 ),
F2( 0 ),
ADA( 0 ),
F3( 0 );
F1 = LWAccDis - LWAccDis[1];
F2 = @XAverage(F1,14);
ADA = @XAverage(F2,7);
F3 = 0;
Plot1( ADA, "ADA" ) ;
Plot2(F3);
NinjaTrader_Bertrand
01-12-2009, 05:39 AM
Hi suedeuno, thanks for posting - I hope somebody helps you convert it to NinjaScript, do you also have the needed function LWAccDis ready and as open code?
For our indicator building tutorials, you can review this - http://www.ninjatrader-support.com/HelpGuideV6/Overview18.html
suedeuno
01-12-2009, 01:05 PM
According to Farley,
if Close > Close[1]
LWAccDis = Close - TrueLow ( Current Low or Close[1] whichever is lower )
if Close < Close[1]
LWAccDis = Close - TrueHigh (Current high or Close[1] whichever is higher)
if Close = Close[1]
LWAccDis = 0
The formula is in "The Secret of Selecting Stocks for Immediate and Substantial Gains" by Larry Williams.
eDanny
01-12-2009, 02:17 PM
You should also post a screen shot of the TS chart for comparison.
If I knew that @XAverage was it would be a snap to make this work.