OPEN-SOURCE SCRIPT

Prometheus Volatility Stop

PrometheusAnalytics의
The Prometheus Volatility Stop is an indicator designed to give you a moving risk metric along with a custom Moving Average cross. After a calculation of the annualized volatility for the specified lookback period we determine bullish or bearish from the moving averages and plot the Volatility Stop accordingly.

User Input:
A user can select from Hull Moving Average, Exponential Moving average, Simple Moving Average, the Moving Average used in RSI, and Weighted Moving Average. The default is Hull Moving Average and Exponential Moving average.

A user can also specify the lookback period. The default is 30.

A user may also turn off the plots for the Moving Averages.

The reason for this approach is to be more original from the traditional Volatility Stop.

Calculation:
The Historical Volatility is calculated by taking the standard deviation of the log returns for the specified period and then annualizing it.



Then the Volatility Stop is calculated as follows:


When the second selected moving average is greater than the first, which signals bearishness, the historical volatility gets added to the high of that period. When the moving averages signal bullish the historical volatility gets subtracted from the low of that period.

Here is an example on ARM :

스냅샷

After the first crossover, bullish signal, price runs for some time. As we get higher and higher so does the Volatility Stop. At the highs before a bearish crossover the price hits and closes at the Volatility Stop. Providing what could be an exit from a strong run up.

Intra-day example on QQQ :

스냅샷

We see that in the early bearish move price goes on to hit the Volatility Stop before the trend switches.

We also see that in the failed long. The price action throughout the rest of the day, while not providing in profit stop outs, do provide fine directional alerts.

All those examples have been done with the default settings. Upon changing Moving Average One to a WMA and Moving Average Two to an SMA, as well as the lookback to 75. We see this quickly can become a simple trend follower.

스냅샷

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 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?

면책사항