Skip to main content

Trend trading 1500 tickers

In my previous post I showed a Python script that gets all the ticker symbols from Yahoo and Google that Plus500.com has references to. The reason for me to get lists of those tickers is that Plus500 provides a wide range of CFDs that follow these ticker symbols. The plus500 platform is pretty basic, to say the least, so I do not want to use it for analysis, but just for execution. Using their platform is however an easy way to trade of of signals that are generated by algorithms that take daily price data from about 1500 symbols provided by Yahoo an Google finance. My idea was to backtest some trend- / swingtrading strategies on all the different sets of price data from all the different symbols. Then rank them based on sharpe ratio and winratio and then only trade the highest ranking ones.


The basic idea is simple. I only want to trade in the direction of the trend and only when there is a "strong" trend. I want to exit trades when the trend is done or stalling. Recognizing trends can be done in many ways. To keep things simple so that I can always manually verify signals I choose to implement an algo with 3 Simple Moving Averages. I believe this is a pretty common way for traders to look at the market. All I wanted to add to this is to have a market screening app that gives my signals when trade opportunities present themselves. I will then look at the opportunities and decide to act upon them or not. So there will be no automated trading here.

The rules for the screening are:

  • if price is above the long term moving average, we will only look for long trades
  • then if the short term moving average crosses up over the midterm moving average, we will buy on the next day open.
  • and when the short term moving average crosses down over the midterm moving average, we will exit the long position on the next day open.

And in reverse:

  • if price is below the long term moving average, we will only trade short (which is easy to do with Plus500's CFDs)
  • then if the short term moving average crosses down over the midterm moving average, we will sell on the next day open.
  • and when the short term moving average crosses up again over the midterm moving average, we will exit the long position on the next day open.
I backtested this strategy with the most commonly used movingaverages, like the 200 and 150 day moving average for the long term, 20 and 50 for the mid term and a range from 3 day to 14 day for the short term moving average. It took a couple of hours to run through all the backtests, but then I ended up with a list of tickers with combination of moving averages and a ranking based on how well the performance was in the past 2 years.

Then I filtered this list to show only combinations that had a substantial amount of trades and a sharpe of above 2.
Here are my results for the Yahoo tickerlist.
M1, m2 and m3 are the short, mid and long term simple moving averages, that gave optimum results, but I noticed that all the commonly used combinations of MAs gave more or less the same results. The screening therefore merely filters out which tickers have been doing well with this algo for the past 2 years. The idea is that many of them will continue to perform with this algo the coming year; many but not all. We will need to create a new ranking every month or every quarter to adjust to the markets. And if we implement proper money management we might have an edge be profitable trading this way.


Where to go from here? Well, I will still need to backtest on the Google Finance tickers data sets and combine the results into one ranking list. Then I will have to create a signal service, that will get and analyse the data everyday and sends me an email with trading entry suggestions. I will then paper trade on plus500 and share the results.

If all goes well I intend to trade this way on a live account at plus500.com and on a "normal" brokerage account trading options.

Popular posts from this blog

Invest like a trader

Here is my book: "Invest like a trader". I finally decided to create this book based on my blog and experience investing, trading and coding. It is an introduction to my view on investing. For the next few days you can get a free copy on Amazon: https://amzn.to/2JjwQqj

This book is for you if you are an investor looking to learn a more trading-like approach to investing. Buy and hold investing has become buy and pray investing, with countless sleepless nights. A more trading-like approach to investing puts you back into control of your investments and it can be a lot of fun. After reading this book you should be more able to build and grow your investment account consistently.


Link to the e-book: https://amzn.to/2JjwQqj
Let me know what you think after reading the book. You can contact me via email or on social media. Even better, you can leave a review on Amazon.

Why I am a trader and investor and why you might wanna be one too

I am a coder by day and trader by night! Coding is my day job. I am fully aware that only having a job will not allow me to provide for my family and myself consistently in the long run. This is because most of the western societies are setup in a way to be more and more disadvantageous towards the working middle class. I do not need to be a billionaire to be happy, but our society is becoming more and more binary. It seems that one can either be rich or poor, in which case I opt to be rich, or at least hedge myself against being poor. Trading and investing are my hedge against this trend.

The super rich and us Below are two videos from the BBC documentary "The Super Rich and Us". It clearly illustrates and explains the polarization of wealth distribution in our current society. Here is a catchy quote from the documentary:

There are the haves, the haves not and the haves yachts! But actually we seem to be heading for a society where there are only haves not and haves yachts

Why I buy Gold and Silver

I own crypto currencies, because I have come to the conclusion that money as we know it today is no longer sustainable. I have come to this conclusion during the crisis of 2008. At that time I had the intuition / the gut feeling something was wrong not only with our financial system, but more specifically with our money. It took a few years of researching and investigating until I figured it out. The thing is, part of me did not want to believe it was true. And for a long time I did not act upon the intuition and knowledge I had. That changed last year when I decided to put my money where my mouth is and I started to accumulate crypto currencies. Cryptos align perfectly with my expertises: coding and trading. So I went for it... And with success.

Now I want to diversify my holdings more by adding Gold and Silver to it. I buy Gold and Silver as a hedge or insurance against the undwindled money printing of all of the governments / central banks of the world. Money, or actually, currenc…