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 ....
Normalized diffrence for Amibroker (AFL)
Copy & Paste Friendly
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | _SECTION_BEGIN ( "normalized_diff" ); ticker = ParamStr ( "Pair ticker" , "?" ); tsc = Foreign ( ticker, "C" ); ticker2 = C ; d = abs ( C / tsc); p = Param ( "Period" ,10); nd = (d - MA (d,p)) / MA (d,p); Plot (nd, "normalized difference" , colorRed , styleLine ); Plot (0, "" , colorBlue , styleLine | styleNoLabel ); _SECTION_END (); |