Longwood Currency Trading





Current Picture Hi, I'm Peter Rose, Founder of Longwood Currency Trading, and welcome to LCT Blog Post 01/14/20 — Regression to the Mean Analysis in FOREX Trading.

One of the phenomena of trading is that of price reversion to the mean where, after a series of large and fast price moves, price will return to its underlying moving average line, i.e. its mean.

An example of Regression to the Mean in FOREX trading — or basically any financial or physical process — would be following price action (or other types of data points) with a moving average, say a 15 period simple moving average (sma).

If price were to decrease quickly, it would take time for the moving average to reflect this, i.e. it would lag behind the declining price. At some point, however, price would slow, and the moving average line would converge back to its 'normal' tracking distance above price.

Let's take a look at this diagrammatically.

As price moves 'normally', the moving average line tracks this movement, but is delayed (and is 'flatter') the greater the period of the moving average.


Current Picture
Figure 1: Moving average tracks close to 'normal' price movement.

If price begins to move down faster, then it will take time for the moving average to 'catch up'. In fact, if the price accelerates even more, the gap between it and the associated moving average gets larger.


Current Picture
Figure 2: Moving average lags behind rapidly decreasing price.

At some point, two things will occur that represent the regression to the mean, i.e. the mean being represented by that moving average line: price will begin to stop decreasing rapidly, and the moving average line will begin to 'catch up' to price.


Current Picture
Figure 3: Moving average and price begin to converge as price slows and moving average catches up.

The following Figure 4 shows several of these regression events in a 15 min EUR/USD chart.


Current Picture
Figure 4: Several of these regression events in a 15 min EUR/USD chart.

So, that's what regression to the mean looks like on a chart. But how would you use that in trading?

The obvious approach would be to wait until price has accelerated way below the moving average line, and begins to slow down. At that point, you could enter a long position, and close when price regresses back to that line.

In the case that price was trending upward, the gap between it and the moving average line would form below the rising price. Your approach would then be to go short when price stalls, and close when it falls back to the moving average line.

That appears to be a fairly straight forward strategy. However, — there's always a 'however', isn't there? — there are some issues to implementing this approach that you need to consider:

  • What time frame chart will you use?
  • What moving average periodicity will you use?
  • Should the moving average be simple or exponential?
  • Is there any correlation between the chart time frame, and the moving average periodicity you should use?
  • What criteria will you use to identify an appropriately sized extended price movement?
  • How do you calculate the expected size of the gap to determine that the price move has extended too far?
  • How do you define when price is slowing so that you can enter your order?
  • At what reversion level will you close your trade at?

There are two possible answers to each of those questions:

  • Through intuition.
  • Through mathematical calculation.

That's helpful, isn't it!

In my practice, and in my teaching: I always pick the simplest solution.

However, as a technically oriented person with a B.S. in Physics, almost a minor in math, and a 33 year career as a software engineer: I have the tools (and enjoy) finding the mathematical solutions to these sorts of issues.

If an issue can not be explained, and resolved through mathematics, then, as far as I'm concerned: it's all worthless random crap that I'm not going to concern myself with.

I'm going to discuss the intuitive approach to the solution of those issues in the following video, but cover some of the mathematical implications within the context of this post.

It's important for you to consider both, as intuitive trading is — and must be — based upon the laws of mathematics.

In addition to my video discussion of the more intuitive approach to the implementation of regression to the mean principles, I might suggest that you read Curtis Faith's book Trading From Your Gut. Faith was one of Richard Dennis' original Turtle Traders, and made something like $30 Million Dollars for Dennis during the 4 year period the program ran (or so he says). Regardless, it's a really good read, despite the fact that Faith's life imploded later.

You can watch my video concerning regression to the mean now if you haven't already seen it, or come back to it after I cook your brain with all the technical stuff that follows....




Video: Regression to the Mean Analysis in FOREX Trading

First, some basic back ground on regression to the mean, and why I choose to use this term as opposed to what many might consider a better approach: the concept of 'mean reversion' used in statistical finance.

The term 'Regression to the Mean' was first postulated around 1877 by Sir Francis Galton, an English Victorian era polymath. The principle is defined as

Regression to the Mean
In statistics, regression to the mean is the phenomenon that arises if a sample point of a random variable is extreme, a future point will be closer to the mean or average on further measurements.

Regression toward the mean simply says that, following an extreme random event, the next random event is likely to be less extreme. In no sense does the future event "compensate for" or "even out" the previous event, though this is assumed in the gambler's fallacy (and the variant law of averages).
— Wikipedia Regression to the mean

That just describes the diagrams I showed earlier. But it's a 'formal' statement of the term. Now, let's take a look at the other term, mean reversion, used in statistical finance:

Mean Reversion

Mean reversion is a financial term for the assumption that a stock's price will tend to move to the average price over time.

Using mean regression in stock price analysis involves both identifying the trading range for a stock and computing the average price using analytical techniques taking into account considerations such as earnings, etc.

....

In finance, the term "mean reversion" has a different meaning from "return or regression to the mean" in statistics. Jeremy Siegel uses the term "return to the mean" to describe a general principle, a financial time series in which "returns can be very unstable in the short run but very stable in the long run." Quantitatively, it is the standard deviation of average annual returns that declines faster than the inverse of the holding period, implying that the process is not a random walk, but that periods of lower returns are then followed by compensating periods of higher returns, for example in seasonal businesses.
— Wikipedia Mean Reversion

That probably would be a more precise method of discussing the topic of reversion.... But, it does limit the scope of the discussion to just financial instruments, whereas 'regression to the mean' is found in all of Nature. Thus, regression to the mean can be described better through the laws of physics than through just statistical analysis.

However.... that is just my opinion. As a 50 plus year practitioner of the martial arts where philosophy plays a huge role beyond that of simple punching and kicking, I find the solutions to life problems by studying the process of the Nature around me, and relating that to the issue.

Though the specific mathematical equation for determining this regression is complex, as shown in the below snapshot from the Wikipedia page, we really don't need to understand anything about that. I post it simply to show that regression to the mean has its foundation in mathematical derivation.


Current Picture
Figure 4: Mathematical equation for the calculation of regression to the mean.

Yeah, that's a mess, right? Yup....

Let's simplify this a little then. When viewing this process of reversion through the lens of regression to the mean, the physics of Hooke's Law provides an excellent metaphor.

Hooke's Law

Hooke's law is a law of physics that states that the force (F) needed to extend or compress a spring by some distance (x) scales linearly with respect to that distance — that is:

F = kx

where k is a constant factor characteristic of the spring (i.e., its stiffness), and x is small compared to the total possible deformation of the spring.

The law is named after 17th-century British physicist Robert Hooke. He first stated the law in 1676 as a Latin anagram.
— Wikipedia Hooke's Law

And that's a mess mathematically as well, as you'll see by taking a look at the citation link. But, in it's simplest form: Hooke's Law can just be expressed as

F = ‐kx

Descriptively, this equation demonstrates what happens when you pull a spring apart from its resting state, and then let it go.

Obviously, what happens is that the spring snaps back to its resting state. Traders who are astute to this law can see a similar behavior in the price snapping back to its mean, i.e. its resting state as defined by the current underlying moving average after undergoing an expansion away from that moving average.

However, like most classical mechanics, Hooke's Law only works within a limited frame of reference. Because no material can be compressed beyond a certain minimum size (or stretched beyond a maximum size) without some permanent deformation or change of state, it only applies so long as a limited amount of force or deformation is involved. In fact, many materials will noticeably deviate from Hooke's law well before those elastic limits are reached.

Okay, so now go back to all of those issues I brought up concerning using intuition as opposed to mathematical analysis to determining how to trade a price regression to the mean event. I'll repeat them here:

  • What time frame chart will you use?
  • What moving average periodicity will you use?
  • Should the moving average be simple or exponential?
  • Is there any correlation between the chart time frame, and the moving average periodicity you should use?
  • What criteria will you use to identify an appropriately sized extended price movement?
  • How do you calculate the expected size of the gap to determine that the price move has extended too far?
  • How do you define when price is slowing so that you can enter your order?
  • At what regression level will you close your trade at?

Based on what you now see as the simple physics of what happens when you stretch a spring, isn't it pretty easy to figure out how to look at this entire process of trading a regression to the mean event based on your trading intuition?

Sure it is. What's intuition based on? It's your experience, right?

So, use your experience watching these sorts of formations occurring to make your decisions in an intuitive manner. Look, it's the same way that a surfer decides which wave to catch, right?

It has nothing to do with the physics or mathematics of it. Rather, it's all about experience and making decisions — intuitive decisions — based on that experience.

So, having said that, just take another — but perhaps different — look at that example 15 minute EUR/USD chart, and let your intuition guide you in evaluating the different scenarios presented on the chart.


Current Picture
Figure 4: Several of these regression events in a 15 min EUR/USD chart.

Thanks for taking your time to read this post,
Peter

p.s. For more of my thoughts on trading in the FOREX foreign currency market, check out my YouTube channel for Longwood Currency Trading


Top

Trading foreign exchange on margin carries a high level of risk, and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with foreign exchange trading, and seek advice from an independent financial advisor if you have any doubts.

Longwood Currency Trading is not an investment advisor and is not registered with the U.S. Securities and Exchange Commission or the Financial Industry Regulatory Authority. Further, owners, employees, agents or representatives of the Longwood Currency Trading are not acting as investment advisors and might not be registered with the U.S. Securities and Exchange Commission or the Financial Industry Regulatory.

CFTC RULE 4.41 - HYPOTHETICAL OR SIMULATED PERFORMANCE RESULTS HAVE CERTAIN LIMITATIONS. UNLIKE AN ACTUAL PERFORMANCE RECORD, SIMULATED RESULTS DO NOT REPRESENT ACTUAL TRADING. ALSO, SINCE THE TRADES HAVE NOT BEEN EXECUTED, THE RESULTS MAY HAVE UNDER-OR-OVER COMPENSATED FOR THE IMPACT, IF ANY, OF CERTAIN MARKET FACTORS, SUCH AS LACK OF LIQUIDITY. SIMULATED TRADING PROGRAMS IN GENERAL ARE ALSO SUBJECT TO THE FACT THAT THEY ARE DESIGNED WITH THE BENEFIT OF HINDSIGHT. NO REPRESENTATION IS BEING MADE THAT ANY ACCOUNT WILL OR IS LIKELY TO ACHIEVE PROFIT OR LOSSES SIMILAR TO THOSE SHOWN.