OPEN-SOURCE SCRIPT

Prometheus Volatility Stop

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 :

Snapshot

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 :

Snapshot

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.

Snapshot

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

Open-source Skript

Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun das Script auch andere Trader verstehen und prüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden. Die Nutzung dieses Codes in einer Veröffentlichung wird in unseren Hausregeln reguliert. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Möchten Sie dieses Skript auf einem Chart verwenden?

Haftungsausschluss