back start next


[start] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] [33] [34] [35] [36] [37] [38] [39] [40] [41] [42] [43] [44] [45] [46] [47] [48] [49] [50] [51] [52] [53] [54] [55] [56] [57] [58] [59] [60] [61] [62] [63] [64] [65] [66] [67] [68] [69] [70] [71] [72] [73] [74] [75] [76] [77] [78] [79] [80] [81] [82] [83] [ 84 ] [85] [86] [87] [88] [89] [90] [91] [92] [93] [94] [95] [96] [97] [98] [99] [100] [101] [102] [103] [104] [105] [106] [107] [108] [109] [110] [111] [112] [113] [114] [115] [116] [117] [118] [119] [120] [121] [122] [123] [124] [125] [126] [127] [128] [129] [130] [131] [132] [133] [134] [135] [136] [137] [138] [139] [140] [141] [142] [143] [144] [145] [146] [147] [148] [149] [150]


84

Optimization: Intermarket Two

Optimize Lenl= 3 to 10. Subtract Commissions = $25, Slippage = $50

Lenl

Net Profit

PFact

MaxDD

#Trds

%Prft

AvgTrd

3.00

306350.00

1.55

-65925.00

464.69

572.62

5.00

249700.00

1.48

-44200.00

564.93

595.94

6.00

233350.00

1.50

-56800.00

410.83

632.38

8.00

209850.00

1.49

-59975.00

349.90

701.84

7.00

202850.00

1.46

-55900.00

362.88

591.40

4.00

180300.00

1.32

-83650.00

215.54

386.08

9.00

137550.00

1.30

-85400.00

161.07

493.01

Source: Printed using TradeStation by Omega Research Version 4.02.15-Jul < 09 1996.

Adding another Filter to Improve the system

In system Intermarket Three, shown in Figure 14.13, we add another momentum filter to Intermarket Two. We will buy the S&P only if T-bond momentum is positive, while the S&P momentum is negative. This creates a situation whereby the T-bond momentum actually leads a change in the S&P. We look for a divergence in the momentum indicators and trade in the direction of T-bonds.

By adding a second input, we are making the system more complex. However, it is still a relatively simple system. If we optimize the two input values, we can see if performance holds up over wide ranges of inputs.

Figure 14.14 is an optimization table, sorted by net profit, showing all combinations of input values between 2 and 10. It is seen that all combinations are profitable, and a great many are very profitable.

We need to stop at this point to make sure we are heading toward a robust system, and to decide what input values we would consider using. We can then consider adding an artificial stop, such as a money management stop or a trailing stop.

Building a robust system

A robust system is one that will stand up over time. It is designed based on data collected in the past, and expected to continue to generate profits into the future. Since the future will not be exactly like the past, a systems robustness is a measure of how different the future can be from the past and still yield good results.



Page 1

Type : System

Name : Intermarket Three

Notes . Uses two momentum indicators.

Last Update : 02/07/97 11:12am Printed on : 02/07/97 11:13am Verified : YES

{Datal is S&P. Data2 is T-Bonds. This system mathematically transforms T-Bond prices to S&P prices. It generates a trading signal when the Transformed T-Bond line crosses the S&P line, but only when the momentum of T-Bonds is positive while the momentum of S&P is negative.. It is a simple system with two inputs, and is shown for development purposes.}

Van Y(0), b(0), begSP(O), begTR(0), g(0), j(0), m(0), n(0); Input: Lenl(3), Len2(10);

If CurrentBar = 1 then begin

begSP = Close of Datal,

begTR = Close of Data2, End;

If CurrentBar > 1 then begin

m = AbsValue(Close of Datal - begSP); n = AbsValue(Close of Data2 - begTR), lfn<>0thenb = m/n; g = b* begTR; j = begSP - g;

Y = j + b * Close[ 1 ] of Data2; {This is the transformed T-Bond line.} End,

If Y crosses above Close of Datal and Momentum(Close, Lenl) of Data2 > 0 and Momentum(Close, Len2) of Datal < 0 {This is the additional filter} then Buy {the S&P} on Open;

If Y crosses below Close of Datal and Momentum(Close, Lenl) of Data2 < 0 and Momentum(Close, Len2) of Datal > 0 {This is the additional filter} then Sell {the S&P}on Open;

Source: Printed using TradeStation PowerEditor by Omega Research Version 4.02.15-Jul < 09 1996.

In building a trading model, we must first strive to design our system in a way that is likely to be robust. This involves principles previously discussed, such as minimizing system complexity and assuring data adequacy.

However, all the factors that lead to robustness cannot be specifically verbalized or quantified. A necessary part of system development is to test each system for robustness. This can be done by carefully and exhaustively evaluating the performance that each system achieves through backtesting, before beginning to trade it.

Figure 14.13 System: intermarket three.



Optimization: Intermarket Three

Optimize Lenl = 2 to 10, Len2 = 2 to 10. Subtract Commissions=$25, Slippage=$50

Lenl

Len2

Net Profit

PFact

MaxDD

#Trds %Prft

AvgTrd

3.00

9.00

404025.00

2.79

-40050.00

1008.8

2126.45

3.00

10.00

392025.00

2.57

-41500.00

944.64

2020.75

3.00

8.00

367150.00

2.52

-38350.00

957.37

2098.00

3.00

3.00

320975.00

2.36

-56925.00

563.86

1823.72

2.00

5.00

315750.00

2.11

-92425.00

341.63

1754.17

3.00

7.00

312650.00

2.16

-45325.00

689.80

1671.93

2.00

6.00

297650.00

2.08

-72925.00

408.16

1672.19

4.00

1000

295700.00

2.13

-35500.00

83296

1633.70

2.00

9.00

294400.00

2.13

-88625.00

332.19

1653.93

2.00

8.00

285150.00

2.07

-78275.00

364.29

1677.35

5.00

9.00

283025.00

2.28

-43250.00

654.39

1664.85

3.00

6.00

281900.00

2.06

-53875.00

523.25

1475.92

5.00

10.00

273700.00

2.04

-56350.00

485.71

1638.92

2.00

7.00

261550.00

1.94

-81625.00

320.43

1520.64

3.00

4.00

261175.00

1.91

-57400.00

455.01

1389.23

5.00

258850.00

2.11

-55425.00

467.03

1648.73

4.00

9.00

257925.00

1 99

-43500.00

592.93

1386.69

4.00

7.00

249200.00

1.92

-67200.00

370.83

1392.18

7.00

3.00

247100.00

1.83

-75625.00

326.74

1321.39

9.00

8.00

246750.00

2.40

-45950.00

537.00

2372.60

6.00

2.00

245150.00

1.84

-53750.00

456.09

1297.09

7.00

4.00

244925.00

1 89

-65125.00

376.08

1511.88

6.00

8.00

244250.00

2.10

-62675.00

389.71

1782.85

7.00

2.00

241650.00

1 83

-32700.00

738.99

1278.57

3.00

5.00

241225.00

1.92

-51550.00

467.94

1340.14

10.00

8.00

239550.00

2.33

-44900.00

533.52

2218.06

2.00

4.00

238650.00

1.76

-66500.00

358.87

1355.97

4.00

8.00

234350.00

1.86

-61300.00

382.30

1386.69

3.00

234100.00

1.77

-90825 00

257.75

1293.37

10.00

9.00

232625.00

2.27

-39150.00

594.19

2114.77

9.00

3.00

232600.00

1.90

-81450.00

285.57

1582.31

2.00

3.00

232300.00

1.78

-70900.00

327.64

1305.06

7.00

7.00

230550.00

2.05

-44800.00

514.62

1844.40

7.00

228900.00

2.08

-62625.00

365.51

1802.36

5.00

8.00

228250.00

1.83

-49525.00

460.88

1472.58

9.00

9.00

224625.00

2.29

-45950.00

488 85

2079.86

2.00

2.00

217300.00

1.76

-68600.00

316.76

1241.71

10.00

1000

217200.00

2.24

-38575.00

563.06

2193.94

8.00

9.00

216675.00

2.04

-35425.00

611.64

1666.73

9.00

1000

210100.00

2.15

-50825.00

413.38

2000.95



[start] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] [33] [34] [35] [36] [37] [38] [39] [40] [41] [42] [43] [44] [45] [46] [47] [48] [49] [50] [51] [52] [53] [54] [55] [56] [57] [58] [59] [60] [61] [62] [63] [64] [65] [66] [67] [68] [69] [70] [71] [72] [73] [74] [75] [76] [77] [78] [79] [80] [81] [82] [83] [ 84 ] [85] [86] [87] [88] [89] [90] [91] [92] [93] [94] [95] [96] [97] [98] [99] [100] [101] [102] [103] [104] [105] [106] [107] [108] [109] [110] [111] [112] [113] [114] [115] [116] [117] [118] [119] [120] [121] [122] [123] [124] [125] [126] [127] [128] [129] [130] [131] [132] [133] [134] [135] [136] [137] [138] [139] [140] [141] [142] [143] [144] [145] [146] [147] [148] [149] [150]