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
PrometheusAnalytics

סקריפט קוד פתוח

ברוח TradingView אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יוכלו להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אבל השימוש החוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

רוצה להשתמש בסקריפ זה בגרף?

כתב ויתור