OPEN-SOURCE SCRIPT

Prometheus Volatility EMA

The Prometheus Volatility EMA is an indicator that calculates an Exponential Moving Average with the historical volatility as how we decide how sensitive to make the indicator to the most recent data.

A traditional EMA is calculated like this:
EMA = alpha * source + (1 - alpha) * EMA[1], where alpha = 2 / (length + 1)
Sourced from TradingView’s ta.ema built in function.

We see that the alpha value is used to determine how sensitive the EMA will be to the most recent prices, and it is derived from how many bars back are used in the calculation.

Prometheus is using the annualized historical volatility, for a specified period as the “alpha” value. The reason for this is that on more volatile assets, the EMA will follow price more closely to give you a better idea of when price may change direction.

Historical Volatility calculation:


EMA calculation:


Let's explain some charts to better understand this tool!

снимок

We see on a 1 year SHY chart, the moving average is far from the price. This makes sense as SHY has a range of 2.85% from the low to the high for this period in the photo above. It is not very volatile.

снимок

In this chart of BTCUSD we see that the EMA follows price very closely, way closer than it does on SHY. This is because BTCUSD is much more volatile. BTCUSD has a range of 196% from the low to the high in this photo. Way more than SHY.

We see it change on the same asset here looking at QQQ. In the small period with the drop we see the EMA follow more closely as volatility picks up, then it quickly allows price to get far as volatility leaves.

снимок

This is the perspective we aim to provide. We encourage traders to not follow indicators blindly. No indicator is 100% accurate. This one can give you a different perspective of price strength with volatility. We encourage any comments about desired updates or criticism!
Candlestick analysisChart patternsCycles

Скрипт с открытым кодом

В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения. Вы можете добавить этот скрипт в избранное и использовать его на графике.

Хотите использовать этот скрипт на графике?


Мои профили:

Отказ от ответственности