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 ....
HPI for Amibroker (AFL)
Copy & Paste Friendly
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | _SECTION_BEGIN ( "HPI" ); function HPI( MultFactor, PercentMove ) { M = ( H + L ) /2; My = Ref ( M, -1 ); I = abs ( OpenInt - Ref ( OpenInt, -1 ) ); G = Max ( OpenInt, Ref ( OpenInt, -1 ) ); K = PercentMove * Volume * ( M - My ) * ( 1 + sign ( M - My ) * 2 * I / G ); //return AMA2( K, MultFactor / 100000, ( 1 - MultFactor ) / 100000 ); return AMA ( K, 1/MultFactor )/100000; } OI = C ; Plot ( HPI( 20, 100 ), _DEFAULT_NAME (), ParamColor ( "Color" , ColorCycle ) ); _SECTION_END (); |