Bollinger Bandit Trading Strategy
Bollinger Bandit Trading Strategy
Bollinger Bandit Trading Strategy
115
116
close of 30 days ago for a short position. This additional requirement is a trend filter. We only want to go long in an uptrend and short in a downtrend. The Bollinger Bandit requires four tools: (1) Bollinger Bands, (2) a moving average of closing prices, (3) a rate of change calculation, and (4) a counter. This system is longer term in nature, so we will use 50 days in our calculations.
Set liqLength to 50 If rocCalc is positive, a long position will be initiated when today's market action >= upBand If rocCalc is negative, a short position will be initiated when today's market action <= dnBand liqPoint = Average(Close, 50) If liqPoint is above the upBand, we will liquidate a long position if today's market action <= liqPoint If liqPoint is below the dnBand, we will liquidate a short position if today's market action >= liqPoint If we are not stopped out today, then liqLength = liqLength - 1 If we are stopped out today, then reset liqLength to fifty
117
The Bollinger Bandit program demonstrates how to: Invoke the Bollinger Band function. This function call is less than intuitive and must be passed three parameters: (1) price series, (2) number of elements in the sample used in the calculation for the standard deviation, and (3) number of deviations above/below moving average. You must use a negative sign in the last parameter to get the band to fall under the moving average. Invoke the MaxList function. This function returns the largest value in a list. Do a simple rate of change calculation. Create and manage a counter variable, liqLength. Bollinger Bandit trading performance is summarized in Table 6.2.
Table 6.2 Bollinger Bandit Performance
System Name: Bollinger Bandit Commission/Slippage = $75 Tested 1982 3/19/2002 Markets British Pound Crude Oil Corn Copper Cotton Deutsch Mark Euro Currency Euro Dollar Heating Oil Japanese Yen Live Cattle Natural Gas Soybeans Swiss Franc Treasury Note U.S. Bonds Wheat Total Total Net Profit $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ 38,750.00 47,242.50 (5,112.50) 2,300.00 26,695.00 51,075.00 8,737.50 31,927.50 16,883.14 121,937.50 (16,867.50) 85,897.50 (15,925.00) 76,312.50 39,625.00 48,381.25 (20,037.50) 537,821.89 Max. DrawDown $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ (43,612.50) (17,522.50) (12,937.50) (9,587.50) (12,437.50) (13,812.50) (9,012.50) (6,622.50) (18,378.89) (21,462.50) (25,411.50) (21,737.50) (40,862.50) (9,987.50) (11,487.50) (15,343.75) (21,931.25) # of Trades 194 170 213 138 220 186 29 196 201 180 224 113 215 188 202 204 219 3092 % Wins 33.51% 41.76% 29.58% 36.23% 32.73% 41.40% 44.83% 35.71% 38.81% 37.22% 26.79% 44.25% 31.16% 40.96% 38.12% 36.27% 29.68% Max. Cons. Losers 20 8 13 12 8 6 7 19 10 8 18 6 15 5 9 6 11
118
A visual example of how this system enters and exits trades is shown in Figure 6.2.