API documentation for pandas_ta.momentum.pgo Python function.
- pgo(high, low, close, length=None, offset=None, **kwargs)#
Pretty Good Oscillator (PGO)
The Pretty Good Oscillator indicator was created by Mark Johnson to measure the distance of the current close from its N-day Simple Moving Average, expressed in terms of an average true range over a similar period. Johnson’s approach was to use it as a breakout system for longer term trades. Long if greater than 3.0 and short if less than -3.0.
- Default Inputs:
ATR = Average True Range SMA = Simple Moving Average EMA = Exponential Moving Average
PGO = (close - SMA(close, length)) / EMA(ATR(high, low, close, length), length)
high (pd.Series): Series of ‘high’s low (pd.Series): Series of ‘low’s close (pd.Series): Series of ‘close’s length (int): It’s period. Default: 14 offset (int): How many periods to offset the result. Default: 0
fillna (value, optional): pd.DataFrame.fillna(value) fill_method (value, optional): Type of fill method
pd.Series: New feature generated.