# Custom Formula Collection

Historical Volatility Daily

With MetaStock^{TM} for Windows, you can easily plot the 10 and 100 day Historical Volatility. First use the Indicator Builder to enter the following Custom indicators:

Historical Volatility 10 day

Std(Log(C/Ref(C,-1)),10)*Sqrt(365)*100

Historical Volatility 100 day

Std(Log(C/Ref(C,-1)),100)*Sqrt(365)*100

Next plot both indicators in the same inner window. If the Scaling Options dialog appears, choose the Merge with Scale on Right (or left) option.

I find it easier to see the Historical Volatility signals by combining the 10 and 100 day indicators into the following indicator.

Historical Volatility Indicator

Std(Log(C/Ref(C,-1)),10)/Std(Log(C/Ref(C,-1)),100)

Plot this indicator in MetaStock for Windows, then click your mouse button on the indicator. Choose Historical Volatility Indicator Properties and then choose the Horizontal Lines page. Add a horizontal line at .5 and then choose the OK button. You now know the 10 period volatility is less than half the 100 period volatility anytime this indicator crosses below its horizontal line.

To test trading systems using this indicator it would he helpful to use the alert function along with a trend following indicator, such as the following example:

- Enter Long:

Cross(CLOSE,Mov(C,20,E)) AND Alert(Fml("Historical Volatility Indicator")<=5,10)

- Enter Short:

Cross(Mov(C,20,E),CLOSE) AND Alert(Fml("Historical Volatility Indicator")<=5,10)

This system will enter a long trade when the close has crossed above its 20 day moving average, and when Historical Volatility Indicator was .5 or lower within the last 10 days. The system will sell when the close crosses below its 20 day moving average, and when Historical Volatility Indicator was .5 or lower within the last 10 days. Use any indicator you would like, this just provides a basic example of how to use this indicator in a system test.

For additional help with formulas, please see the Formula Primer.

Can't find the custom formula you need? MetaStock can create formulas for you.

- Creating Custom Formulas
- Absolute Breadth Index
- Advance / Decline Line with Negative Volume
- ADX/ADXR Custom (without rounding)
- Alpha and Beta
- Arms Index (TRIN)
- Average-Modified Method
- Breadth Thrust
- CCI Moving Average Crossover System Test
- Chande's Momentum Oscillator
- Combining Trend and Oscillator Signals System Test
- Commodity Channel Index Buy and Sell Signals
- Comparative Relative Strength
- Comparative Relative Strength Exploration
- Coppock Curve
- Derivative Moving Average
- Detrended Price Oscillator
- Disparity Index
- Displaying the Price of a Security in 32nds and 64ths
- Divergence between the Close and an Indicator
- Dynamic Momentum Oscillator
- Elder Ray and The Force Index
- End Point Moving Average
- Genesis of a Simple Futures Trading System
- Historical Volatility Daily
- Historical Volatility System, Connors and Raschke's
- Historical Volatility Weekly
- InSync Index
- Investor Preference Index
- Keltner Channels
- Ken Roberts' Formulas
- Kurtosis Indicator
- MACD Histogram
- Market Facilitation Index
- Market Facilitation Index Expert Advisor
- Market Thrust Oscillator
- Martin Pring's KST Formulas
- Mass Index
- McClellan Oscillator
- McClellan Summation Index
- Modified VIX Indicator
- Money Flow Index
- Moving Average of Only One Day of a the Week
- Natenberg's Volatility
- New Advance Decline Line
- Pathfinder Trading System
- Polarized Fractal Efficiency
- Price Action Indicator (PAIN)
- Price Volume Rank
- Random Walk Index
- Rate of Change Since a Specific Date
- Regression Oscillator and the Slope/Close Indicator
- Relative Strength Index, Custom (RSI)
- Relative Volatility Index (RVI)
- Slope of a Line
- Slope of a Linear Regression Line
- Standard Error Bands
- STIX Oscillator
- Stochastic %D
- Stochastic Relative Strength Index
- Tick Line Momentum Oscillator
- Trading Channel Index
- Wilder's Volatility
- WillSpread by Larry Williams