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 ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

Pretty Good Oscillator for Amibroker (AFL)

Rating:
2 / 5 (Votes 9)
Tags:
oscillator, trading system, amibroker

EXAMPLE OF USE: A buysignal occurs when pgo>3, (current price breaks out of a exponential 3-ATR-band). Long position is closed when PGO<0, (price crosses below simple 89-period MA). I didn´t take any short positions in this testing. Trades were entered and left next day at the open.

Similar Indicators / Formulas

Rahul Mohindar Oscillator (RMO)
Submitted by kaiji almost 15 years ago
Price Oscillator
Submitted by ariful_islam about 14 years ago
1 hour stoch
Submitted by siddhisagar about 14 years ago
Simple Chaikin Buy Sell
Submitted by jachyuen about 13 years ago
Nj demand and supply
Submitted by njethva about 12 years ago
Heikin-Ashi Candles Oscillator for Long term
Submitted by NTA almost 12 years ago

Indicator / Formula

Copy & Paste Friendly
/* PGO

PGO = (Close - N-Day SMA of Close) / N-Day EMA of True Range)

EXAMPLE OF USE: A buysignal occurs when pgo>3, (current price breaks out of a exponential 3-ATR(89)-band). Long position is closed when PGO<0, (price crosses below simple 89-period MA). I didn´t take any short positions in this testing. Trades were entered and left next day at the open. 

I compared PGO and PGO with a 1 ATR max loss value (position closed if C< close on signalbar - ATR(20).

*/

n=89; Av=23; stp=9;
//n = Param("Periods",n,20,190,1);
//av = Param("Average",av,2,50,1);
n = Optimize("Periods",n,20,190,1);
av = Optimize("Average",av,2,30,1);
//stp = Optimize("Stop",stp,4,15,1);

PGO= (C-MA(C,n))/EMA(ATR(1),n);

Plot( PGO, "PGO (" +WriteVal( n, 1.0 )+")" , -9, 5 );
Plot( 3, "" , 1, 5 );
Plot( -3, "" , 1, 5 );

PGOAVG=MA(PGO,av);

Plot(PGOAVG,"AVG"+"("+WriteVal(Av, 1.0 )+")" ,colorYellow); 

Buy=Cross(PGO,3);
Sell=Cross(0,PGO);

2 comments

1. Pascal SAMSON

Indeed, it is good and clear:thanks a lot.

2. rajathtrader

it looks very nice, clear. good indicator..

Leave Comment

Please login here to leave a comment.

Back