Ranking: percent performance and volatility

When ranking a market analysts usually pick the percent performance since a given date as their key figure. If a stock has been at 100 last year and trades at 150 today, percent performance would show you a 50% gain (A). If another stock would only give a 30% gain (B), most people now would draw the conclusion that stock A would have been the better investment. But does this reflect reality?

Percent Performance and Volatility

In reality and as a trader I would never just buy and hold my position, I would always adjust my position size somehow related to the risk in it. I like instruments that rise smoothly, not the roller coaster ones which will only ruin my nerves. So ranking a market solely by percent performance is an useless statistic for me.

Lets continue with our example from above: if stock A, the one who made 50% has had a 10% volatility, and stock B, the 30% gainer, only had a 5% volatility, I surely would like to see stock B on top of my ranking list, and not the high vola but also high gain stock A.

Risking the same amount of money would have given me a bigger win with stock B.

Combining Performance and Volatility

To get stock B up in my ranking list I will have to combine the absolute gain with the market volatility in between. This can be done quite simple. Just add up the daily changes of the stock, normalized by market volatility.Have a look at the formula of this new indicator:

index(today)=index(yesterday)+(price(today)-price(yesterday))/(1.95*stdev(price(yesterday)-price(2 days ago),21))

In plain English: Today’s Vola Return Index equals yesterdays Vola Return Index plus the daily gain normalized by volatility

So if the index has been at 100, the volatility (as a 95% confidence interval over 21 days) is 1 and the stock made 2 points since yesterday, then today’s index would be 100 + 2/1 = 3

Vola Return Index vs. Percent Return Index

Lets have a look at a sample chart to compare the 2 ranking methods. I therefore picked the J.P.Morgan stock.

The upper indicator shows you a percent gain index. It sums up the daily percent gains of the stock movement, basically giving you an impression what you would have won when you would have kept your invested money constant.

The indicator on the bottom is the Vola Return Index. It represents your wins if you would have kept the risk invested into the stock constant. (=e.g. always invest 100$ on the 21 day 95%confidence interval of the daily returns)

Have a closer look at the differences of these two indicators up to October 2016. JPM is slightly up, and that`s why the percent change index is also in the positive area. During the same time the Vola Return Index just fluctuates around the zero line, as the volatility of JPM picked up during this period of time. To keep your risk invested constant over this period of time you would have downsized your position when JPMs volatility picked up, usually during a draw down. No good.

The same can be observed on the upper chart, showing the last months movements of the index. Right now, after the recent correction the percent change index is, like the JPM stock, up again. On the other side the Vola Return Index is still down, due to the rising volatility in JPM.

Vola Return Index – Ranking

Lets put this to a test and rank the 30 Dow Jones industrial stocks according to the percent return index and using my Vola Return Index as a comparison, calculated since 01/01/2015.

The first three stocks are the same, they got the highest vola and highest percent return. But JPM and Visa would get a different sorting. Just see how low the JPM Vola Index is, it would not be the 4th best stock.

Percent returns says JPM and Visa are abou the same, only the Vola Return Index shows that VISA would have been the better investment vehicle compared to JPM. But see for yourself on the chart…

Conclusion

Make sure your indicators show what you actually can do on the market. There is no use in just showing the percent gains of a stock if you trade some kind of VAR adjusted trading style.

Keeping you risk under control is one of the most important things in trading, and using the Vola Return Index instead of just plotting the percent performance can give you some key insights and keep you away from bad investment vehicles. Also have a look at this stock picking portfolio based on similar ideas.

 

Tradesignal Equilla Code for Vola Return Index:

 

 

Position sizing – the easy way to great performance

Working on your position sizing algorithm is an easy way to pimp an existing trading strategy. Today we have a look at an energy trading strategy and how the position sizing can influence the performance of the strategy.

The screenshot shows you the returns of the same trading strategy, trading the same markets, the same time frames and using the same parameters. The returns on the left side look nice, making money every year. The returns on the right side are somehow shaky, and you would have to love volatility of returns if you would think about trading this basket. The only difference between the basket on the right and on the left side is the position sizing.

The energy basket:

The basket trades German power, base and peak (yearly, quarterly, monthly), coal, gas, emissions. All instruments are traded on a daily and weekly time frame chart, using the same parameters. If the daily trading uses a 10-period parameter, the weekly trading would use a 10-week parameter. This limits the degrees of freedom I have when doing the strategy-time frame-parameter merge, thus minimizing the curve fitting trap.

Continue reading

EEX Phelix Base Yearly – Buy Wednesday, short Thursday?

When it comes to simple trading strategies, the day of the week is surely one of the best things to start with. That’s nothing new when it comes to equity markets. Everybody knows about the calendar effects, based on when the big funds get and invest their money. I do not know about any fundamental reason for the day-of-week effect in German power trading, but is seems to be a fruitful approach.

First of all I have to point out that it is not only the day of the week which is important. A strategy that just buys on Wednesdays and sells 1 or 2 days later would be doomed. But if you add a little filter which confirms the original idea, you will end up with a profitable trading strategy.

This filter will just be a confirmation of the expected move: If you suspect that Wednesday ignites a bullish movement, then wait until Thursday and only buy if the market exceeds Wednesdays high. Same for the short side, wait for a new low before you enter!

Have a look at the chart. The strategy shown buys on Thursdays if Wednesdays high is exceeded. The position is closed 2 days after the entry.

If you run a simple test which day of the week is the best to get ready for a long trade the day after then the next chart shows the return on account of the strategy using data from 2012 up to now: (exit one day after entry)

Continue reading

Bitcoin Trading Strategy – review of returns

Bitcoin is not as bullish as it used to be. May it be due to fundamental reasons like transaction cost and slow speed, or maybe the herd found a new playground, whatever it might be, it is a good time to have a look how my bitcoin trading strategy performed.

The bitcoin trading strategy uses two moving averages for the trend detection, and, when the averages say bullish, the strategy will buy if the market moves above it`s old swing high.

The position is protected with an exit at the last swing low and a 3% trailing stop.

But have a look how this simple strategy performed over the last two years:

Trading on a daily timeframe and investing 10000€ with each entry, the strategy managed to get more than a 100% return over the last 2 years.

Continue reading

The rhythm of the market

Usually we chart the market at it’s absolute level. But what, if we would just chart the net daily, weekly, monthly movement? Would this be an advantage? Would this show us new trading opportunities?

The short answer is: Yes! The trend is not everything, and it seems to be of some significance for further movements, if the market has moved more than x % from the beginning of the day, week or month.

But let’s have a look at some charts – and you will see how well it works:

The first chat is an intraday chart of EuroDollar, 8am-5pm CET. It shows you the daily net movement.

Continue reading

Opening Range Breakout

Das Opening Range Breakout System wurde im Magazin “Technical Analysis of Stocks&Commodities” im Juli 1994 besprochen, und wie es scheint, funktioniert es, zumindest ohne slippage uns Speasen, noch immer.

Ein Opening Range Breakout System von Perry Kaufmann.

Es wurde im Magazin “Technical Analysis of Stocks&Commodities” im Juli 1994 besprochen, und wie es scheint, funktioniert es noch immer. (ohne slippage) Auch Tony Crabel schrieb zu diesem Opening Breakout System im selben Magazin

Das System wartet die erste Handelsstunde ab und geht dann bei Erreichen eines neuen Hochs oder Tiefs  long oder short.  Die Einstiegs Order (Stop Buy / Stop Sell) wird nicht exakt auf das Hoch / Tief gelegt, sondern ein paar Punkte darüber /darunter. (hier 20 Ticks)

Tradesignal Programmierung des Opening Range Systems

Durch das laden von drei Zeitreihen, 10min, Stunden- und Tagesdaten gestaltet sich die Programmierung sehr einfach. Dies schränkt jedoch die Flexibilität deutlich ein.

Prinzipiell ist die Strategie der Afternoon Trader Strategie sehr ähnlich, sie weist auch mehr Flexibilität in der Programmierung auf. Auch der Artikel über Range Breaks im intraday Markt basiert auf einer ähnlichen Idee.

TSM(S) 1st hour breakout detail

Da die hier vorgestellte Systemversion  ursprünglich für dieTradestation 2000i in Easy Language geschrieben wurde, ist das Laden von 3 Zeitreihen ein wenig kompliziert gelöst. Aber es funktioniert.

Strategie Backtest mit adjustiertem DAX Future:

TSM(S) 1st hour breakout backtest

zum Opening Range Tradesignal Equilla Code Passwort “code”

Selbstlernende Handelssysteme

Ein jeder kennt die klassischen Indikatoren wie RSI oder Stochastic. Und ein jeder kennt die dazugehörigen Handelsanweisungen: Long, wenn überverkauft, Short wenn überkauft. Und zumindest im Lehrbuch funktioniert das auch. Aber wie sieht das ganze am realen Chart aus? Würden Sie dem Lehrbuch vertrauen und Ihren Kunden auch einen baldigen Kauf empfehlen wenn der RSI unter 20 liegt?

Testen anstatt zu studieren

Schön, wenn ein Indikator im Lehrbuch funktioniert, doch will ich hier ein Verfahren darstellen, bei dem der Indikator selbst angibt ob, wann und wie gut er funktioniert! Dazu habe ich mir für diesen Beitrag den RSI Indikator vorgenommen.

Zunächst wird der Wert des Indikators betrachtet, sowie, ob er steigt oder fällt. Mit diesen beiden Kriterien lässt sich der RSI einfach klassifizieren.

RSI Prognose

Dann erfolgt der eigentliche Backtest: Innerhalb der letzten 1000 Bars wird nun geschaut, wie sich der Markt bei einem gleichen Indikatorstand (zwischen 90 und 100) und Richtung (über Triggerlinie) verhalten hat.

 

Am Bild kam dies innerhalb der letzten 100 bars 36 mal vor. Dabei war die durchschnittliche Bewegung innerhalb der darauffolgenden 5 min DAX Futures Kerze -0.03%. Der RSI hat beim aktuellen Stand also eine negative Kurs Prognose.

Dass es auch nach dem nächsten bar statistisch nach unten geht, sieht man an den 5 Prognose Punkten am Chart. Sie zeigen, wie sich der Markt statistisch innerhalb der nächsten 5 Bars verhalten hat, unter der Bedingung, dass der RSI den aktuellen Stand und Richtung hatte.

Markt Performance als Indikator

Der obige Screenshot zeigt den Indikator und die Prognose für den kommenden bar (sowie die 4 darauf folgenden). Er zeigt jedoch nicht, wie sich diese Prognosen in der Vergangenheit verhalten haben, in welchen Bereichen der Indikator in der Vergangenheit seine höchste Aussagekraft hatte. Dies ist am nächsten Chart dargestellt.

RSI Prognose

Am Bild ist unter dem eigentlichen RSI seine aktuelle prognose für den nächsten Bar dargestellt. Um diese prognose ist ein Bollingerband gelegt, um so die Bereiche zu definieren, an welchen der RSI seine höchste Aussagekraft hat (= die stärkste Bewegung vorhersagt)

Continue reading

Reality vs. Robert W. Colby, CMT

Dont`t believe!

Papier ist geduldig, darum ist es oft besser wenn man selbst testet bevor man ein veröffentlichtes Handelssystem mit seinem Geld ausprobiert. Heute geht es hier um einen Handelssystem out of sample Test

Ein schönes Beispiel dafür ist eine Strategie aus Robert Colbys Buch “The Encyclopedia of Technical Market Indicators“, 2nd edition, 2003, page 791ff.

Darin wird ein einfaches moving average crossover Systeme vorgestellt, welches anscheinend seit beinahe 100 Jahren phänomenale Gewinne verspricht.

Hier eine Kopie aus dem Buch:

colby wma strategy

colby2

Tradesignal Backtest

Continue reading

.VIX .S&P500 Timing Strategie

Der VIX Index als Panikindikator

Der VIX Index stellt die implizite Volatität der S&P500 Aktienoptionen dar. Damit ist er ein sehr gutes Mass für das aktuelle Paniklevel des Marktes. Und Sie kennen sicher die Börsenweisheit “Kaufe, wenn die Kanonen donnern”. Diese beiden Dinge werden die Ausgangsbasis des hier vorgestellten Handelssystems für den S&P500 Index sein.

Sehen Sie sich zunächst den VIX und den  S&P500 Index an.

VIX Index vs S&P500 Index

Schnell erkennt man, wie der VIX die Panik des S&P darstellt. In Phasen in denen alle glauben dass alles ist in Ordnung ist, ist das Paniklevel niedrig. 2003-1006, ab 2012 bis heute. In Zeiten in denen alle an das Ende von Allem glauben, ist der VIX hoch. 2001, 2008, 2011…

Der VIX Index als Timing Indikator

Sieht man sich dies mit weniger Kompression an, sieht man, wie sich der VIX zum timing von Kaufentscheidungen im S&P500 nutzen lässt.

VIX S&P500 Timing

Ich habe hierzu das in der traders tool box veröffentlichte multiple timeframe Bollingerband auf den VIX angewandt. Es stellt ein 20-Perioden Bollingeband mit 2 Standardabweichungen auf täglichen und wöchentlichen Daten berechnet dar. An den markierten Tagen liegt nun der Close des VIX über den täglichen und wöchentlichen Bollingerband. Wie man schnell sieht, scheinen dies gute Einstiegspunkte zu sein. Kaufe, wenn die Kanonen donnern und alle die Panik haben…

Nicht in das fallende Messer zu greifen ist jedoch ebenfalls eine nicht zu vernachlässigende Börsenweisheit, und so kauft das System nicht sofort, wenn der VIX über den Bollingerbändern liegt, sondern wartet noch, bis auch der S&P500 über das gestrige Hoch steigt.

Im Anschluss wird die Position mit einem trailing stop von 2-5% oder einem profit target von 5-15% geschlossen.

VIX S&P500 Timing Strategie Backtest

Continue reading

Saisonale Muster: sell in may and go away…?

“Sell in may and go away” Wer kennt nicht diese alte Börsenregel, aber ist sie auch wirklich sinnvoll? Mit dem hier vorgestellten Indikator sind saisonale Muster leicht aufzuspüren und auf ihre Profitabilität zu überprüfen.

 

Saisonale Muster

Warum saisonale Muster erscheinen, dafür gibt es viele Erklärungen. Weizen ist zur Erntezeit einfach billiger zu haben als in den Monaten davor, der Gasverbrauch ist im Sommer niedriger als im Winter, gegen Ende des Jahres wird noch Geld veranlagt, am Anfang des Jahres abgezogen, all dies hat Auswirkungen auf den durchschnittlichen Preis in diesen Monaten.

Am ersten Chart sehen Sie die meinen seasonal Indikator. Er zeigt die durchschnittliche Monats Performance des DAX (seit 1987)  in Prozenten. Jeder Balken stellt einen Monat dar. Die beiden negativen Balken sind der August und September, der hohe rote Balken ist der April.

 

dax seasonal indikator

Sell in may and go away scheint im Dax also nicht so falsch zu sein, nach der guten Performance im April, ist der Mai durchschnittlich deutlich schlechter.

Backtest Seasonal Strategie

Continue reading

Afternoon Breakout Handelssystem

Wie schön wäre ein profitables Handelssystem für das man nur am Nachmittags ins Büro müsste…

Opening Range Breakout System am Nachmittag

Und solch ein System gibt es, es ist ein Klassiker der Spekulation mit System: Opening Range Breakout.

Das Handelssystem macht nichts anderes, als dass es bis zu einem bestimmten Zeitpunkt wartet, und wenn es danach ein neues Hoch oder Tief gibt, geht das System Long oder Short. Während der Wartezeit wird die Range definiert, bei einem Breakout aus der Range wird gehandelt.

 Euro afternoon range breakout

Hier ein Beispiel für den Euro:

Das System wartet bis 13:00 und geht dann intraday long da das Vormittagshoch überschritten wurde. Am Ende des Tages wird die Position geschlossen. Overnight ist das System nicht positioniert.

opening range breakout euro detail

opening range breakout euro detail

Handelssystem Backtest Euro Dollar

Das sieht nicht nur bei diesem Einzeltrade, sondern auch im Backtest interessant aus:

opening range breakout euro

opening range breakout euro

Solch ein Standardtrick der Handelssystementwicklung funktioniert natürlich nicht nur beim Euro und nicht nur um 13:00, sondern in vielen Märkten.

Ein Beispiel für den Gas Henry-hub Future an der NYMEX und den Tradesignal Handelssystem Code zum System finden Sie auf der Opening Range Breakout Seite.