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] [151] [152] [153] [154] [155] [156] [157] [158] [159] [160] [161] [162] [163] [164] [165] [166] [167] [168] [169] [170] [171] [172] [173] [174] [175] [176] [177] [178] [179] [180] [181] [182] [183] [184] [185] [186] [187] [188] [189] [190] [191] [192] [193] [194] [195] [196] [197] [198] [199] [200] [201] [202] [203] [204] [205]


57

-I-1-I-I-I-q



Methods of spectral analysis vary due to the choice of weighting functions tha compensa for th fact that th accuracy of decreases as k increases The two most popular techniques for adjusting (or this problem introduce an estimator called a / § window and a truncation point M /V so that the values of c* for / < Jb < /V are no longer used and the values of c for Jb M are we ghted by >*.

The spectral analysis approidmarion is then written-

m) = (Vo + 2 £ V. cos u*) where tan be cither of the following;

(a) lUkeyumdow

(b) window

Using a Fast Fourier Transform Program

There are computer programs that apply a Fast Fourier Transform to perform a spectral analjsis and create a Fourier power spectrum such as the one in Figure 8-lOb. Anthony Warrens approach can be found in Appendix 5 written in BASIC program code. The pro

Anthony Warren,A Mini Guide to Fourier Spectrum Analysis," Technical Analjsis ofStocks . Commodities (January 1983). A very useful series of articles on spectral analjsis has been published in Technical Analjsis beginning in Januarj 1983, authored by both Anthony W Warren and jad; K. Hutson. Much of the infonnation in this section was drawn from that material.

gram deU-ends the data and reduces endpoint discontinuity, which can produce large unwanted cycles. This is accomplished by multiplying the data by a bell-shaped window and extending the endpoints to give a more definitive structure to the deU-ended data, without affecting the results (as discussed in the previous section).

A second filter is applied using selected moving averages. The moving average will reduce or eliminate the importance of those cycles, which are equal to or shorter than two times the length of the moving average, letting the more dominant cycles appear. For example, the use of a 10-d moving average will eliminate cycles of length less than 20 ds (frequencies greater than 125 per year). Figure 8-12showstheoutput of the computer program.

Subsequent woits by Warren and Hutson present a computer program to calculate moving average weighted filters using linear, friangular, and Hanning weights.

Interpreting the Results of the Fourier Power Spectrum

Both Figures 8-lOb and 8-12 show a power spectrum resulting from a Fourier fransform. Figure 8-lOb is an ideal representation, in which the cycles stand out with no ambiguity; Figure 8-12 is more realistic, showing both the dominant cycles and a certain amount of variance around those values. In the power spectrum, the cycle power shown along the jaxis is the cycle amplitude squared. In Figure 8-lOa, cycle D peaks at a price of about 425, which yields a specfral density, or specfral power, of 180,625 when squared, corresponding roughly to the 40-day cycle in Figure 8-1 Ob.

Using the infonnation fran the beginning of this chapter, the frequency is the inverse of the cycle length: therefore, if the cycle length is 40 dajs. the frequencyF = 360/40 = 9.

Anthony Warren and jackK. Hutson, "Finite Impulse Response Filter," Technical Analjsis of Stocks & Commodities



(May 1983)

FIGURE 8-12 Output of spectral analysis program.

TITLE T BILLS S03/B3 01/07/83

FOURIER ANALYSIS DF 7-OfiY MOVING ftUG. 9.88 Fourier N = ZSE .

Source., jad; . Hutson, "Using Fourier," Technical Analjsis of Stocks & Commodities, 1, no. 2 January & February 1983). m 1983 Technical Analjsis, Inc. Used with permission.

The sine wave changes phase at the rate of 9 degrees per d, completing one fun cycle every 40 ds.

A fast method for observing the possible results is to use weekly rather than daily data. This will be a close approximation for low-frequency waves but will he less representative for the high frequencies. Averaging the data points can yield results very similar to the daily analjsis.

MAXIMUM ENTROPY

Maximum Enfropy Specfral Analjsis (MESA) is a technique that filters noise (entropy) from a time series and exposes the useful cycles:" it provides a very practical altemative to Fourier analjsis that makes it possible to find cycles usmg a verv small amount of data. The use of Fourier fransforms requires at least 256 da points and a minimum of 16 consistent cycles of 16 bars. That would eliminate the possibility of uncovering cycles for the shortterm trader.

Jolm Ehiers describes the existence of short-term cycles as a natural phenomenon. it is part of the process thai causes rivers to meander back and forth as water seeks to fiow in a sfraight line, or a drankard who walks through an alley bumping against the walls but moving steadily forward. From these pattems, useful cycles can be found aboul 20% of the time.

Using the Phase Angle

In an ideal situation, in which the market cycle can be shown as a pure sine wave, the phase angle constantlj increases throughout the cycle, beginning at 0 and ending at 360. The phase angle then drops to 0 when the new cycle begins and increases again at a constant rate until it ends at 360. This repeated pattem forms a sawtooth chart, as shown in Figure 8-13. Although the cycle goes fran peak to value, the phase angle moves constanUy in one direction

in the practical analjsis of short-term cycles, Ehiers compresses tick data into bars of equal numbers of ticks, then examines the phase for uniformity. Once found, the uniform phase, which appears as a sawtooth chart, will become erratic as the short-term cycle begins to break down, maricing the end of a current maitet event.

Ehlerss Lateral Shift in Thinking

At first glance, the use of only a small amount of data needed by MESA seems to confradict the basic rules of statistics, which demand that results be based on as much data as possible to be reliable. But Ehiers, who has been the dominant influence in cycles since about 1990, is too knowledgeable to have made a mistake so simple. His book MESA and Trading Maitet Cjcles focuses on the use of short-term cycles based on short sample time periods. Instead, he has used this very attribute to apply cycles inside out.



[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] [151] [152] [153] [154] [155] [156] [157] [158] [159] [160] [161] [162] [163] [164] [165] [166] [167] [168] [169] [170] [171] [172] [173] [174] [175] [176] [177] [178] [179] [180] [181] [182] [183] [184] [185] [186] [187] [188] [189] [190] [191] [192] [193] [194] [195] [196] [197] [198] [199] [200] [201] [202] [203] [204] [205]