Investor/RT Systems |
||
|
The system detailed below is discussed in the article "Trade The Price Swings" by Barbara Star, Ph. D, in the December 2003 issue of Technical Analysis of Stocks and Commodities Magazine. This system is based on a linear regression endpoint indicator which is called Linear Regression Forecast (LRF) in Investor/RT. This indicator, when setup with the preferences discussed below, provides the endpoint of a linear regression line, and works similar to a moving average. According to Star's article, "It reduces lag time by turning two bars earlier than a simple moving average, and one bar sooner than an exponentially smoothed moving average of the same length." The following chart shows the buy (green) and sell (red) signals on a 15-minute chart of the E-mini contract (ES`Z).
Details on downloading and importing the chart above can be found on the Shared Charts page. The system incorporates the following list of rules:
This system can be implemented using the following combination of rules/signals in an Investor/RT Trading System: RULE 1: 1 Minute: If SWING_LONG then BUY 1 at Last
price RULE 2: 1 Minute: If SWING_LONG_EXIT then SELL 1 at
Last price RULE 3: 1 Minute: If SWING_LONG_STOP then SELL 1 at
Last price RULE 4: 1 Minute: If SWING_SET_LONG_TRAIL then NO
ACTION RULE 5: 1 Minute: If SWING_SHORT then SELL SHORT 1 at
Last price RULE 6: 1 Minute: If SWING_SHORT_EXIT then COVER SHORT
1 at Last price RULE 7: 1 Minute: If SWING_SHORT_STOP then COVER SHORT
1 at Last price RULE 8: 1 Minute: If SWING_SET_SHORT_TRAIL then NO
ACTION The system above is setup for Optimization on three different parameters. LRF is setup with an MA Period of V#3 and a Regression Period of V#2 in order that both of these may be optimized. Also, the trailing stop is implemented using V#1. The token "POS" represents the Position Indicator and is setup with a result of "Bars from End of Session" to force the closing of positions on the last bar of each session (if a position is open). POS_STATE tells whether the system is currently long (1) or short (2). BARSOPEN tells how many bars a position has been open. STOP is used to maintain a trailing stop, and only moves in the direction of the trade once initially set. "NO ACTION" rules are used to maintain the trailing stops. In Rule 2, SIGNAL refers to the signal "SWING_SHORT", while in Rule 6, SIGNAL refers to the signal "SWING_LONG". The Trading System and Backtest Setup window for this system, setup as discussed above, can be seen below: Trading System Backtest Setup The following four parameters will be used to optimize the system:
The Optimization window, setup to optimize the swing system as discussed above, can be seen below:
The optimized combination of parameters, from a "Net Profit" standpoint, was:
This combination produced a net profit of $2125 on 47 trades of a single E-mini contract. To view the complete list of results, click here.
|
||