Stock Portfolio Organizer
The ultimate porfolio management solution.
WiseTrader Toolbox
#1 Selling Amibroker Plugin featuring:
Raw ADX for Amibroker (AFL)
This ADX formula uses input variable for the periods and uses Wilders and ATR in its calculation.
By Prakash Shenoi
Screenshots
Similar Indicators / Formulas
Indicator / Formula
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | /* ADX Raw */ //Afl code - Prakash Shenoi // TP= Param ( "Time Periods" ,14,1,50); PlusDM= IIf ( High > Ref ( High ,-1) AND Low >= Ref ( Low ,-1), High - Ref ( High ,-1), IIf ( High > Ref ( High ,-1) AND Low < Ref ( Low ,-1) AND High - Ref ( High ,-1)> Ref ( Low ,-1)- Low , High - Ref ( High ,-1), 0)); DIPlus= 100 * Wilders (PlusDM,TP) / ATR (TP); MinusDM= IIf ( Low < Ref ( Low ,-1) AND High <= Ref ( High ,-1), Ref ( Low ,-1)- Low , IIf ( High > Ref ( High ,-1) AND Low < Ref ( Low ,-1) AND High - Ref ( High ,-1)< Ref ( Low ,-1)- Low , Ref ( Low ,-1)- Low , 0)); DIMinus = 100 * Wilders (MinusDM,TP) / ATR (TP); Diff= abs (DIPlus - DIMinus); DISum= DIPlus + DIMinus; ADXRaw= 100 * Wilders (Diff/DISum, TP); Plot (ADXRaw, "ADXRaw" ,1, styleThick ); //Plot (DiPlus,"DI+", 3,1); //Plot (DiMinus,"DI-",4,1); GraphXSpace =4; |
1 comments
Leave Comment
Please login here to leave a comment.
Back
How does it work?