Stock Portfolio Organizer
The ultimate porfolio management solution.
Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
WiseTrader Toolbox
#1 Selling Amibroker Plugin featuring:
Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
moons adx buy 2 for Amibroker (AFL)
Copy & Paste Friendly
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | _SECTION_BEGIN ( "ADX" ); range = Param ( "ADX Periods" , 4, 2, 200, 1 ); Col_adx = IIf ( ADX (range) > Ref ( ADX (range),-1) , colorBlue , colorBlack ); Col_pdi = IIf ( PDI (range) > MDI (range) AND ADX (range) > MDI (range), colorBrightGreen , colorGreen ); Col_Mdi = IIf ( MDI (range) > PDI (range) AND ADX (range) > PDI (range), colorRed , colorRed ); Plot ( ADX (range), _DEFAULT_NAME (), Col_adx , ParamStyle ( "ADX style" , styleThick ) ); Plot ( PDI (range), "+DI" , Col_pdi, ParamStyle ( "+DI style" ) ); Plot ( MDI (range), "-DI" , Col_mdi, ParamStyle ( "-DI style" ) ); Plot (20, "" , colorGrey40 ); Plot (30, "" , colorDarkBlue ); trend = IIf (Col_adx == colorBlue AND Col_pdi== colorBrightGreen , colorBrightGreen , IIf (Col_adx == colorBlue AND Col_mdi== colorRed , colorRed , IIf (Col_pdi == colorBrightGreen AND Col_mdi == colorRed , colorYellow , IIf (Col_pdi== colorBrightGreen , colorDarkGreen , IIf (Col_mdi== colorRed , colorDarkRed , colorBlack ))))); Plot (6, "" , trend, styleOwnScale | styleArea | styleNoLabel ,-0.5,100); _SECTION_END (); |