Custom Formula Collection
Combining Trend and Oscillator Signals System Test
The information for this test was published in the December 1996 issue of Technical Analysis of Stocks and Commodities. The test appears in the article "Combining Trend and Oscillator Signals" by Jeremy G. Konstenius. Mr. Konstenius describes a trading system that combines Linear Regression and Moving averages to generate trades.
To create this test in MetaStock do the following:
- Run MetaStock
- Click Tools|System Tester|New.
- Type a name for the test in the Name column.
- Enter the following System Test rules and options.
ENTER LONG:
C >
Mov(C,OPT1,S) AND LinRegSlope(C,OPT2) >
LinearReg(LinRegSlope(C,OPT2),OPT3)
CLOSE LONG:
Cross(Mov(C,OPT1,S),C) OR Cross(LinearReg(LinRegSlope(C,OPT2),OPT3),LinRegSlope(C,OPT2))
ENTER SHORT:
C <
Mov(C,OPT1,S) AND LinRegSlope(C,OPT2) <
LinearReg(LinRegSlope(C,OPT2),OPT3)
CLOSE SHORT:
Cross(C,Mov(C,OPT1,S)) OR Cross(LinRegSlope(C,OPT2),LinearReg(LinRegSlope(C,OPT2),OPT3))
-
OPTIMIZE:
OPT1: Minimum 5 Maximum 50 Step 5
OPT2: Minimum 5 Maximum 50 Step 5
OPT3: Minimum 5 Maximum 50 Step 5
- Initial Equity: Any amount.
- Positions: Long and Short
- Trade Price: Close
- Trade delay: 0
The author uses weekly data and a $50 round turn commission. You can modify this test by changing the distance from Minimum to Maximum or the Step used in each OPT variable.
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