Should we use the 200 day EMA or SMA?

Has anyone turned this into a strategy and shown it beats passive holding?

Of course my dear friend, timing the market - with trend following techniques for instance - BEATS buy and hold, it has been proven thousands of times for the last 200 years!

Why?

Because the market is NOT random, period.
 
Has anyone specifically backtested this strategy? If it's in Kaufman's book can you paste a screenshot of this specific backtest (I don't have the book)

I'm confused.

You claim to have significant DSP experience but you can't set up a simple backtest like this? Just do it and figure out the results. It should be easy for you. Backtesting a simple MA strategy in Excel takes all of 10 minutes for a first pass.

I suggest you read "Trading Systems and Methods" by Perry Kaufman for example, a classic in the trading arena, you will find plenty of backtests about moving average, breakout and counter breakout systems.

This book is a desk reference. I like Kaufman and I think he did great work in that book but of the 10 or so strategies I backtested from there I found almost nothing to even build upon. I think the book should be updated with newer results before I'd recommend it to anyone else. There are some more complicated strategies I didn't touch (I'd imagine they may perform better) but I tend to subscribe to a note that Ernest Chan posted (and I'm paraphrasing here) "strategy books only contain strategies that the author no longer finds profitable".

Otherwise, if you have no basis to even start, it's quite possibly one of the best desk references of general strategy you could find and for me is often a source of initial inspiration if I haven't a clue what I'd like to test.
 
Pragmatic-Trader, read "Trend Following: How Great Traders Make Millions in Up or Down Markets" by Michael Covel, another best seller, it will show you how trend following beats buy and HOPE, by a large margin, while still reducing the drawdown.
 
This book is a desk reference. I like Kaufman and I think he did great work in that book but of the 10 or so strategies I backtested from there I found almost nothing to even build upon.

Really?

Could you post a couple of backtests and the programming code (in C++, Python or TradeStation)?
Thanks.

Talk to you later guys, I am currently watching GBP/USD (short at 1.2190), bye for now.

Over and out.
 
Last edited:
Really?

Could you post a couple of backtests and the programming code (in C++, Python or TradeStation)?
Thanks.

That was a year or so ago on MES. I don't generally keep results that perform poorly around for long. I'll take a note what didn't work so I can return to it later but the code generally gets tossed once I confirm what I was trying didn't work. I don't really put much value in the code - throwing together a quick backtest when a book gives you the steps is very quick in Python.
 
The true answer is that it doesn't matter. MAs, as traditionally used, do not work. The conventional wisdom is that a 200 day SMA has some value as a self fulfilling prophecy. Do not believe the conventional wisdom.

If you insist on going down the rabbit hole of moving averages, at least learn to view them as lowpass filters, and learn how to engineer them. John Ehlers is the man to study for filters in finance.

That is not true. 200ema on daily chart is really important on stocks and Emini-futures. You can backtest it yourself. Only thing you should do with it is use it as a target, never as an entry, although it helps finding s/r zones
 
@page { margin: 2cm } p { margin-bottom: 0.25cm; line-height: 115% }

The true answer is that it doesn't matter. MAs, as traditionally used, do not work. The conventional wisdom is that a 200 day SMA has some value as a self fulfilling prophecy. Do not believe the conventional wisdom. If you insist on going down the rabbit hole of moving averages, at least learn to view them as lowpass filters, and learn how to engineer them. John Ehlers is the man to study for filters in finance.

Moving averages work in the sense that they pick up recent trends in the market, and if those trends persist then a moving average will be profitable. In many markets trends do seem to persist, and therefore moving averages are profitable. There are many other different ways of detecting trends. Moving averages are as good as any of them, but are inferior to using an ensemble of different methods. Of course if markets don’t trend then they won’t work.

Momentum is rarely a strong enough effect that it will always work (single moving averages on one instrument average Sharpe Ratios of ~0.25). Therefore it’s always possible to find an instrument or time period when it doesn’t work, especially if you only test a single moving average like 200 days on a small set of instruments. However tests of multiple moving averages over long history and many different instruments show they have been profitable in the past. Then there are the still profitable scores of profitable hedge funds and traders (including myself) who use moving averages (almost always as part of a larger set of signals).

Numerous backtests (see all the Perry Kaufman studies for instance) have shown that simple moving averages perform slightly better than more "exotic" moving averages like the exponential moving averages, including - ironically - Perry Kaufman so called "adaptive moving average" (KAMA).

Anyway.

Normally if I had two competing signals I’d trade them both with some risk allocation, but with MA and EMA this would be a bit pointless since they are so similar. So a choice is inevitable.

But a ‘slight’ difference in performance isn’t statistically significant. Anyway, this isn’t the correct criteria. When two systems give very similar performance you should be looking at other factors, which brings me on to:

Put an exponential moving average on any chart and see how it changes after each bar.

It is a repaint indicator, I have lost a great deal of money with that sucker, that's why I only use simple moving averages.

I am just sharing my experience folks, trade as you see fit.

Never heard the term ‘repaint’ before, but I agree that it would make sense to avoid a signal which frequently reverses itself. This is likely to be more costly to trade. Essentially for a given level of profitability, we want the signal which has the lowest turnover.

(There is a subtle difference here between ‘binary’ traders who go long/short one unit of risk when the MA crosses and ‘continuous’ traders like myself who are always adjusting positions. ‘Binary’ traders don’t care about turnover if it doesn’t change the sign of the signal, i.e. there is no cross. However a signal with higher turnover is also likely to cause more multiple crosses in a short period)

However the SMA is likely to have a higher turnover than EMA! This isn’t very apparent on a 200 day SMA where both will be very smooth so you will need to look at a much shorter period (also multiple crosses, and thus 'repainting' are relatively rare with a 200 day EMA anyway).

First you have to compare like with like, and set up the EMA so it has the same half life as SMA. A 20 day EMA has a half life of about 7 days whereas a 20 day SMA has a half life of exactly 10 days. To match the 20 day SMA you’d need a 28 day EMA.

If you plot them you will see that the SMA is more jagged and less smooth than the EMA, and hence 'repainting' is much less likely. You can also backtest which will confirm this result.

Even for matching moving average lengths the EMA . The exponential weighting provides a much smoother transition as large returns come in and out of the ‘window’.

For this reason I’d choose to use the EMA over the SMA.

GAT
 
I just want to see what happens when price reaches there, in terms of tape, PA and volume, especially if there is confluence with support/resistance or round-numbers and we're already stretched in terms of daily range. If it looks like it's being respected and buyers are stepping up at the level then I might give it a deeper look.
This sounds very familiar:) If you treat MA as an area, not a line, would EMA vs. SMA make much difference on intra-day charts?
 
Back
Top