Monday, October 31, 2016

How it feels when you lost your gains

Hello Radek here with the blog about automated trading. Last week bad things happened. Every of my single holding went down and I have lost all the profits which were building up there for past 4 months. Look to my account balance.
Account balance Oct 31 2016

Although it is emabarrasing to share this I think this is a part of the game. If you ever go to deal with stocks then better to be ready for this. Look to my positions and compare them from the previous article.
Positions Oct 31 2016
Almost everything went down. It feels sucks.

P.S. I am aware of the fact that this money is nothing for some people. Just scale this up 10, 100 or 1000 times if you want.

What I did when I saw this dropdown

1.
I thrown away few bad words and thought about selling everything and closing account. Or at least sell some of the biggest loosers at the moment. Then I am repeating to myself again to stick with strategy. If you don't start 'improving' the strategy decision by just emotions, then you have nothing.
 
2.
I started to google phrases like 'loosing in the stock market', 'how i lost money in stocks' and so on. I found interesting articles.

3.
I run the backtests of the strategy for past half a year and a past year.
Backtest Apr 30 - Oct 31 2016

Backtest Oct 30 2015 - Oct 31 2016

I analyzed the results. In the total there are bumps on the road, but most of the traded ended up with profit. I analyzed the results in more deep. For example so far 7 out of 9 positions were closed with profit. Then this gave me power to remember this is the long term strategy. Now here is the question whether the biases of back testing are going to kill it ow not. Honestly I have no clue. The only way to discover this is to let it run.

I also realized the good points. They are following:
  • I have no margin - that means broker can't close my position and everything might just recover (I am not a wizard, therefore the only I can do is hope).
  • Exit points are already set up.
  • Even if catastrophy happen and I loose everything, then this is not the end of life.

What I am going to do

1.
Let run the following strategy.

2.
Reiterate the stategy. Here is what I am going to focus on:
  • Look more closely to the fundamentals. So far most important for me was a debt. Now I will look more into market capital, income and sales.
  • Improve entry point. Now I have at least generated some data with real entry & exit points. Everything was in real trading backed up with at least some money. This allows me to go in and see what is going on. I have feeling that strategy is just entering too early. Now I can prove it with data.
3.
Keep studying.

Takeways

  1. Do not use leverage / margin
  2. Stick with strategy, not emotions
  3. Reiterate the strategy in regular times

I want hear from you

I would love to hear you opinion. If you ahve anything, please write it into the comment or write me privately on radek.hecl@gmail.com.

Thank you for reading!!!

Monday, October 24, 2016

October 17 - 21 2016

Hello Radek here. This is my blog about automated trading. Originally I planned to have a different topic. Then 2 events happened over the week which changed my mind. If you are involved in stocks, then there are definitelly situations which you better to be prepared for.

Broker error

On October 18 (Tueday) I opened up my account and found out theis list of positions.
Positions when broker has an error
If you don't see it well, then 4 out of 10 positions dropped to 0 resulting in the big loss - AMPE, CHMA, DNAI, TRXC. The only way how company can go to 0 is by bancrupcy. It is scarry, but very unlikely this to happen.

So I wrote to the broker and checked up how the prices looks like on other pages. And they were just fine. Later broker answered me that they had some technical issues (not sure whether this was on their side, or on the excahnge side). So I got relieved and next day everything went back to the normal.

I am posting this only to let you know that these things time to time happen. As a programmer I know that hardware just fails in the worst possible moment, unkonwn bugs suddenly pop up and people will just make an honest mistake time to time. There is no 100% way how to prevent these. Only what you can do is get ready for the fact and then handle it in the best possible way. And here I think SogoTrade did a great job. Therefore I am giving them my thumb up.

MGT delisting

Yes I have lost some money. My account from post before had $2855. Now look at that.
Accont balance Oct 24 2016
Yes, it is $2716 and difference is $139. What happened?
Everything happened over the night to the October 21. Company MGT was forcibly delisted from the exchange and price gaped from $2.36 per share to the $1.35 per share. In addition to that symbol changed from MGT to MGTI. I don't really understand the reason for changing symbol. It makes things just more complicated. If you want to read, here is full article on Investopedia.

What I am going to do about it?
Other than saying few bad words, I will do nothing. Just keep following the strategy as I did so far. Then in the half a year evaluation I will account for this situation and possibly update the strategy itself. And why this? Because of several reasons:
  1.  I put my trust into strategy. If I start adjusting the postitions on my own, then this would be equivalent to having no strategy. And trade without strategy is stupid.
  2. I set up everything in the way that even if there is a total crash I am not going to broke (sure I would be angry).
  3. Stock still might recover, never know.
What could possibly happen if I have a margin?
If I had a margin, then I would probably started to thinking about the end. Especially if this is my first trade. In such case broker would make a margin call, requesting more money or they would close the position. And I would be responsible for all the loses. On top of all these I would have to pay interest rate for having a margin. Pretty lot of money for a single person. Therefore I always recommend to open the pure cash accont.

How did broker handle the change?
I think they handled it in the way which is not correct. They just deleted MGT symbol from my position list and added MGTI assigning 0 cost. Look there.
Positions after MGT changed to MGTI
Result is that my total position summary is in the green numbers. Reality is that I am loosing the money. I would be actually more happy if they keep the cost I originall payed for MGT, which was $221. Then the numbers would reflect better reality.

Takeways

  1. Be ready for technical issues. If something look unrealistically wrong, then verify it from multiple sources.
  2. Be ready for bad market moves to happen. Sooner or later something will come.
  3. Leverage or margin is just another form of loan with all possible risks.

I want hear from you

I would love to hear you opinion. If you ahve anything, please write it into the comment or write me privately on radek.hecl@gmail.com.

Thank you for reading!!!

Monday, October 17, 2016

3 real usages of backtests



Hello Radek here. Today topic is backtesting. I want to tell you how to use them in real.

Typical sentences

There are thousands of pages which explains what is backtest. Please google about them on your own. Typically you will find the following:
  • What is it
  • General phrases
  • Introcuding biases which makes you think all this is useless
  • Neutral summary like it might be useful, but...
Therefore here I want to make that step further and give you concrete example of how I am using backtest.

How I use backtests

Look at the following chart.
Overall backtest result


This is an overal result of the strategy after the 1 year backtest. For eevery trading day there is a summary of all holdings + available cash. Here are use cases just for this chart:
  1. Knowing there is a chance that strategy will be profitable in the real market.
  2. Mental preparatioin for drop downs. You can see there is about 2 months and -30% possible drop down (you don't have exact numbers, but you can get the point). This exactly happened to me and I was able to survive dropdowns without panic just because I was ready for them.
Now let's move on with another chart. This is available capital. In other words the cash on the account at the end of each trading day.
Avalable capital
What does this say? Since the available cash at the end of the trading day is more than $10K, then I know there is a space for optimization. One way is to decrease the initial capital and use it in some other way. Other way is to simply increase the trade quantity to get percentage return. In either way it gives me oportunity for incremental step up.

Finally look at the sreenshot of some of the positions.
Portion of the positions
Note this is not the full list. But still you can see the points:
  1. Mental preparation for holding - answers the questions like, what are the typical profits? How many will end up with loss? What is expected holding period? And so on...
  2. Possible drill down for improvements

Takeways

I use backtests in the following ways:
  1. Select profitable startegies
  2. Mental preparation
  3. Incremental steps

I want hear from you

I would love to hear you opinion. If you ahve anything, please write it into the comment or write me privately on radek.hecl@gmail.com.

Thank you for reading!!!

Monday, October 10, 2016

Unsexy and profitable - Part 1

I have been running my system with paper trading since April 2016. Had real 2.500USD behind it from June 20 2016. Here is the status of the trading account as of October 7 2016.

Account status - October 7 2016
Total balance is ~14% gained in approximately 4 months. I understand this as a tiny experience. And still. This experience seems to be enough that many of my friends stopped to be affraid to talk about their investments. This opened a lot of discoveries. One of the discovery is that many of my friends tried some form of investment (only forms which involves risk are counted). And majority of them (I would say 90%, but don't have exact numbers) ended up by loosing money. Surprising to me was that it doesn't matter whether they made investment on their own or join a program in the big institution.

Now I want my friends to be doing well no matter what way they choose. That's why I decided to do this mini series. Whole point is to look closely to the numbers and discover the facts behind it.

You missed Google, you missed Facebook...

Really? Let's make a little excercise. Imagine you can get back in time and make $1000 USD investment in any company you want. Now I have picked up a few companies and here is how you would end up as of today (October 10 2016).

Google

The cheapest price is on August 1 2004 which was 50.99. Now the price is 785.94. The $1000 would become $15413. Everything over the period of about 12 years. Not bad. And ask yourself, would you be able to hold it over 2008 and 2009 when there was 50% drop down?

Facebook

The cheapest price is on August 27 2012 which was 18.06. Now the price is 130.24. The $1000 would become $7211. Everything over the period of about 4 years. Not bad.

Apple

The cheapest price is on June 1 1982 which was 0.23. Now the price is 116.05. The $1000 would become $504565. That's great result. The only little problem is that this single investment would run for 36 years providing still great oportunities to sell over the time.


Amazon

The cheapest price is on May 1 1997 which was 1.5. Now the price is 841.71. The $1000 would become $561140. That's also great result done over 19 years.


Pepsico

The cheapest price is on Sept 1 1974 which was 0.74. Now the price is 106.22. The $1000 would become $142189. That's also great result. Done over 42 years.

Summary

Here I have listed 5 super good companies. They made it well. And even that you would need to wait years or deades to get a solid number from $1000. Therefore I would do and expect the following if I had to invest into one copmany.
  • Buy cheap. Good start is less than $2 per share.
  • Consider the money as gone. Imagine you just made a big party.
  • Wait, even great companies takes years or decades.
  • Expect crisis and bubbles over the time.
  • Focus only on the price during exit. Prices in between doesn't matter.
Here I will stop for now. In the next part I will put this into relation with the trades I made recently.

    I want hear back from you

    I would love to hear you opinion. If you ahve anything, please write it into the comment or write me privately on radek.hecl@gmail.com.

    Thank you for reading