# Custom Formula Collection

Ken Roberts' Formulas

**12 Month High/Low (Contract)**

This is a Trinary wave indicator that you put into its own inner window. This formula is used only on specific contracts that have less than 1 year of data. It will plot a +1 on days that have made a new contract high and a -1 on days that have made a new contract low.

If(Highest(High)>Ref(Highest(High),-1),+ 1,If(Lowest(Low)<Ref(Lowest(Low),-1),-1,0))

**12 Month High/Low (Continuous)**

This is a Trinary wave indicator that you put into its own inner window. This formula is used only on continuous contracts that have more than 1 year of data. It will plot a +1 on days that have made a new contract high and a -1 on days that have made a new contract low.

If(HHV(High,252)>Ref(HHV(High,252),-1),+1,If(LLV(Low,252)<Ref(LLV(Low,252),-1),-1,0))

**50% Retracement (Contract)**

This is an indicator that is applied directly onto your price data chart. This formula is used only on specific contracts that have less than 1 year of data. It will plot a line on your chart that will show at any point in time what the 50% retracement will be. Note: This line will change as the security makes new high's or new low's, showing what the 50% retracement would be at that time.

((Highest(High)-Lowest(Low))/2)+Lowest(Low)

**50% Retracement (Continuous)**

This is an indicator that is applied directly onto your price data chart. This formula is used only on continuous contracts that have more than 1 year of data. It will plot a line on your chart that will show at any point in time what the 50% retracement will be. Note: This line will change as the security makes new high's or new low's, showing what the 50% retracement would be at that time.

((HHV(High,252)-LLV(Low,252))/2)+LLV(Low,252)

**Sideways Channels Exploration**

Periodicity: Daily

FORMULAE:

ColumnA: Top

Mov(Peak(1,H,1),45,S)-Ref(Mov(Peak(1,H,1),45,S),-45)

ColumnB: Bottom

Mov(Trough(1,L,1),45,S)-Ref(Mov(Trough(1,L,1),45,S),-45)

Filter:

ColA <

1 AND ColA >

-1 AND ColB <

1 AND ColB >

-1

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