Historical Volatility Percentile + SMA

Historical Volatility Percentile tells you the percentage of the days from the past year (252 trading days) that have lower volatility than the current volatility .

I included a simple moving average as a signal line to show you how volatile the stock is at the moment.

I have included simple colors to let you know when to enter or exit a position.

Buy when price higher than EMA & historical volatility higher than SMA
Sell when price lower than EMA & historical volatility higher than SMA

Please let me know if you would like me to publish any other indicators! I always love to hear from you guys.
版本注释: updated to match my other indicators
版本注释: fixed issue with default resolution


本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。