Volatility
Aberration
Similar to Keltner Channels.
Sources
Parameters:
Name | Type | Description | Default |
---|---|---|---|
high | Series |
| required |
low | Series |
| required |
close | Series |
| required |
length | int | The period. Default: | None |
atr_length | int | ATR period. Default: | None |
offset | int | Post shift. Default: | None |
Other Parameters:
Name | Type | Description |
---|---|---|
fillna | value |
|
Returns:
Type | Description |
---|---|
DataFrame | 4 columns |
Acceleration Bands
This indicator, by Price Headley, creates lower and upper bands centered around a moving average based on a ratio of it's High-Low range.
Sources
Parameters:
Name | Type | Description | Default |
---|---|---|---|
high | Series |
| required |
low | Series |
| required |
close | Series |
| required |
length | int | The period. Default: | None |
c | int | Multiplier. Default: | None |
mamode | str | See | None |
drift | int | Difference amount. Default: | None |
offset | int | Post shift. Default: | None |
Other Parameters:
Name | Type | Description |
---|---|---|
fillna | value |
|
Returns:
Type | Description |
---|---|
DataFrame | 3 columns |
Average True Range
This indicator attempts to quantify volatility with a focus on gaps or limit moves.
Sources
Parameters:
Name | Type | Description | Default |
---|---|---|---|
high | Series |
| required |
low | Series |
| required |
close | Series |
| required |
length | int | The period. Default: | None |
mamode | str | See | None |
talib | bool | If installed, use TA Lib. Default: | None |
prenan | bool | Sets initial values to | None |
drift | int | Difference amount. Default: | None |
offset | int | Post shift. Default: | None |
Other Parameters:
Name | Type | Description |
---|---|---|
percent | bool | Return as percent. Default: |
fillna | value |
|
Returns:
Type | Description |
---|---|
Series | 1 column |
ATR Trailing Stop
This indicator attempts to identify exits for long and short positions. To determine trend, it uses a moving average with a scalable ATR.
Sources
Parameters:
Name | Type | Description | Default |
---|---|---|---|
high | Series |
| required |
low | Series |
| required |
close | Series |
| required |
length | int | The period. Default: | None |
ma_length | int | MA Length. Default: | None |
k | int | ATR multiplier. Default: | None |
mamode | str | See | None |
talib | bool | If installed, use TA Lib. Default: | None |
drift | int | Difference amount. Default: | None |
offset | int | Post shift. Default: | None |
Other Parameters:
Name | Type | Description |
---|---|---|
percent | bool | Return as percent. Default: |
fillna | value |
|
Returns:
Type | Description |
---|---|
Series | 1 column |
NOTICE
Thanks to all those that have sponsored and dontated to the library in the past! Your support has been greatly appreciated!
However, future releases are on definite hold until 100+ donations of $150+ have been received via Buy Me a Coffee.
Help keep this library and application the best in it's class!
Bollinger Bands
This indicator, by John Bollinger, attempts to quantify volatility by creating lower and upper bands centered around a moving average.
Sources
Parameters:
Name | Type | Description | Default |
---|---|---|---|
close | Series |
| required |
length | int | The period. Default: | None |
lower_std | IntFloat | Lower standard deviation. Default: | None |
upper_std | IntFloat | Upper standard deviation. Default: | None |
ddof | int | Degrees of Freedom to use. Default: | None |
mamode | str | See | None |
talib | bool | If installed, use TA Lib. Default: | None |
ddof | int | By default, uses Pandas | None |
offset | int | Post shift. Default: | None |
Other Parameters:
Name | Type | Description |
---|---|---|
fillna | value |
|
Returns:
Type | Description |
---|---|
DataFrame | 5 columns |
Note
- TA Lib does not have a
ddof
parameter. - The divisor used in calculations is:
N - ddof
, whereN
is the number of elements. To useddof
, settalib=False
.
Chandelier Exit
This indicator attempts to identify trailing stop-losses based on ATR.
Sources
Parameters:
Name | Type | Description | Default |
---|---|---|---|
high | Series |
| required |
low | Series |
| required |
close | Series |
| required |
high_length | int | Highest high period. Default: | None |
low_length | int | Lowest low period. Default: | None |
atr_length | int) | ATR length. Default: | None |
multiplier | float | Lower & Upper Bands scalar. Default: | None |
mamode | str | See | None |
talib | bool | If installed, use TA Lib. Default: | None |
use_close | bool | Use | None |
drift | int | Difference amount. Default: | None |
offset | int | Post shift. Default: | None |
Other Parameters:
Name | Type | Description |
---|---|---|
fillna | value |
|
Returns:
Type | Description |
---|---|
DataFrame | 3 columns |
Donchian Channels
This indicator attempt to quantify volatility similarily to Bollinger Bands and Keltner Channels.
Sources
Parameters:
Name | Type | Description | Default |
---|---|---|---|
high | Series |
| required |
low | Series |
| required |
lower_length | int | Lower period. Default: | None |
upper_length | int | Upper period. Default: | None |
offset | int | Post shift. Default: | None |
Other Parameters:
Name | Type | Description |
---|---|---|
fillna | value |
|
Returns:
Type | Description |
---|---|
DataFrame | 3 columns |
Holt-Winter Channel
This indicator creates a three-parameter moving average using the "Holt-Winters" method.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
close | Series |
| required |
scalar | float | Channel scalar. Default: | None |
channels | bool | Return width and percentage columns. Default: | None |
na | float | Smoothed series in range | None |
nb | float | Trend value in range | None |
nc | float | Seasonality value in range | None |
nd | float | Channel value in range | None |
offset | int | Post shift. Default: | None |
Other Parameters:
Name | Type | Description |
---|---|---|
fillna | value |
|
Returns:
Type | Description |
---|---|
DataFrame | 3 columns |
Keltner Channels
This indicator attempts to identify volatility similarily to Bollinger Bands and Donchian Channels.
Sources
Parameters:
Name | Type | Description | Default |
---|---|---|---|
high | Series |
| required |
low | Series |
| required |
close | Series |
| required |
length | int | The period. Default: | None |
scalar | float | Band scalar. Default: | None |
mamode | str | See | None |
offset | int | Post shift. Default: | None |
Other Parameters:
Name | Type | Description |
---|---|---|
tr | bool | Use True Range calculation. Otherwise use |
fillna | value |
|
Returns:
Type | Description |
---|---|
DataFrame | 3 columns |
Mass Index
This indicator attempts to use a High-Low Range to identify trend reversals based on range expansions.
Sources
Parameters:
Name | Type | Description | Default |
---|---|---|---|
high | Series |
| required |
low | Series |
| required |
fast | int | Fast period. Default: | None |
slow | int | Slow period. Default: | None |
offset | int | Post shift. Default: | None |
Other Parameters:
Name | Type | Description |
---|---|---|
fillna | value |
|
Returns:
Type | Description |
---|---|
Series | 1 column |
NOTICE
Thanks to all those that have sponsored and dontated to the library in the past! Your support has been greatly appreciated!
However, future releases are on definite hold until 100+ donations of $150+ have been received via Buy Me a Coffee.
Help keep this library and application the best in it's class!
Normalized Average True Range
This indicator applies a normalizer to Average True Range.
Sources
Parameters:
Name | Type | Description | Default |
---|---|---|---|
high | Series |
| required |
low | Series |
| required |
close | Series |
| required |
length | int | The period. Default: | None |
scalar | float | Scalar. Default: | None |
mamode | str | See | None |
talib | bool | If installed, use TA Lib. Default: | None |
prenan | bool | Sets initial values to | None |
offset | int | Post shift. Default: | None |
Other Parameters:
Name | Type | Description |
---|---|---|
fillna | value |
|
Returns:
Type | Description |
---|---|
Series | 1 column |
Warning
TA-Lib Correlation: np.float64(0.9506743353852364)
Tip
Corrective contributions welcome!
Price Distance
This indicator attempts to quantify the magnitude covered by price movements.
Sources
Parameters:
Name | Type | Description | Default |
---|---|---|---|
open_ | Series |
| required |
high | Series |
| required |
low | Series |
| required |
close | Series |
| required |
drift | int | Difference amount. Default: | None |
offset | int | Post shift. Default: | None |
Other Parameters:
Name | Type | Description |
---|---|---|
fillna | value |
|
Returns:
Type | Description |
---|---|
Series | 1 column |
Relative Volatility Index
This indicator attempts to quantify volatility using standard deviation.
Sources
Parameters:
Name | Type | Description | Default |
---|---|---|---|
high | Series |
| None |
low | Series |
| None |
close | Series |
| required |
length | int | The period. Default: | None |
scalar | float | Bands scalar. Default: | None |
refined | bool | Use 'refined' calculation which is the average of RVI(high) and RVI(low) instead of RVI(close). Default: | None |
thirds | bool | Average of | None |
mamode | str | See | None |
offset | int | Post shift. Default: | None |
Other Parameters:
Name | Type | Description |
---|---|---|
fillna | value |
|
Returns:
Type | Description |
---|---|
DataFrame | 3 columns |
Elders Thermometer
This indicator, by Dr Alexander Elder, attempts to quantify volatility.
Sources
Parameters:
Name | Type | Description | Default |
---|---|---|---|
high | Series |
| required |
low | Series |
| required |
length | int | The period. Default: | None |
long | int | Buy factor. Default: | None |
short | float | Sell factor. Default: | None |
mamode | str | See | None |
asint | int | Returns as int. Default: | None |
drift | int | Difference amount. Default: | None |
offset | int | Post shift. Default: | None |
Other Parameters:
Name | Type | Description |
---|---|---|
fillna | value |
|
Returns:
Type | Description |
---|---|
DataFrame | 4 columns |
True Range
This indicator attempts to quantify a High-Low range including potential gap scenarios.
Sources
Parameters:
Name | Type | Description | Default |
---|---|---|---|
high | Series |
| required |
low | Series |
| required |
close | Series |
| required |
talib | bool | If installed, use TA Lib. Default: | None |
prenan | bool | Sets initial values to | None |
drift | int | Difference amount. Default: | None |
offset | int | Post shift. Default: | None |
Other Parameters:
Name | Type | Description |
---|---|---|
fillna | value |
|
Returns:
Type | Description |
---|---|
Series | 1 column |
Warning
TA-Lib Correlation: np.float64(0.9999999999999999)
Tip
Corrective contributions welcome!
Ulcer Index
This indicator, by Peter Martin, attempts to quantify downside volatility with a Quadratic Mean.
Sources
Parameters:
Name | Type | Description | Default |
---|---|---|---|
close | Series |
| required |
length | int | The period. Default: | None |
scalar | float | Bands scalar. Default: | None |
offset | int | Post shift. Default: | None |
Other Parameters:
Name | Type | Description |
---|---|---|
everget | value | Use Evergets' TradingView SMA. Default: |
fillna | value |
|
Returns:
Type | Description |
---|---|
Series | 1 column |
NOTICE
Thanks to all those that have sponsored and dontated to the library in the past! Your support has been greatly appreciated!
However, future releases are on definite hold until 100+ donations of $150+ have been received via Buy Me a Coffee.
Help keep this library and application the best in it's class!