This script shows three different calculations for volatility.
All three can be used as Stop-Loss... - Absolute Price Changes - Maximum Price Fluctuation - and every one should know Average True Range
The script has a dark and light theme. And the colors can be changed and each can be deactivated.
On top of that I stumbled over the fact that when MPF crosses over APC this could result in a significant change in price and could also be used as an entry or exit. This is also highlighted by default. You can change its background color and you can deactivate it too.
ACP measures volatility over most recent close prices. This is excellent for comparing volatility. It includes both frequency and magnitude. In other words: Sum of differences between second to last close price and last close price as absolute value for 'n' bars.
MPF measures volatility over most recent candles, which could be used as an estimate of risk. It may also be effective as the basis for a stop-loss or take-profit, like the ATR but it ignores the frequency of directional changes within the time interval. In other words: The difference between the highest high and lowest low over 'n' bars.
When you don't know what the ATR is then you can look at this link.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
차트에서 빠르게 액세스하려면 이 스크립트를 즐겨찾기에 추가하세요 — 여기에서 자세히 알아보기.