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 ....
Price Zone Oscillator 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 25 26 27 28 29 30 | _SECTION_BEGIN ( "Price_Zone_Oscillator" ); // PZO indicator - www.stockmaniacs.net function PZOsc( Period ) { R = sign ( Close - Ref ( Close , -1 ) ) * Close ; VP = EMA ( R, Period ); TV = EMA ( Close , Period ); return Nz ( 100 * VP / TV ); } Period = Param ( "PZO period" , 14, 2 , 200 ); PZO = PZOsc( Period ); Plot ( PZO, "PZO" + _PARAM_VALUES (), colorBlue , styleThick ); // grid lines PlotGrid ( 60 ); Plot ( 40, "" , colorDarkGreen ); PlotGrid ( 15 ); Plot ( 0, "" , colorBlack ); PlotGrid ( -5 ); Plot ( -40, "" , colorBrown ); PlotGrid ( -60 ); // system rules Buy = ADX (14) < 18 AND ( Cross ( PZO, -40 ) OR Cross ( PZO, 15 ) ); Sell = ( Cross ( PZO, 40 ) AND ADX ( 14 ) > 18 ) OR Cross ( -5, PZO ); Short = ADX (14) < 18 AND ( Cross ( 40, PZO ) OR Cross ( -5, PZO ) ); Cover = ( Cross ( -40, PZO ) AND ADX ( 14 ) > 18 ) OR Cross ( PZO, 15 ); _SECTION_END (); |