| Alerts: Historical Volatility |
![]()
Historical Volatility is a measure of a security's standard deviation. High volatility values are an indication of erratic volatile price action. This article will demonstrate plotting an alert value on a chart.
The alert property form for this example is shown here.
Panel A uses the Historical Volatility function to return a volatility value for a 30 bar period of time. This value is written to global variable 1 because the Condition selection is 'A Only'. However, the action in panel B is also performed, which reads the Value from Global Variable 1, multiplies the Value by the number 4 to resize it, and adds the chart's Scale Low value. This makes the value in panel B ready to plot on the chart's scale.
The Marker plots on the chart in the 'B' Value position, using the thick curve marker token. The curve line is plotted in Green.
A template for Historical Volatility can be downloaded from the Ensign web site. The template is named: Historical-Volatility.