When a Market Model’s Rhythm Doubles

Imagine watching a stock after a small price move. At first, the gap between the stock’s price and a reference value settles down. Now imagine a model in which traders respond more strongly to each move. The gap begins alternating between two levels. Turn the dial further, and the model can take four steps to repeat its pattern.

That change from one repeating pattern to another that takes twice as many steps is called period-doubling. Let’s see it happen and then ask what it might teach us about testing a trading rule.

One Dial, Three Patterns

Use the second chart in the Bifurcation Explorer below. It runs a teaching model called the logistic map. Each step uses the current value to calculate the next one. The slider changes the strength of the model’s response.

What the model does after the initial adjustment
Slider setting Long-run behavior Pattern to picture
2.90 The model settles at one value. A → A → A → A
3.20 The model alternates between two values. A → B → A → B
3.50 The model cycles through four values. A → B → C → D → A

Choose a setting and look at the orange vertical slice. The dots show the values the model keeps visiting. The letters in the table show the order in which those values repeat. At 3.50, the model needs four steps to come back to A, twice as many as at 3.20.

What Changes When a Pattern Doubles?

In the previous case study, a Hopf bifurcation showed how a repeating cycle can emerge in a model that changes continuously. The logistic map updates one step at a time. Just above a slider setting of 3, the steady value becomes unstable and the model settles into a two-step cycle. Just above about 3.449, that two-step cycle becomes unstable and the model settles into a four-step cycle.

The explorer’s first chart offers a related price example. At a 150% correction, the price crosses the $100 reference each round and the swings shrink. At 210%, the swings grow. The second chart shows what happens in a model with a nonlinear response. Over some ranges, the swings settle into a repeating sequence.

Test a Trading Assumption

Suppose a swing-trading rule assumes that a price dip usually reverses within two sessions. What would happen if the price made a second dip before recovering?

Imagine buying at $98 with a rule to exit at the close of the second session. In one hypothetical path, the next two closing prices are $99 and $100. The trade gains $2 per share. In another path, the next four closes are $99, $97, $99, and $100. The same exit rule produces a $1 loss per share before the later recovery. Both calculations exclude trading costs.

Those two price paths illustrate why the timing assumption matters. To test it with historical data, define the entry and exit rules before looking at the results. Apply them to all qualifying dips in the sample, including those that never recovered within the test window.

The math behind the explorer

The logistic map uses the rule x(next) = r × x(now) × (1 − x(now)). The slider controls r. The value x is a model quantity between 0 and 1.

For more on the model and its bifurcation diagram, see the UC Davis notes on bifurcation theory (PDF).

The explorer shows simulated behavior. The trading example is a separate hypothetical test of exit timing. The slider values belong to the logistic map.

Explore What Changes

Two short experiments show how turning one dial can change a model’s behavior.

Apply the idea. Pick one condition your strategy depends on, such as how quickly prices recover after a decline. For a retirement plan, try changing the annual withdrawal or the timing of a market decline. Compare the outcomes one change at a time.

Educational models. The charts use simulated values. They do not forecast prices or generate trading signals.


Discover more from Equations Sinkala

Subscribe to get the latest posts sent to your email.