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 ....
Auto Plot HH HL LL 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 23 24 | Q = Param ( "% Change" , 2, 0.1, 10, 0.1 ); Z = Zig ( C , q ) ; HH = ( ( Z < Ref ( Z, -1 ) AND Ref ( Z, -1 ) > Ref ( Z, -2 ) ) AND ( Peak ( z, q, 1 ) > Peak ( Z, q, 2 ) ) ); LH = ( ( Z < Ref ( Z, -1 ) AND Ref ( Z, -1 ) > Ref ( Z, -2 ) ) AND ( Peak ( Z, q, 1 ) < Peak ( Z, q, 2 ) ) ); HL = ( ( Z > Ref ( Z, -1 ) AND Ref ( Z, -1 ) < Ref ( Z, -2 ) ) AND ( Trough ( Z, q, 1 ) > Trough ( Z, q, 2 ) ) ); LL = ( ( Z > Ref ( Z, -1 ) AND Ref ( Z, -1 ) < Ref ( Z, -2 ) ) AND ( Trough ( Z, q, 1 ) < Trough ( Z, q, 2 ) ) ); GraphXSpace = 5; dist = 0.5 * ATR ( 20 ); for ( i = 0; i < BarCount ; i++ ) { if ( HH[i] ) PlotText ( "HH" , i, H [ i ] + dist[i], colorYellow ); if ( LH[i] ) PlotText ( "LH" , i, H [ i ] + dist[i], colorYellow ); if ( HL[i] ) PlotText ( "HL" , i, L [ i ] - dist[i], colorPink ); if ( LL[i] ) PlotText ( "LL" , i, L [ i ] - dist[i], colorPink ); } |