A Trend-Switching Financial Time Series Model with Level-Duration Dependence

The financial time series model that can capture the nonlinearity and asymmetry of stochastic process has been paid close attention for a long time. However, it is still open to completely overcome the difficult problem that motivates our researches in this paper. An asymmetric and nonlinear model with the change of local trend depending on local high-low turning point process is first proposed in this paper. As the point process can be decomposed into the two different processes, a high-low level process and an up-down duration process, we then establish the so-called trend-switching model which depends on both level and duration Trend-LD . The proposed model can predict efficiently the direction and magnitude of the local trend of a time series by incorporating the local high-low turning point information. The numerical results on six indices in world stock markets show that the proposed Trend-LD model is suitable for fitting the market data and able to outperform the traditional random walk model.


Introduction
The traditional Brownian motion 1 or random walk model 2 has rich applications in physics, biology, and economics, especially in many classical financial theories for capturing the uncertainty of financial data e.g., efficient market hypothesis .However, the dynamic behavior of Brownian motion is symmetrical and the probability of up and down at any time is always 50%.This is not consistent with the dynamic of price of any risky asset.So Brownian motion is not efficient in capturing the uncertainty for financial time series.To overcome the shortcoming of Brownian motion and capture the uncertainty in financial market, some sophisticated mean-reversion models are proposed, such as, arithmetic Ornstein-Uhlenbeck model 3 , geometric Ornstein- Uhlenbeck 4 , and autoregressive moving average ARMA model 5 .In addition, Engle and Granger 6 developed an error correct model ECM in which the short-term trend can be corrected by the deviation from the equilibrium of the longterm cointegration.However, Granger and Engle's model has a clear disadvantage: when the process e.g., prices or returns of financial securities deviates from a long-term mean level or equilibrium, the direction and magnitude of the local trend will immediately change and it will go back to the long-term mean level or equilibrium.This makes that the change of the trend is too frequent.However, in many time series, such as, sunspot numbers, Canada lynx data, business cycle series, the change of local trend does not occur frequently in a small amplitude or a short period due to the inertia of movement and these time series often present the nonlinearity and asymmetry.
In the last two decades, in order to capture the properties of the real world time series, some regime-switching models, for instance, the threshold autoregressive TAR model 7, 8 , the smoothing transition autoregressive STAR model 9, 10 , and the Markov-switching autoregressive MSAR model 11, 12 are paid close attention.The switching between different regimes is often determined by the lagged variables, exogenous variables, or latent variables.For TAR model, the switching from one regime to another depends on the lagged variables or the others in different fixed intervals, such that the threshold values are fixed and the switch of the regimes is abrupt.STAR model is actually a weighted two-regime TAR model, where the weight is a function of the lagged variable or the others such that the transition between regimes is smooth.For MSAR model, The choice of the regime is based on a latent random variable which follows a Markov process.The regime-switching models are more flexible and asymmetric and able to overcome the shortcomings of the mean-reversion models and therefore are used widely in finance see [13][14][15][16][17][18] .TAR and STAR models are suitable for the fluctuation data with fixed thresholds or regular cycle, but not for the case that the thresholds and durations of different regimes are time-varying or longer-term dependent, since the change of the regime is still too frequent.While MSAR model characterizes that the choice of regimes is random and only dependent on current state.Hence, in these regimeswitching models, the change of the regime trend is always abrupt and does not incorporate the longer-term historical information.
Generally speaking, in financial practice, the measure of the volatility of the returns of risky assets is based on the range of daily price 19-23 .On one hand, for the local high low level, technical analysts and investors often exploit the past local high-low levels or resistant-support levels of financial data for predicting the next one.For example, when investors forecast the direction of up-down regime, they often refer to the past local high low levels of the technical indicators, for example, BIAS the relative deviation from the moving average , MACD moving average convergence divergence , and RSI relative strength index ; on the other hand, for the duration the arrival time between consecutive events , Engle and Russell 24 proposed an autoregressive conditional duration ACD model, and then Bauwens and Giot 25 introduce the logarithmic-ACD model.In this paper, we introduce a two-regime model that depends on a local high and low turning-point process local peaks and troughs .This model can be transformed into two processes, a high-low level process and an up-down duration process.The local high low level and the up down duration of the current regime, which is widely used in many fields, such as economics and finance, depend on those of the past ones.To exploit the past longerterm key information, a new class of trend-switching model that incorporates both a local high-low level process and an up-down duration process is discussed and we call it the trendswitching model which depends on both level and duration Trend-LD .In fact, both the high-low level process and the up-down duration process are threshold processes.Therefore, Trend-LD model is also called a time-varying double-threshold regime-switching model.
The rest of the paper is organized as follows.In Section 2, we introduce the model specifications.Section 3 gives the estimations of the parameters.In Section 4, we compare the forecasting performances of the proposed model with that of random walk using six stocks indices from different stock markets.

Model Specifications
In this section, we first provide the definition of local high-low turning point and derive a local high-low level subseries and an up-down duration subseries by which the change in the local trend is determined.And then the equations satisfied by the two subseries are put forward.A nonlinear specifications of the Trend-LD model are proposed.
Let , m stands for the morder moving average of the logarithm of index from time t − m to t − 1, and Y t is the relative bias of the daily stock index at time t.In the bias series Y t , the long-term trend is removed from the time series of index.As a result, it is relative stable and fluctuate around zero, and it can better represent the short-term relative gains or losses, but not absolute gains or losses, than price P t .Figures 1 and 2 give an intuitional example of DJI US Dow Jones Industrial Average index .In Figure 2, the solid line is the relative bias of the DJI Y t ; the circles and squares are the local high and low turning-point series, respectively window radius w 20 .

Level-Duration Equations
H n } controls the direction and magnitude of the local trend of index series {Y t }.Because the current local high low level and the up down duration depend on the past ones.Then, each H k , L k can be expressed as the linear combination of the past high and low level; that is, we have

2.2
Similarly, for no nonnegativity constraint on coefficients estimation, we use the logarithm of durations rather than durations to make sure that the range of the logarithm of duration is real R −∞, ∞ .the duration subseries {D − 1 , D where the error terms {η h k }, {η l k }, {η d k }, and {η d − k } are independent normal distributions with mean 0, variance σ 2 h , σ 2 l , σ 2 d , and σ 2 d − , respectively.p h , q h , p l , q l and p d , q d , p d − , q d − are the number of lag order. Let

2.4
be the information sets.Assume that conditional expectations Then, we have

2.5
By straightforwardly computing, it follows from 2.3 that

2.6
In the rest of this paper, we will denote the local high-low level 2.2 by L p h , q h ; p l , q l , and the up-down duration 2.3 by D p d , q d ; p d − , q d − .

Trend-Switching Model with LD Dependence
In this study, we derive the relative bias {Y t } by removing the middle-to-long term trend moving-average from the price.{Y t } is relative stable and fluctuate around 0, so {Y t } is better at reflecting the short-term relative profit or loss of investors, but not absolute profit or loss, than the price {P t }.Furthermore, in finance, researchers and practitioners often pay closer attention to daily return than daily price itself.Similarly, We are interested in the differences of the relative bias rather than the relative bias itself.Let Then, the dynamic characteristics of the relative bias series {Y t } can be indirectly represented by the difference sequences {r t }.And assume that the difference sequences {r t } have the following expression: where I k,t is an indicator function and satisfies This means that I k,t 1 if Y t is in the kth upward phase, and I k,t 0 if Y t is in the kth downward phase.And where respectively the upward and downward slope in the kth phase; ϕ ± 0 , ϕ ± 1,i i 1, . . ., p μ ± , and ϕ ± 2 are the parameters that need be estimated.The innovation {ε t } and {ε − t } are mutual independent normal error terms with mean 0, variance σ 2 ε and σ 2 ε − , respectively.We call 2.8 Trend p μ ; p μ − .It is not hard to find that the local trend μ t , μ − t consists of three components, that is, the constant term ϕ 0 , ϕ − 0 , the short-term The direction and magnitude of the local trend incorporate the key medium-and long-term information, for example, the local high-low levels and the updown durations.Therefore, the dynamic behavior of the equation Trend p μ ; p μ − depends on both the level equation L p h , q h ; p l , q l and the duration equation D p d , q d ; p d − , q d − .It is integrally called Trend p μ ; p μ − − L p h , q h ; p l , q l − D p d , q d ; p d − , q d − model, that is, Trend-LD model.In fact, the alternate local high-low turning points the local high-low levels, the up-down durations are the two-dimensional thresholds of the Trend-LD and therefore it is also called the time-varying regime-switching model.
Interestingly, if the parameters of the Trend p μ ; p μ − model satisfy some constrain conditions, such as, is a classical pure autoregressive AR model.In addition, if the local high-low levels and up-down durations are substituted by some constants, Trend p μ ; p μ − model is a periodically changing AR or a particular form of TAR.

Estimation of Parameters
In this section, we will estimate the parameters of the Trend-LD model using a two-stage method.We first estimate the parameters of the local high-low level equation L p h , q h ; p l , q l and up-down duration equation D p d , q d ; p d − , q d − by the method of ordinary least squares OLS in the first stage.And then, in the second stage, we estimate the parameters of the equation Trend p μ ; p μ − by maximum likelihood ML .In fact, the ML is equivalent to the OLS under the assumption that error terms are normally distributed.We use the ML in the second stage because the statistical inferences of parameter estimations are similar to that in 48 .
The estimation in the first stage is straightforward.Let be the high-low levels and up-down durations series samples data.Then the parameters in equation L p h , q h ; p l , q l and equation D p d , q d ; p d − , q d − can be estimated directly using OLS method.
After the parameters in equation L p h , q h ; p l , q l are estimated, we can estimate { h k,t , l k,t } using 2.5 and forecast the next local high-low levels.Similarly, in terms of the estimated parameters in equation D p d , q d ; p d − , q d − , { d k,t , d − k,t } can be obtained using 2.6 , and the next local up-down durations can be forecasted.Then, the next local high low turning point threshold point can be obtained, which is helpful for predicting the change of trend.
In the second stage, we can obtain the estimation of the slope of the up-down phase, For the purpose of our analysis, denote Next we estimate the parameters in equation Trend p μ ; p μ − .To this end, we denote the parameter set by Ω Ω ∪ Ω − with

Mathematical Problems in Engineering
For data set R T 0 {r 1 , r 2 , . . ., r T 0 }, R ⊥ T 0 {r T 0 1 , r T 0 2 , . . ., r T 2n }, note that ε t and {ε − t } are normal series.Then for the given indicator I k,t , the conditional logarithm likelihood function can be written as

3.5
To obtain the maximum likelihood estimation MLE of the conditional logarithm likelihood and Ω , respectively.If the process r t is stationary, the estimates fall within the boundaries of the allowable parameter space, then the estimators are consistent 48 .

Hypotheses of Asymmetry and Nonlinearity
In this section, we focus on the asymmetry and nonlinearity of Trend-LD model and consider the following three hypotheses.
Hypothesis 1.The dynamic behavior of the high-low level process does not have asymmetric effects on space level , namely

4.1
Hypothesis 2. The dynamic behavior of the up-down duration process does not have asymmetric effect on time duration , namely

4.2
Hypothesis 3. The dynamic of the local trend is linear and does not depend on local high-low turning point level and duration , namely

4.3
If Hypothesis 1 is true, the local high-low level equation L p h , q h ; p l , q l can be further simplified to the equation L p, q .The truth of Hypothesis 2 will show that the up-down duration equation D p d , q d ; p d − , q d − can be further simplified to the equation D p, q .Hypothesis 3 means that equation Trend p μ ; p μ − can be further simplified to a linear autoregressive model AR p .The three Hypotheses are tested by the likelihood ratio statistic which is asymptotic Chi-square distribution and its degree of freedom is the number of the constrained parameters.

Empirical Applications
Six stock indices with different degree of market development are used to test the performance of our models in this section.These indices are US Dow Jones Industrial Average DJI , US Standard & Poor 500 Index SP500 , British Financial Times Stock Exchange 100 Index FTSE , Singapore Straits Times Index STI , Indian Bombay Stock Exchange Sensex Index BSE , and Chinese Shenzhen Component Index SZCI .

Data
We collect the daily close prices of the above six indices from "http://www.finance.yahoo.com."Each complete data sample is divided into two subsamples, estimating subsample ES and forecasting subsample PS .The details about the data can be found in Table 1.It is worth mentioning here that we preliminarily use 80% of training set for each index and then select a local high point as the separating point which is nearest from the point that divided the total daily index by 80% − 20% since the end of the local high-low turning-point series According to the definition of local high-low turning point, we computed its level data H k and L k , duration data D k and D − k for each index and provide their descriptive statistics mean and standard deviation in Table 2, where moving average order m 20, window radius w 20 The choice of these two parameters is related to the commonly used parameters of Dow's trend theory and Elliott's wave theory in technical analysis.This study is to model the short-term trend and fluctuation of the stock index and to compare with the random walk hypothesis.Therefore, we choose some short-term parameters .In terms of the high-low level, the vibration amplitudes of the later three indices STI, BSE, SZCI are greater than those of the first three indices DJI, SP500, FTSE .Among 6 indices, the fluctuation of the SP500 is the smallest and that of the SZCI is the largest.However, it seems that the characteristics of the up-down durations are not significantly different.Therefore, the local high-low level maybe have more informative than the up-down duration.

Estimates and Tests
For the convenience of comparisons, we preliminarily consider the simple case of the proposed models, Trend 1; 1 -L 2, 2; 2, 2 D 1, 1; 1, 1 , which are enough to capture the dynamics of the data in financial application, first-or second-order AR model is normally used, especially in modeling stock returns.For our Trend-LD, we use second-order lag for the level equation, first-order lag for the duration equation, and the autoregressive term of the local trend equation.We did not provide concise explanation how we choose the orders.In general, the choice of the order is based on AIC or BIC criteria.We believe that these criteria are limited as the penalty on the number of parameters is somewhat arbitrary.We estimated the results on different combinations of parameters in unreported tests.For the local trend equation, we found the coefficients were not significantly different from 0 by t-test when the order of autoregressive term was 2 or higher, and the conditional expectation of the difference r t is mainly determined by the second term related to turning points.Therefore, we only use the first order of the autoregressive term as well as the choice of lag order of other parameters .Then we estimate the parameters and conduct the asymmetry and nonlinearity tests for the proposed models.Ultimately, the structure of the model is chosen as Trend 1; 1 -L 2, 2; 2, 2 D 1, 1 after the tests.For brevity, we consider two representative indexes, the developed market index DJI and developing market index STI and focus our discussion on results pertaining to the two indexes.The other four stock indexes have some similar properties.We first consider the OLS estimations OLE and asymmetric tests on high-low level equation L 2, 2; 2, 2 and up-down duration equation D 1, 1; 1, 1 .The results are presented in Tables 3 and 4, respectively.We find 1 for equation L 2, 2; 2, 2 under the null hypothesis H 1 0 in Panel C and alternative hypothesis in Panel A and B , the R 2 statistics are very large for L 2, 2; 2, 2 , and its P values of F-statistics are very small.From the t statistics of the coefficients, the current high-low level is significantly dependent on the past lagged first-order and second-order high-low levels.see Table 3 .However, for duration equation D 1, 1; 1, 1 under the null hypothesis H 1 0 in Panel C and alternative hypothesis in Panel A and B , The R 2 statistics are very small for duration equation, and its P values of F-statistcs are comparatively large see Table 4 .From the t statistics of the coefficients, the current updown duration is weakly dependent on the past lagged first-order up-down durations.
The constant estimations π d 0 , π d − 0 are all significantly greater than zero.That means there is inertia in the movement of the stock indices after each high low turning point.The findings show that the dependency of the current up-down duration on the past ones is much weaker than that of the current local high-low level on the past ones.The reason may be that the profit of investors is more directly related to local high-low level of the relative bias of stock price than to the up-down duration.2 The nonsymmetry test in Panel D shows as follows: at the 5% significance level, the null hypothesis H 1 0 should be rejected, namely, the level equation is not symmetric L 2, 2 , but asymmetric L 2, 2; 2, 2 , it means that there is asymmetric effect on high-low level process space ; however, the null hypothesis H 2 0 fails to be rejected, namely, the duration equation is not asymmetric D 1, 1; 1, 1 , but symmetric D 1, 1 , it means that there is symmetric effect on up-down duration process time .
Next, we consider the maximum likelihood estimate MLE and nonlinearity test on equation Trend 1; 1 .The results are presented in Table 5.From the t statistics and the P value of the F-statistics in Panels A and B, the coefficient estimations ϕ 2 of the up-down phase slopes m k , m − k are significant greater than zero under 1% significant level and are the greatest among of ϕ 0 , ϕ 1 , ϕ 2 .This means that the local up-down trend is mainly affected by the up-down phase trend m k , m − k .By the non-symmetry test in Panel D, at the 1% significance level, the null hypothesis H 3 0 is rejected.It shows the dynamic of the local trend nonlinearly depends on local high-low turning point level and duration .Thus, the structure of trend part of the model is considered as Trend 1; 1 , not first-order autoregressive model AR 1 .In summary, the structure of the Trend-switching model for the indices is selected as Trend 1; 1 − L 2, 2; 2, 2 D 1, 1 .

Comparisons with Random Walk
In this section, we will consider the forecast performance of Trend-LD model and compare our model with the traditional random walk model.
When the nonlinear model is used in predicting next day local trend μ t 1 , μ − t 1 , it is necessary to know whether the direction of next day local trend is up or down, I k, t 1 is 1 or 0. If the most recent turning point is high low , next day local trend is down up , I t 1 1 I t 1 0 .In the definition, the high low turning point is the highest lowest points within the window of 20 days in radius.However, the most recent local maximum or minimum point is not necessarily a local high or low turning point, since number of the observations on the right of the most recent local maximum or minimum point is less than 20.So we decide whether to accept the most recent high low point based on the current available observation in two different cases.Denote the current observation by Y t .Note that the data on the right side of Y t are unknown.The following gives two cases to decide whether a most recent local maximum or minimum point is a local turning point.

5.1
Rearrange the above formula, we derive the relationship between the return of stock index and the change of the relative bias as follows: R t 1 r t 1 MA R t , 20 .

5.2
Then, the one-step forecast of the return can be written as where r t 1 is a predictor of r t 1 , and R t 1 is a predictor of R t 1 in 5.2 .
The forecast performance can be measured by comparing the real return with forecasted return on the direction and magnitude.It is well known that the daily return of stock index is very uncertain and difficult to predict.However, in practice, due to transaction costs, most investors do not trade frequently, but focus on the direction and magnitude of local trend, with which our Trend-LD model is capable of dealing.However, the direction and magnitude of daily returns do not represent those of the local trend.In order to reduce the impact of random shocks on the local trend, we use the three-day moving average of the change of the bias the real return can be seen as two parts: the unknown, deterministic expected local trend part and random shock part.As the stock prices can be affected by investors' complicated behavior biases, their behavior is difficult to be predicted, and the daily return does not reflect real trend.It is normal that the R-squared is very small in regression on short-term stock return, because the variation generated by random shock is responsible for most of the variation in stock return.When the time interval is smaller daily , the effects of random shock on real return is greater, the accuracy of the prediction is clearly weaker, and the deterministic local trend part is relatively smaller or even submerged by the random shock.To reduce the effects of random shock, we use 3-day moving average of the real return as the proxy of the real local trend.Even the moving average is different from the local trend of real return, it is a better local trend proxy than real return, as the random shock is mostly averaged out.The purpose of our model is to predict the local trend of real return, not the real return that is easily affected by the random shock.The reason to use 3-day is that if the longer the moving average is, the more it may lag behind the real local trend; if the shorter the moving average is, the weaker the random shock effects are removed , MA r t 1 , 3 r t 1 r t r t−1 /3 , as a proxy of the local trend of the relative bias, that is, substitute MA r t 1 , 3 into r t 1 in formula 5.2 , we have a proxy of the local trend of daily return, denoted by R t 1 , namely R t 1 MA r t 1 , 3 MA R t , 20 .

5.4
The following two subsections are the forecasting performance comparisons of the direction and magnitude between Trend-LD model and random walk model.Firstly, we consider the performance comparison of forecasting direction for our Trend-LD model with random walk model.A common directional measure 49 is to use a 2 × 2 contingency table that summarizes the numbers of "rights" and "errors" of the model in predicting ups and downs of local trend of the return R t 1 in the forecasting subsample, see Table 6.M 11 and M 22 indicate correct forecasts of the up and down direction, respectively.M 12 and M 21 indicate incorrect forecasts of the up and down direction, respectively.The Chi-squared statistic derived from the above contingent table is computed by which can be used to evaluate the performance of the model.A large χ 2 signifies that the model outperforms the chance of random choice.Under some mild conditions, χ 2 has an asymptotic chi-squared distribution with 1 degree of freedom.Table 7 shows results of the numbers of "rights" and "errors" of the model in 1-step predicting ups and downs of local trend of the return in the six forecasting subsamples.Table 8 summarizes the right and error rates of directional prediction and its tests.the DJI has the smallest right rate, 63.1% and the SP500 has the largest, 65.7%.The P values of statistic χ 2 are almost zero.This shows that the dynamic behavior of Trend-LD model outperforms significantly the random walk model for all the six stock indices.In addition, the right rates of up direction M 11 /M 10 are greater than those of down direction M 22 /M 20 except the BSE.Indeed, this can be observed intuitively from Figure 1.In this figure, we find that, when the price rises, the local trend of index is more regular and easily predicted than the case when the price falls.This may result from the complicated, asymmetric psychology factors of most of investors, such as diminishing marginal utility, greed, and fear.Moreover, interestingly, the best and worst rate of forecast of up direction is 61.2% of the BSE and 74.5% of the SZCI, respectively.For the down direction, conversely, the right rate of the SZCI is 49.6% and the BSE is 69.2%, respectively.That is, the best and worst rate of forecast of the up-down direction always appears in the market of underdeveloped countries.
Secondly, we consider the comparison of forecasting magnitude for the two models above.Assume that the predicting error e 1t of the Trend-LD model is the difference between forecast return R t 1 and the proxy of local trend R t 1 , and the predicting error e 2t of random walk hypothesis is the difference between 0 and R t 1 .Denote   where d is the sample mean of the loss differential series d 1 , d 2 , . . ., d T , f d 0 is a consistent estimate of f d 0 , f d • is the spectral density of series {d t }.Under the null hypothesis of equal predictive accuracy, the DM statistic is asymptotically standard normal distribution N 0, 1 .In Table 9, the P values of the DM statistic show that the magnitude forecasts of local trend model all significantly outperform the random walk model.In Figure 3 as there are 4276 forecasted daily returns, the figure will be too congested to convey any details if we plot the total time series.As a result, we only show part of the forecasted results , the dash-dot line is the proxy of the real local trend R t 1 , the solid line is the forecast of the real local trend R t 1 .Even if the forecast of the direction and magnitude of local trend have some errors, the overall forecast is good.Furthermore, the direction and magnitude of the local trend and its prediction show inertia duration , which is different from the dynamic of the mean-reversion model and the error correction model that the direction and magnitude of the local trend will immediately change and it will go back to the long-term mean level or equilibrium when the process deviates from a long-term mean level or equilibrium.
To summarize, the proposed Trend-LD model can efficiently reflect the fluctuation characteristics of financial time series, such as the inertia or the duration of the local updown trend, the asymmetric dependency of the alternate local high-low level, the level and duration clustering and has many properties that beyond the traditional random walk model.

Conclusions
Trend-LD model, in essence, is a conditional regime-switching or time-varying twodimensional thresholds model, its threshold local high-low levels and up-down durations or the high-low turning points is not fixed, but conditionally dependent on the past ones.This means that the proposed model can incorporate longer-term, salient history information into trend-switching.Therefore, it is more flexible than the traditional random walk, meanreversion, TAR, STAR and MSAR models.
Our model may introduce to some more interesting further studies: 1 The choices of the order of moving average m and the window radius w, and the determination of the local trend change is a challenge and interesting problem for further exploring.2 Comparisons of our model with mean reversion, TAR, STAR, and MSAR models for other time series data are also meaningful.
forecast performance of the magnitude of local trend is tested by a DM statistic 50 DM d 2π f d 0 /T , 5.6

Figure 3 :
Figure 3: The local trend of the returns of the DJI and its forecasts 2010.03.29-2010.08.18 .
Zhang et al. 26 extended ACD model to a threshold autoregressive conditional duration TACD model.The first two models allow the expected duration to depend linearly on the past ones, but TACD model nonlinearly.Furthermore, Bauwens and Veredas 27 propose the stochastic conditional duration SCD model that is more flexible.The applications of the ACD models have been reported in numerous papers see 28-38 ; moreover, for both level and duration, there are numerous empirical applications about cycle e.g., business cycle, see 39-42 and solar cycle, see 43 , and turning point 44-46 .Durland and McCurdy 47 proposed a class of duration-dependent markov-switching model.The model can incorporate the new information duration into the transition probabilities of the choice of regimes; however, the new information is not longer term.

we can obtain the difference series: let D − 1 t 1 − t 0 , D 1 t 2 − t 1 , D − 2 t 3 − t 2 , D 2 t 4 − t 3 , . . ., D −
Definition 2.1.For the relative bias series {Y t } N t 1 , Y t k is a local high low level, if it is the maxima minima of all samples in t k − w, t k w for a given window radius w, Y t k max Y t k −w , ..., Y t k , ..., Y t k w min Y t k −w , ..., Y t k , ..., Y t k w and we denote the high low level Y t k by H k L k .The pair t k , H k t k , L k is called a local high low turning point.thefirstand last are two local high points, we obtain a strictly alternate local high-low turning-point series { t 0 , H 0 , t 1 , L 1 , t 2 , H 1 , ..., t 2n−1 , L n , t 2n , H n } see the circles and squares in Figure2, where the subseries {t 0 , t 1 , . . ., t 2n−1 , t 2n } is a series consisting

Table 1 :
The periods of estimating subsample ES and predicting subsample PS .

Table 2 :
Descriptive statistics of local high-low level and up-down duration.
Note: level range mean of local high level − mean of local low level, duration cycle mean of up duration mean of down duration.

Table 3 :
OLE of high-low level equation.

Table 4 :
OLE of up-down duration equation.

Table 5 :
MLE of trend equation.

1
If the most recent observation Y t is a local maxima minima in a given window t − w, t .From Definition 2.1, Y t is not seen as the local high low point in window t − w, t w , since the observations between t, t w are yet unknown.In this case, we assume that the direction of the next observation Y t 1 will continue to go up down .2If the current observation Y t is neither a local maxima nor minima in a given window t − w, t .Denote the window distance between the current observation Y t and the most recent local maxima or minima point referred to as M t by w.The choice of a reference distance c 0 is important for our comparison.For the relative bias Y t and the window radius w 20 days , we take c 0 4 days one-fifth of the window radius w as the referent distance.If w ≥ c 0 , then M t is regarded as a high or low turning point, and if w < c 0 , we use the estimated local highlow level and up-down duration equation to predict the next local high turning point h, d or low turning point l, d − , and then the direction of local trend is determined by comparing the most recent observed local maxima minima point with the predicted one.If the most recent observed local high low level is greater less than the predicted one and the most recent up down duration greater the predicted one, then M t is viewed as a high low turning point, and vice versa.Using the above rules, we estimate the direction of the local trend.Denote the return of stock index by R t 1 log P t 1 − log P t and the change of relative bias Y t by r t 1 Y t 1 − Y t .Then, from Y t 1 log P t 1 − MA log P t , 20 , we have r t 1 log P t 1 − MA log P t , 20 − log P t − MA log P t−1 , 20 log P t 1 − log P t − MA log P t , 20 − MA log P t−1 , 20 R t 1 − MA R t , 20 .

Table 8 :
Forecast of the directions of trend and its test.

Table 9 :
The statistic DM and its test with window radius w 20.