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
// PZO indicator [Price Zone Oscillator] //as per article in TASC July issue 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, "Price Zone Osc" + _PARAM_VALUES(), colorYellow, styleThick ); // grid lines PlotGrid( 60 ); Plot( 40, "", colorDarkGreen ); Plot( 15, "",colorLightGrey ); PlotGrid( 0 ); Plot( -5, "",colorLightGrey ); 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 );