Abstract

This paper aims to extend the model developed by Tramontana et al. By adding trend followers who pay attention to the most recent observed price trend, we formulate a financial market model driven by a new two-dimensional discontinuous piecewise linear (PWL) map with three branches. The dynamic behavior of the mapping system is studied in two cases according to different trend followers’ expectation of the stock price. The existence and stability conditions of periodic attractors and other bounded attractors are derived by using qualitative and quantitative methods, theoretical analysis, and numerical simulation. When trend followers are neutral on the stock market, we present that the basin of locally attracting fixed points can be determined by the preimages of two borderlines. We also prove that one of its surprising features is that model simulations may appear to be chaotic, although only regular dynamics can emerge. When trend followers are bullish or bearish on the stock market, we present the existence conditions of attracting coexistence fixed point, globally and locally attracting fixed point, and periodic and other bounded attractors. The transversal homoclinic theory of flip saddle periodic point is applied to prove the existence of chaotic attractor. We also give the calculation methods of border collision bifurcation (BCB) curves. This paper advances our knowledge of discontinuous PWL systems and reveals the endogenous evolution of bubbles and crashes and excessive volatility in financial markets from a new perspective with new methods.

1. Introduction

Financial markets often experience severe bubbles and crashes and excessive volatility, which in turn can have a huge impact on the real economy. Prominent examples include the stock market crash of 1929, which led to the great depression, and the stock market crash of 2007, which led to the great recession. It is very important for financial regulation to find out the financial market change law so as to prevent financial crisis. Therefore, it has been widely followed to model and study financial markets. In recent years, it has become a research hot spot to focus on the micro foundation of financial market model based on heterogeneous agents. Empirical studies show that changes in stock market participants amplify boom-bust levels. Kindleberger and Aliber [1] argue that “during the stock market rally, there was a widespread sense among investors that ‘it’s time to get on the train before leaving the station.’ Shiller [2], likewise, reports that “investors, their confidence and expectations buoyed by past price increases, bid up speculative prices further, thereby enticing more investors to do the same, so that the cycle repeats again and again.” Therefore, it is an important task and main link of current financial regulation to make the influence of the expectation and behavior of financial market participants on the price of financial market clear. Our paper aims at adding to the burgeoning literature on agent-based financial market models which explain the dynamics of financial markets by highlighting the trading activity of their participants. Previous contributions in this field include the works by Day and Huang [3], Chiarella [4], De Grauwe et al. [5], Kirman [6], Lux [7], Brock and Hommes [8], LeBaron et al. [9], Farmer and Joshi [10], He and Li [11], and Gu [12]. According to this class of models, interactions between heterogeneous and boundedly rational speculators can generate complex endogenous price dynamics, including, for instance, the emergence of bubbles and crashes. More recent follow-up papers are surveyed by Hommes [13], LeBaron [13], Lux [14], Chiarella et al. [15], and Westerhoff [16].

Only a few one-dimensional PWL models in this exciting area have been proposed. For example, see the asset pricing models of Huang and Day [17], Day [18], Huang et al. [19], and Tramontana et al. [2023]. Piecewise linear maps may be regarded as an approximation of more complicated nonlinear maps. They often allow for a deeper analytical study of the underlying dynamical system and thus may offer novel interesting results about how financial markets function.

Tramontana et al. [22] have considered two types of chartists and fundamentalists and formulated a one-dimensional dynamical model with two branches. Type 1 chartists and type 1 fundamentalists are always active in the market and 2 chartists and type 2 fundamentalists only act with market entry levels. Tramontana et al. [22] argue in the end of their paper that “by assuming that chartists pay attention to the most recently observed price trend, the model would turn into a two-dimensional map.” In this paper, we incorporate trend followers into the model developed by Tramontana et al. and build a model involving five types of speculators. Type 1 and type 2 chartists believe in the persistence of bull and bear markets; type 1 and type 2 fundamentalists believe in mean reversion. While type 1 chartists and type 1 fundamentalists are always active in the market, type 2 chartists and type 2 fundamentalists are only active when prices are at least at a certain distance away from the fundamental value. Trend-following traders buy and sell based on recent price movements in the stock market. If the market price of the stock goes up, they will buy, and if the price goes down, they will sell. The speculators transactions are mediated by a market maker who also adjusts prices with respect to the excess demand. As it turns out, the dynamics of our model are driven by a 2-dimensional PWL map with three branches. It should also be noted that 2-dimensional (2D) discontinuous PWL maps with two borderlines have not been found yet. Despite their simplicity, they can, however, lead to surprising new insights. We hope that our paper will advance our knowledge of such maps.

Mathematical insights into a 2D discontinuous map are important since these kinds of systems have recently found a wide use in physical, engineering, economics, and social systems. It is well known that such dynamical systems defined by piecewise smooth functions exhibit several phenomena, which cannot occur in smooth systems, for example, BCB, sliding, and chattering [24]. The biggest characteristic is BCB occurring when a periodic point collides with a border. Although BCB theory for continuous PWL maps is well developed by Banerjee et al. [25], the results related to BCB theory for discontinuous maps are still in their infancy. A bifurcation theory for 1D discontinuous maps has been reported by Banerjee et al. [26], Gardini and Tramontana [27, 28], Guckenheimer and Holmes [29], Jain and Banerjee [30], and Makrooni et al. [31]. In the context of general -dimensional discontinuous maps, some important results related to the existence of period-1 orbits and period-2 orbits have recently been published by Hogan et al. [32] and Dutta et al. [33], respectively, and they have also been applied in practical systems by Bernardo et al. [34]. The bifurcation phenomena in a 2D PWL discontinuous map with one borderline have been investigated by Rakshit et al. [35] and Gu [12]. However, a PWL discontinuous map with two borderlines has not found any result. We shall investigate its rich dynamical behavior including the periodic and chaotic orbits. We also give the basin of attraction by the preimages of two borderlines and prove the existence of homoclinic chaos by transversal interactions between the stable and unstable manifolds of periodic points.

After these introductory remarks, the plan of the paper is as follows. Section 2 concerns the formulation of 2-dimensional discontinuous financial model. In Section 3, we describe some preliminary properties of its underlying dynamical system. In Section 4, we start to investigate the model in more detail in the case where trend followers are neutral on the stock market. The existence conditions of periodic attractors are derived and basins of locally attracting fixed point are given by the preimages of two borderlines. No chaotic attractor is proved by transverse homoclinic theory and Lyapunov exponent. In Section 5, we focus on investigating the model in more detail in the case where trend followers are bullish on the stock market. The existence conditions of periodic attractors are given, which include globally attracting fixed points, locally attracting fixed points, attracting coexistence fixed points, and bounded attractors. The existence of homoclinic chaos is proved by the stable and unstable manifolds of a flip saddle periodic point. Finally, Section 6 concludes the paper.

2. A Discontinuous Financial Market Model

We assume that a market maker mediates transactions out of equilibrium by providing or absorbing liquidity, depending on whether the excess demand is positive or negative. In addition to clearing the market, the market adjusts prices according to the following rule:where is the log price, is a positive price adjustment parameter, and are the orders of the five types’ speculators. Accordingly, excess buying drives the price up and excess selling drives it down. For simplicity, yet without loss of generality, we set scaling parameter equal to 1. Chartists believe in the persistence of bull and bear markets. The orders of type 1 chartists are therefore given bywhere is a positive reaction parameter and stands for the assets (constant) log fundamental value. Hence, type 1 chartists submit buying orders in bull markets and selling orders in bear markets.

The trading behavior of fundamentalists is exactly contrary to the trading behavior of chartists. We formalize the orders of type 1 fundamentalists bywhere is a positive reaction parameter. Clearly, (3) generates buying orders when the market is undervalued and generates selling orders when it is overvalued.

What type 1 chartists and type 1 fundamentalists have in common is that they are almost always active. Once they perceive a mispricing, they start trading. Type 2 chartists and type 2 fundamentalists are different from them in the sense that they only become active when the misalignment exceeds a certain critical threshold level. As already mentioned, we assume in our model an attention-based market entry of type 2 traders. The orders of type 2 chartists and type 2 fundamentalists are therefore represented byrespectively. Again, reaction parameters and are positive and the aforementioned threshold level is given by .

Trend followers follow the trend blindly. When prices rise, they will make a decision to buy in order to sell at higher prices in the future, so, to get the difference, the demand is proportional to the price rise. On the contrary, when prices fall, they sell shares to minimize losses. We thus formalize the orders placed by trend followers aswhere can take any values and captures some general kind of optimism and pessimism of trend followers while prices remain constant. If , then trend followers are optimistic or bullish, if , they become pessimistic or bearish, and if , they experience a hesitation and wait-and-see period or become neutral. is trading aggressiveness of trend followers. Inserting (2)–(5) into (1) yieldswhere . Note first that and can take any values. A positive (negative) value of means that type 1 chartists are more (less) aggressive than type 1 fundamentalists. Of course, the same interpretation holds for and type 2 speculators: a positive (negative) value of now means that type 2 chartists are more (less) aggressive than type 2 fundamentalists. It is convenient to express the model in terms of deviations from its fundamental value. Using auxiliary variable , (6) yields

Let us write ; then, (7) can be expressed as a two-dimensional discontinuous map:where denotes the unit-time advancement operator and . This is the map we explore in detail in the rest of the paper. In this paper, we analyze the map under the following assumption:

Assumption 1. The condition is assumed hereafter. All the results that follow rely on this assumption.

3. Some Preliminary Properties

The first property is that parameter is a scale variable.

Theorem 1. The map in (8) is topologically conjugated to the map in (9).

Proof. In fact, by using the change of variable and defining the aggregate parameter , our model in (8) becomesNote that can be positive, negative, or zero. However, the two cases with a positive and negative sign of are topologically conjugated to one another. We have the following.

Theorem 2. The map in (9) with is topologically conjugated with the same map with .

Proof. In fact, by using the change of variable , the map in (9) leads toThis property means that the results for also hold for the case . In economic scenarios, the price dynamics of bearish trend followers are the same as those of bullish trend followers. So, in this paper, we only analyze the following cases: (1) trend followers are neutral, that is, ; (2) trend followers are bullish, that is, . Model (9) can be expressed aswhere , , and is represented by a two-dimensional PWL discontinuous map with two discontinuity borders. The map has three branches: one locates in the middle of a region enclosed by two borders and (denoted by ), and the others locate outside of the region (denoted by ). One is on the left side of the range (denoted by ), and the other is on the right side of the range (denoted by ).

Theorem 3. The map in (11) (i.e., (9)) is an invertible map all over its domain except .

Proof. In fact, from (11), we havewhereThe map has three branches: one locates in the middle of a region enclosed by two borders and (denoted by ), and the others locate outside of the region (denoted by ). One is above the range (denoted by ), and the other is below the range (denoted by ). To prove that the map in (11) is invertible all over its domain, we rewrite (11) asBecause and , we have . Therefore, we have . The map in (11) is an invertible map all over its domain except .

4. The Dynamic Behavior of Model with Neutral Trend Followers

In this section, we study the dynamic behavior of trend followers at the stage of hesitation and wait-and-see when prices remain constant. Let us consider map in (9); for the particular case , the map becomes

We are first going to describe some simple properties of the map defined by (15). The first one is immediate from its structure. Performing the change of variable , the map is transformed into itself, which means that the phase space is symmetric with respect to the origin. We have so proved the following.

Theorem 4 (symmetry in the phase space). The map in (15) is invariant with respect to the change of variable . Thus, an attractor is symmetric with respect to the origin.
This result can be seen in Figure 1 obtained with and different : (a) and (b) .

Remark 1. In particular, a periodic orbit has points symmetric with respect to the origin, or is also a periodic orbit.
The origin is always fixed point of the system in (15). We denote the fixed point of middle subsystem () by and the fixed point of outer subsystem () by . always exists but does not exist. Since iterations from initial conditions in outer region are influenced by the “nonexistent” fixed point, which is called a “virtual” fixed point, the fixed points and are stable when their eigenvalues are less than 1 in magnitude. Thus, the fixed point is stable when the parameters satisfy the following condition:and the fixed point is stable when the parameters satisfy the following condition:We have the following.

Theorem 5 (divergence). Suppose that (or ); consider the map with () or (); then, any initial condition other than has a divergent trajectory.

Proof. If (or ), both fixed points and are regular (or flip) saddle. Although virtual saddle does not exist, its stable and unstable manifolds exist in outer region . Thus, any initial condition in the outer region has divergent trajectory along the unstable manifolds of , which also exist in the region . Trajectory starting from the range other than the stable manifold of is mapped in the region in a finite number of iterations along the unstable manifolds of , and then the trajectory will be divergent along the unstable manifolds of .
We can consider the regions in the parameter space , as summarized in Figure 2, where the regions (in light grey) with divergent dynamics are those already introduced in Theorem 5, while those associated with the stability of the fixed point in the origin (see the white regions in Figure 2) are described in the following.

Theorem 6 (globally attracting fixed point). Suppose that (or ); consider the map with (or ) and (or ); then, the fixed point in the origin is globally attracting.

Proof. In fact, if , then is a virtual attractor located in the middle region. So any initial condition in the range has a trajectory which, in a few iterations, enters the range from which the trajectory converges to the origin, since is an attractor if .
This leads to the central white region in Figure 2. While the dynamics in the green regions are what we will focus on next, first, in Figure 2(a) and in Figure 2(b) are described in the following.

Theorem 7 (locally attracting fixed point). Suppose that (or ); consider the map with (or ); then, the fixed point is attracting, with basin of attraction bounded by the preimages of both borders . Any initial condition in (complement of ) has a divergent trajectory along the unstable manifolds of .

Figure 3, obtained with , shows the preimages of borders . As the border of right side (denoted by ) for PWL map intersects with the borders of PWL map () at two points and , it has three preimages. One locates in the middle range , and the others locate in the regions and , respectively. That is, , , and are on the same line but with different locations. locates on the left of the region and the other on the right of the region . As the points and locate on the borders of , they thus can be considered as in the middle region or in outer region . They have two preimages, that is, and . Similarly, the border of left side (denoted by ) for PWL map has a similar situation. It has three preimages , , and having the same equation but with different locations. The intersections and also have two preimages, respectively, that is, and .

Although virtual saddle does not exist, its stable and unstable manifolds exist in outer region . So trajectory in outer region and away from the stable manifolds diverges along the unstable manifolds of saddle . From (15), we know that if , we have . This implies that any point in the green regions is mapped into the yellow regions (in regions ) after one iteration and thus has a divergent trajectory. As has a dual identity, as the middle fixed point, is an attractor, as an outer fixed point, and is a saddle point, the trajectory near the stable manifolds in the region may also converge to (see Figures 3 and 4).

Figures 4(a) and 4(b), obtained with , show the form process of basin of attraction . Only fourth-order preimages of are presented in Figure 4(a). As the third preimages and belong to the regions and , each has only one preimage: and , respectively. So the basin of attractor in the middle region is bounded by the eight segments and , which are the borders and their preimages. This can also be seen in Figures 4(c) and 4(d) obtained with . The boundary of basin is the envelope of the borders and all of their preimages; that is, , where . As shown in Figures 4(a) and 4(c), we can prove that any point in green regions and grey regions is mapped into the region after two and three iterations, respectively, and thus has divergent trajectory.

Now, we focus on the dynamics in green regions in Figure 2(a) and in Figure 2(b). Suppose that (or ); consider the map with (or ); is a flip (regular) saddle and is a virtual attractor (does not exist). Any trajectory starting in the range is mapped into the region due to the effect of a virtual attractor . Any trajectory starting in the range is mapped into the region after finite iterations along the unstable manifolds of (see Figure 5) and then comes back. This process continues and leads to the bounded invariant set. As we shall show later, this bounded invariant set may be periodic points or quasi-periodic trajectories and no chaotic orbit exists.

Let us first analyze the conditions leading to periodic dynamics. Let be a periodic symbol sequence with minimal period (i.e., for all ). For a periodic symbol sequence , let denote the iteration of following . A straightforward expansion leads towhere

First, we must note that , and by the basic property of the trace operator we have that , so . We can prove by induction that the trace is invariant under exchange sequence. For example, . Note that , so . Therefore, let and suppose that is the number of periodic points of -cycle with symbol sequence in the region and in the region and in the region ; then, . Let satisfy , Then we have and -cycle with symbolic sequence satisfies . It follows that the condition of -cycle can be satisfied by a point if 1 is the eigenvalue of . That is, the -cycle with symbolic sequence satisfies the following equation: . We have so proved the following.

Theorem 8 (cycles). Suppose that (or ); consider the map with (or ); then, is a periodic point of an -cycle with symbolic sequence if holds, where is the number of periodic points of the -cycle in the region and in the region and in the region , with . That is, at least one of the eigenvalues of is 1.

On the other hand, the fact that one of the eigenvalues is equal to 1 in the piecewise linear case means that the cycle cannot be a saddle. As , only one eigenvalue of -cycle is equal to 1, so the cycle is stable but is not attracting. As the existence of an invariant saddle is a precursor to chaotic dynamic behavior, there is no saddle periodic orbit except for the flip (or regular) saddle fixed point . However, there is no transversal homoclinic orbit between stable and unstable manifolds of saddle fixed point . In fact, for the case in Figure 2(a) (or in Figure 2(b)), is a flip (regular) saddle and its eigenvalues satisfy (). It is easy to calculate the local stable and unstable manifolds of . That is, and . As their slopes satisfy (), intersects with (the border of ) at and . It has three preimages: one is itself, and the others, denoted by and , locate outside of the range and intersect with at and . As all preimages of and always locate in the region (see Figure 5), consider the local unstable manifold is invariant under , and its image itself locates in the range . So cannot intersect with transversally, and there is no transversal homoclinic orbit between the stable and unstable manifolds of saddle fixed point . We conclude that system (15) has periodic points or quasi-periodic trajectories and no chaotic attractor. The numerical results are qualitatively similar to those that can be obtained in a chaotic regime (see Figure 6). However, no chaotic regime can exist here. At all parameter values in region of Figure 2(a) and in region of Figure 2(b), there are either periodic points or quasi-periodic trajectories but there are no chaotic trajectories. This fact can also be verified by calculating the Lyapunov exponent for . As shown in Figure 7, obtained with , negative Lyapunov exponent implies that no chaotic regime can exist.

5. The Dynamic Behavior of the Model with Optimistic or Bullish Trend Followers

In this section, we study the dynamic behavior of the model with optimistic or bullish trend followers. We first give the divergence conditions of map system in (9) and then present the existence and stability conditions of fixed points. The existence conditions of attracting coexistence fixed points, globally attracting fixed point, and attracting fixed point and saddle or are also presented. Finally, The existence and stability conditions of higher periodic attractors are investigated and BCB curves of period-2 are given. We find that there is homoclinic chaos in the case of which is quite different from that of .

5.1. Attracting Fixed Points and Divergence

From Theorem 2, the map in (9) with is topologically conjugated with the same map with . So we only study the case of in this section. From system (9), we can get the fixed pointswhich locate in the middle region and in the outer region , respectively. If the -component of satisfies , the fixed point exists; otherwise it does not. However, when the -component of satisfies , iterations from initial conditions in the middle region are influenced by the “nonexistent” fixed point, which is called a “virtual” fixed point and is denoted by . Similarly, when the -component of satisfies , the fixed point exists; else it is a virtual fixed point denoted by . So the existence regions of fixed points and arerespectively. The fixed points and are stable when their eigenvalues are less than 1 in magnitude. The stable conditions of fixed points (or ) and (or ) are (16) and (17), respectively (the same as the fixed points and in Section 4). Then, from the stable conditions (16) and (17) and the admissibilities (21) and (22) of the fixed points, we have the following theorems.

Theorem 9 (divergence). Consider the map with one of the following conditions:(1)Suppose that , if or (2)Suppose that if or or (3)Suppose that , if or (4)Suppose that , if or (5)Suppose that , if or or

Then, any initial condition other than and has a divergent trajectory.

Proof. First, we should know that if both and are saddle (regular or flip), regardless of whether they are admissible, then any initial condition other than and has a divergent trajectory. In fact, if the fixed point (or ) is a regular (or flip) saddle, trajectory starting from any initial condition in the middle region other than diverges to the outer region along the unstable manifolds of a saddle (or ) and then diverges along the unstable manifolds of a saddle (or ). Second, if (or ) is a saddle and is a virtual attractor, then any initial condition in the outer region other than has a divergent trajectory along the unstable manifolds of a saddle or ; any initial condition in the middle region also has a divergent trajectory. In fact, as the fixed point is not admissible (i.e., ) and thus locates in the region , even if is stable (i.e., ), trajectory starting from any initial condition in the middle region is also dragged out to the outer region and then diverges along the unstable manifolds of a saddle or .
For case (1), if , noting that , we have ; then, both (or ) and (or ) are flip saddles. If , then (or ) is a regular saddle. If , then (or ) is a regular saddle; if , noting that , we have . From (16) and (21), we know that is virtual attractor that locates in the region ; if , then (or ) is a flip saddle. Any initial condition other than or has a divergent trajectory.
For case (2), if , noting that , we have and ; then, (or ) is a regular saddle. If , is a virtual attractor; if , then is a regular saddle; if , then is a regular saddle. If , then (or ) is a regular saddle and (or ) is a flip saddle. If , noting that , we have ; then, both and (or ) are flip saddles (see the grey regions in Figure 8(a)).

For case (3), if , then (or ) is a regular saddle. Noting that , we have . If , then , and is a virtual attractor; if , then (or ) is a regular saddle. If , noting that , we have ; then, both and (or ) are flip saddles (see the grey regions in Figure 8(b)).

For case (4), if , noting that , we have ; then, both (or ) and (or ) are regular saddles; if , noting that , we have and . Then, both and (or ) are flip saddles. Trajectory starting from any initial condition other than and in the plane diverges along the unstable manifolds of saddle fixed points and (see the grey regions in Figure 9(a)).

For case (5), if or , the proof is the same as that of case (3). If , then (or ) is a flip saddle; we can consider the case as three cases: (a) , (b) , and (c) . For case (a), noting that , we have , and is a virtual attractor that locates in the region ; for case (b), we have ; then, is a virtual regular saddle; for case (c), we have ; then, is a regular saddle (see the grey regions in Figure 9(b)).

Theorem 10 (attracting fixed point). (1)Suppose that ; if , then the fixed point is an attractor(2)Suppose that ; if , then the fixed point is an attractor(3)Suppose that ; if , then the fixed point is an attractor

Proof. For case (1), if , considering (16) and (21), exists and is stable, so is an attractor. For case (2), if hold, considering (22), then exists. From , we have . Considering (17), is stable, so is an attractor. For case (3), if , noting that , then . Consider (17) and (22); then, exists and is stable, so is an attractor. Considering (21), if or , then exists. However, implies that is a regular saddle. If , then implies that . From Theorem 5, is a flip saddle.

Theorem 11 (attracting coexistence fixed point). Consider the map with one of the following conditions:(1)Suppose that and , if (2)Suppose that and , if

Then, the fixed points and are coexistence attractors.

Proof. For case (1), if , noting that , then and . Considering (17) and (21), always exists and is stable. Consider ; then, , which implies that exists, and , which implies that the line definitely intersects with at point and with at . Noting that , the -component of satisfies ; that is, locates in region bounded by the lines and . The fixed point is stable in the region bounded by , , and in the case of , or the segment , and lines , , and in the case of . The fixed points and are attractors coexisting in these regions. This can be seen in the dark grey region of Figure 8(a).
For case (2), if , noting that , then and . and thus are stable and exist. If , the fixed points and are attractors coexisting in the region bounded by , , , and ; if , the line definitely intersects with at . Noting that , locates in region bounded by the lines and . The attractors and coexist in the region bounded by , , , and (see the dark grey region in Figure 8(b)).
Now, first, we shall show that if the outer fixed point is an attractor and the middle fixed point is not an attractor, then trajectory starting from any initial condition in the plane converges to the fixed point . In fact, if is an attractor and is not an attractor, then there are three possibilities: (a) is an attractor and is an attractor situated in the outer region; (b) is an attractor and is a regular (flip) saddle situated in the middle region; (c) is an attractor and is a regular (flip) saddle situated in the outer region. For case (a), as the virtual attractor locates in the outer region, trajectory starting from any initial condition in middle region is dragged into the outer region and then converges to . For case (b), as is a saddle situated in the middle region, trajectory starting from any initial condition in middle region other than goes into the outer region along the unstable manifolds of and then converges to . For case (c), although is a saddle situated in the outer region, the unstable manifolds of still exist in the middle region. Trajectory starting from any initial condition in middle region also goes into the outer region along the unstable manifolds of and then converges to . Then, we shall show that if the outer fixed point is a virtual attractor and the middle fixed point is an attractor, then trajectory starting from any initial condition in the plane converges to the fixed point . In fact, as is an attractor situated in the middle region, trajectory starting from any initial condition in middle region converges to the fixed point . As the virtual attractor locates in the middle region, trajectory starting from any initial condition in outer region is dragged into the middle region and then converges to . Thus, we have the following theorem.

Theorem 12 (globally attracting fixed point). Consider the map with one of the following conditions:(1)Suppose that , if (2)Suppose that , if (3)Suppose that and , if (4)Suppose that and , if ; then, trajectory starting from any initial condition in the plane converges to the fixed point .Consider the map with one of the following conditions:(5)Suppose that , if (6)Suppose that and , if

Then, trajectory starting from any initial condition in the plane converges to the fixed point .

Proof. For case (1), noting that , if , then and . Thus, is an attractor and is a flip saddle (see the yellow region in Figure 8(a)).
For case (2), noting that , if , then . Thus, is an attractor and is a virtual attractor (see the yellow region in Figure 8(b)).
For case (3), noting that and , if , then . Thus, is an attractor. If , then , and is a virtual attractor. If , we can consider the case as two cases: (a) and (b) . For case (a), if , then is a virtual regular saddle; if , then is a virtual attractor. For case (b), , and is a regular saddle (see the yellow region in Figure 9(a)).
For case (4), noting that and , if , then . Thus, is an attractor. For the same reason as that in case (3), if , then is a virtual attractor; if , then is a virtual regular saddle; if , then is a regular saddle (see the yellow region in Figure 9(b)).
For case (5), noting that , if , then . Thus, is an attractor and is a virtual attractor (see the cyan region in Figure 8(b)).
For case (6), noting that and , if , then . Thus, is an attractor and is a virtual attractor (see the cyan region in Figure 9(a)).

Theorem 13 (attracting fixed point and saddle). Consider the map with one of the following conditions:(1)Suppose that , if (2)Suppose that and , if (3)Suppose that and , if

Then, the fixed point is an attractor and or is a saddle.

Proof. For case (1), if , then , and the fixed point is an attractor. Noting that , if , then is a regular saddle. If , then is a regular saddle (see the white region in Figure 8(a)).
For case (2), noting that and , if , then , and the fixed point is an attractor and is a flip saddle (see the white region in Figure 9(a)).
For case (3), if , then and . From (16) and (21), we know that the fixed point is an attractor. Noting that and , if , then and . From (17) and (22), we know that the fixed point is a flip saddle (see the white region in Figure 9(b)).
In all cases, the attractor is not globally attracting and has basins of attraction . Any initial condition in (complement of ) has a divergent trajectory along the unstable manifolds of or (see Figure 10).

5.2. Higher Periodic and Chaotic Attractors

Theorem 14 (periodic and other bounded attractors). Consider the map with one of the following conditions:(1)Suppose that and , if (2)Suppose that and , if (3)Suppose that and , if

Then, trajectory starting from any initial condition converges to periodic and other bounded attractors.

Proof. For case (1), noting that , if , then and . is attractor and locates in the middle region , and is a flip saddle. Any point in the outer region is attracted into the middle region by the attractor and then flips into the outer region along the unstable manifolds of flip saddle . When it crosses the border , it comes back to the middle region due to the effect of the attractor . This results in a bounded orbit that may be periodic, semiperiodic, or chaotic (see the green region in Figure 8).
For case (2), noting that and , if , thenConsidering (17) and (22), we know that is an attractor and locates in the middle region . If , from (23), we have . Considering (16) and (21), is an attractor and locates in the outer region ; if , we can consider the two cases (a) and (b) . Case (a) is similar to the case of , and both and are virtual attractors. Thus, any initial state in the outer region is dragged to the middle region due to the virtual attractor located in . However, as soon as it crosses , it is dragged to the outer region due to the virtual attractor located in . The state therefore gets locked between the two virtual attractors and that results in a bounded orbit. The same behavior is exhibited by an initial state in the middle region. This bounded orbit may be high periodic, semiperiodic, or chaotic. In case (b), if , then is a regular saddle; if , then is a virtual regular saddle. Noting that is a virtual attractor, trajectory starting from any initial state in the outer region is dragged to the virtual attractor located in the middle region; when it crosses , it is driven back toward the outer region along the unstable manifolds of regular saddle or . This also results in a bounded orbit that may be periodic, semiperiodic, or chaotic (see the green region in Figure 9(a)).
For case (3), if , noting that and , then we haveConsidering (17) and (22), we know that is an attractor and it locates in the middle region . If , from (24), then and . Considering (16) and (21), we know that is an attractor and it locates in the outer region ; if , we can consider the two cases (a) and (b) . We can prove, by the methods similar to (2), that trajectory starting from any initial condition converges to periodic and other bounded attractors (see the green region in Figure 9(b)).
Let us first analyze the conditions leading to periodic dynamics. Let be a periodic symbol sequence with minimal period (i.e., for all ). For a periodic symbol sequence , let denote the iteration of following . A straightforward expansion leads towhereLet denote the th shift permutation of (e.g., if , then ). The th point of an -cycle, denoted by , is a fixed point of . When is nonsingular, this point is unique. If , then, for each ,An -period is admissible if every point lies on the correct side of or on . The following formula results from manipulating (27):Admissibility is therefore determined by whether the absolute value of is greater than 1, as described in the following theorem.

Theorem 15 (admissibility). Suppose that . Then, the -period is an admissible periodic solution of (11) if and only ifif , thenand if , then

For example, if , then , and ; we have

Furthermore, since is an affine map, the -period is asymptotically stable if and only if the eigenvalues lie strictly inside the unit circle. For two-dimensional maps, it is well known that stability relates to Jury conditions [36]. Suppose that ; then, the -cycle is an asymptotically stable periodic solution of (11) if the following three conditions are satisfied:(1)(2)(3)

As we set, in this paper, and then ; condition (3) always holds. If there is equality in at least one of (1)-(2) but the other condition is satisfied, then the -period is stable (i.e., Lyapunov-stable) but not asymptotically stable. Equalities in (1)-(2) correspond to, in order, an eigenvalue of 1 and an eigenvalue of . Note that ; hence, the assumption that eliminates the possibility of equality in (1).

Stability conditions of period-2 with symbol sequences and arewhere .

The existence regions of period-2 with symbol sequences and are

We thus have the following theorem.

Theorem 16 (attracting period-2). Suppose that and , ifand then period-2 with symbol sequence is attractor.

Setting in (28), we get BCB curves of equations:denoted as and . The upper indexes and indicate that, at the border collision, the periodic point of the cycle collides with the discontinuity lines from the middle side and outer side, respectively.

We shall show that there is a chaotic orbit when in the mapping system (9), which is different from the case where . If a parameter set satisfies condition (1) in Theorem 14, is a virtual attractor and it locates in the middle region , and is a flip saddle. Then, any initial condition converges to a bounded attractor which may be a chaotic attractor. The Lyapunov exponent and one-dimensional bifurcation diagram of mapping system (9) with respect to parameter are shown in Figures 11(a) and 11(b), respectively. Figure 11 is obtained with , and . As shown in Figure 11(a), if , trajectory starting from initial condition may converge to a chaotic orbit. As shown in Figure 11(b), periodic, semiperiodic, or chaotic orbit may exist. Comparing the two figures, we know that although Lyapunov exponent is positive as , there may be a periodic orbit. Now we show that there is definitely a homoclinic chaos for a parameter set . As shown in Figure 12(a), is a flip saddle with eigenvalues and is a virtual attractor. The local stable and unstable manifolds of arerespectively. As intersects with the line (the border of map ) at , it has two images rooted on both sides of the line , which is the border of map . One is belonging to the unstable manifolds of and the other isintersecting with at . Similarly, as intersects with the line (the border of map ) at , it has two images rooted on both sides of the line , which is the border of map . One is belonging to the unstable manifolds of and the other is intersecting with at with the same equation of . As intersects with the line (the border of map ) at , it has two preimages rooted on both sides of the line , which is the border of map . One is belonging to the stable manifolds of and the other isintersecting with at . Similarly, as intersects with the line (the border of map ) at , it has two preimages rooted on both sides of the line , which is the border of map . One is belonging to the stable manifolds of and the other is intersecting with at with the same equation of . cannot intersect with the line ; in order to get the conditions of transversal homoclinic intersection between and , we suppose that intersects with the line at the point . As and , definitely intersects with at , and unstable manifolds of the flip saddle thus generate a chaotic attractor (see Figure 2(b)). We thus have the following theorem.

Theorem 17 (homoclinic chaos). Suppose that a parameter set satisfies condition (1) in Theorem 14; if and , then the map has chaotic orbits.

Suppose that a parameter set satisfies condition (3) in Theorem 14; if , then and are virtual attractors. If , is a virtual attractor and or is a regular saddle. Then, any initial condition converges to a bounded attractor which may be a chaotic attractor. The Lyapunov exponent and one-dimensional bifurcation diagram of mapping system (9) with respect to parameter are shown in Figure 3, obtained with , and . As shown in Figure 13(a), if , trajectory starting from initial condition may converge to a chaotic orbit. As shown in Figure 13(b), periodic, semiperiodic, or chaotic orbit may exist. Comparing the two figures, we know that although Lyapunov exponent is positive as , there may be a periodic orbit. Now we show that there is definitely a homoclinic chaos for a parameter set (see Figure 14(a)). By simple calculation, we have and with eigenvalues and . They are virtual attractors. However, we find that a period- is a flip saddle with symbol sequence . The eigenvalues of matrix evaluated at are . From (27), we have the coordinates of periodic point

The local stable and unstable manifolds of are

As intersects with the borderline atit has two preimages rooted on both sides of borderline at the points and , respectively. One is , and the other is . As intersects with the borderline atit has two preimages rooted on both sides of borderline at the points and , respectively. One is , and the other is . As intersects with the borderline at , it has two images rooted on both sides of borderline at the points and , respectively. One is , and the other is . As intersects with the borderline at , it has two images rooted on both sides of borderline at the points and , respectively. One is , and the other is . and are on the same line:

It intersects with and at two points and , respectively. If locates on the left side of and on the right side of , then and have transversal homoclinic intersections and unstable manifolds of the flip saddle periodic orbit and thus generate a chaotic attractor (see Figure 14(b)). We thus have the following theorem.

Theorem 18. (homoclinic chaos). Suppose that a parameter set satisfies condition (3) in Theorem 14; if and , then the map has chaotic orbits.

6. Summary and Conclusion

In this paper, we study a simple financial market model in which interactions between heterogeneous speculators can generate endogenous price dynamics. For two reasons, the model has a discontinuous piecewise linear shape: First, speculators (essentially) rely on linear technical and fundamental trading strategies. Second, while some of them are always active, others stop trading if the misalignment in the market drops below a certain threshold value. One advantage of the model’s functional form is that it allows an in-depth and comprehensive investigation of its properties. As we incorporate trend followers and chartists and fundamentalists with entry level, the model dynamics are driven by 2-dimensional discontinuous map with two borderlines. This is a new dynamic model that we have not seen yet. We hope that our analysis is also useful for the investigation of similar dynamical systems. As , if , then ; this implies that trend followers are neutral. The results for also hold for the case of due to the symmetry of the map . If , then trend followers are bullish () or bearish (). We investigate the dynamical behavior of two cases, and , respectively. For map (in the case of ), we give the conditions of having a divergent trajectory and the existence conditions of globally attracting fixed point. We present that the basins of locally attracting fixed point can be determined by the preimages of the borderlines of map . We also find that the existence condition of a nonzero -cycle is that at least one of its eigenvalues is 1. We finally prove that the map cannot have chaotic attractors by the transversal homoclinic theory and Lyapunov exponent. For map (in the case of ), we give the conditions of having a divergent trajectory and the existence conditions of attracting coexistence fixed point, globally attracting fixed point, and locally attracting fixed point. We present the existence conditions of higher periodic and other bounded attractors and the calculation methods of BCB curves. We also prove that the map has chaotic attractors by the transversal homoclinic intersection of flip saddle periodic point and Lyapunov exponent. The results show that the dynamical behavior of bullish or bearish trend followers is more complex than that of neutral ones.

From an economic point of view, our simple model can help us explain the emergence of bubbles and crashes and excessive volatility. If the state of our system is unstable, we think that stock market crash occurs. If the state of our system is quasi-periodic or chaotic, we think that stock market is in excessive volatility. As we have seen from Theorems 5 and 9, market crash can be caused by either type 1 chartists dominating type 1 fundamentalists () or two types of chartists dominating two types of fundamentalists (). Market crash can also be caused by either type 1 fundamentalists (strongly) dominating type 1 chartists () or two types of fundamentalists (strongly) dominating two types of chartists (). Additional trend followers are useful for market stability if type 1 chartists or two types of chartists are dominated by too aggressive type 1 fundamentalists or two types of fundamentalists in stock market. This subverts our intuitive impression. In fact, when fundamentalists of type 1 or two types of fundamentalists are more aggressive than chartists, that is, or , if trend followers participate in trade, then may hold. A financial market crash that occurs when is not likely to happen. So market stability requires the speculative behavior of trend followers to offset overly aggressive fundamentalists. Keeping financial markets stable requires regulators to limit excessive speculation by chartists or fundamentalists and to balance the speculation of fundamentalists with that of trend followers. Our main results may be summarized as follows:Bubbles and crashes of financial markets can be caused by one of chartists or fundamentalists (of two types) dominating another.The speculative behavior of trend followers can rein in bubbles and crashes of financial markets when fundamentalists (strongly) dominate chartists.Even when trend followers are neutral or bullish, prices may tend to be overly volatile; price dynamics with bullish trend followers are more complex than those with neutral trend followers, such as coexisting attractors and chaos. Excessive volatility is caused by the quasi-periodic phenomenon for model of financial markets with neutral trend followers. However, excessive volatility is caused by the chaotic phenomenon for model of financial markets with bullish trend followers.

Data Availability

The (MATLAB and IDMC software) data used to support the findings of this study are included within the supplementary information files.

Conflicts of Interest

The author declares that there are no potential conflicts of interest.

Acknowledgments

This research was financially supported by the Fundamental Research Funds for the Central Universities, South-Central University for Nationalities ([CZT18009]).

Supplementary Materials

This section includes the MATLAB and IDMC software data. (Supplementary Materials)