Showing posts with label system trading. Show all posts
Showing posts with label system trading. Show all posts

Wednesday, June 27, 2012

One Fallacy Trumps Another?


You know I love this movie Sholay. If you are not yet aware of this then you really have been lazy and not been reading my dailies! Well, the point is that there are lots of things that I love about this movie. The slow unfolding of the story. The intermittent high voltage action which can hold its own even after 37 years of improvements in technology. The vast landscape. The classic cops vs bandits, the revenge drama and guy camaraderie mixed together into a heady cocktail. Nevertheless, in all this excellence, one thing never fails to baffle me. Why does Dharmendra never call Heads?

I mean he thinks that the coin is fair. The coin always comes up Heads in his experience. Why does he never call Head in at least one of the several times the coin is tossed in the film? Why does he keep agreeing to "Tail" unless he believes that after so many Heads this time it will definitely be "Tails"?

This same question was asked in a study conducted even among so called highly qualified finance professionals. They were asked to bet in multiples of one dollar on the toss of a fair coin. If they were right they would get the amount they bet. The way the game is structured, if it is played often enough then the player would end with the same amount he started out with. What the researchers were interested in seeing was the players reaction after a run of Heads or Tails was encountered.

The result was interesting. After say four Heads, players were willing to bet higher amounts on Tails and vice versa after a run of Tails. They were succumbing to the classic gamblers fallacy of assuming that what holds true for large numbers affects the individual try. That is to say that over a period of large number of attempts, a fair coin should throw up roughly 50% Heads. But that does not have to effect the result of the individual throw of the coin. After 4 heads the 5th throw can also land Heads with a 50% probability. The chances of a Tail does not increase.

This classic mistake is also seen in investing. While growth, returns or even prices of the entire class of stocks will show a mean reverting trend i.e periods of above average returns as a whole could see periods of below average returns as a whole, this principle cannot be used to create a mean reverting strategy for the individual stock. Just because a stock showed a large growth one month does not necessarily make it ripe for slower growth the next month. This strategy can only be used over the entire class in general i.e. for maybe a portfolio and not for a stock in particular. So using Mean Reversion for an individual stock or index could be a losing proposition.

I on the other hand, do not succumb to this gamblers fallacy. Never. I, if anything, succumb to the (probable) fallacy of believing in Trends. If I see a run of 3 Heads, then I might start assuming that there is a Trend somewhere and start betting more on Heads until a reverse trend of Tails is seen. If the coin is truly fair ( or in the case of my trading, if the market is truly random) then I should lose money using this strategy.

The fact that I have not might just mean one thing...No.. not that the market is not random and that it trends. I am under no illusions that my trading proves Trend following works. The fact that my trading has been profitable might just mean that I am lucky to have more people succumbing to the gamblers fallacy and betting on mean reversion than on Trends and until that remains the case, I might continue to make money believing in Trends.

I continue to be out of the market. I will go long above 5203 and sell short below 5030.

Wednesday, June 20, 2012

Long Live Sloth


We all know about Loss Aversion. Faced with a choice between a sure gain of Rs 100 and a toss of a (fair) coin which can increase the gain to Rs 200 or bring it down to zero, most people would choose to go with the first option that is retain the Rs 100. When the choice is between a sure loss of Rs 100 and a toss of a coin which can reduce the loss to zero or increase it to Rs 200, most people would choose to toss the coin. The point is most people will avoid taking risk which could reduce a profit but would take the same risk to avoid making a loss even if it means taking a larger loss in the process.

This effect is seen in the investment world too when an investment that is making a loss is held on in the hope of reducing the loss whereas a profitable investment is sold to ensure that the profits do not evaporate.

Now, any trader worth his salt knows that this is a sure way to ensure that his results are at best sub optimal and at worst loss making. Trend following for eg. involves the ability to give up a lot of the MTM profits to ensure that a higher profit is made. It also involves taking small losses regularly in order to profit from that one large trended move. This goes completely against the grain of normal human behavior as we have just discussed. Just knowing about this, however, is not enough to prevent this bias from working its magic on the trader. After all, this drive, this bias, works at the subconscious level and to work around it requires a lot of self control and discipline. The question is whether there is anything that can be done to help mitigate the effects of this bias and to strengthen the traders resolve.

My solution typically revolves around my MIS. Suppose I already have a booked profit for the year of 50lacs (wishful thinking but I can always indulge in it) and I buy 10000 nifty futures at 5000. Suppose I also know that my system will require me to sell it if Nifty touches 4900 that is a loss of 100 points, then my MIS will look like this.
           Booked Profit/loss   50  lacs
Minus  Potential Loss         10  lacs
Total    Profit/loss                40 lacs

Even when the trade starts becoming profitable I do not include the MTM profits in my MIS. If the Nifty goes to 5200 and I am Rs 20 lacs in the money, I do not want to see it in my MIS. The MIS remains the same as it was on Day1. The Nifty might drift lower to 5100 and I will still not worry about the MTM profit fall from Rs 20 lacs to Rs 10 lacs because I do not see it in the MIS. If I had shown the Rs 20 lacs MTM profit in my MIS I would have already been counting on that profit and would have been wanting to protect it. Only after I finally get out of my trade say at 5500 (again wishful thinking) and book a Rs 50 lac profit will the actual profit or loss be changed to Rs 1 crore and the potential loss be reset to zero.

The main idea is that the potential loss on the trade is reduced from the booked profit loss from day 1 of the trade. This way, after the initial pain of seeing the booked profit reduce, I do not have to see a change in my profit/loss statement on a daily basis and thus the powerful Loss aversion bias does not hold its sway on me. This helps me to sell my trade at a loss when it hits my stoploss levels without having to wait and hope for the loss to reduce. Similarly, I am willing to let the profits run because I do not show the MTM profits in my MTM and try to be consciously unaware of the unbooked profits in my trade.

While, it looks like a good idea and worth emulating, people who know me will question whether there is more to it than meets the eye. They will notice that this method requires me to make no changes to the MIS for all the days that I am in the trade. They will notice that doing nothing is my favorite passtime. They will then come to the conclusion that this idea must have struck me because of my inherent sloth and laziness. For the third day in a row my weakness has become my strength and helps me beat normal human biases! I guess very soon I will have to stop calling laziness as a weakness.

After talking about profits and losses I have to admit that I am short on the Nifty from 5045 levels and will cut the short positions and go long above 5175.

Tuesday, June 19, 2012

The Siren Song of New Relationships


In the course of my daily meditations during the market hours (when people in the office think I have closed my eyes and dozed off, I am actually meditating on the various issues affecting traders) I managed to completely identify and define a Law which I, in my inimitable unimaginative way, call My Law of Relationships.

Do you remember the first time you were in a relationship? The anticipation of the meeting with your loved one? The racing of the pulse? The overall feeling of lightness during the time spent with your partner? The general sense of well being and of being alive. That was an incredible feeling wasn't it? But that doesn't last. As the relationship stabilises the emotions die down and the feelings associated with it changes from anticipation and exhilaration to comfort and mellowness.

So My Law of Relationships states that stability in a relationship is a double edged sword. As stability increases so does comfort but exhilaration reduces. The consequence of this law is that if one falls in love with the sense of exhilaration then one has no choice but to destabilise the relationship because the easiest way to find exhilaration is to find another relationship. So there are some action addicts who all their life chases new  relationships.

However, this is not a note on pop psychology. It is a note about traders and markets. The key connection is that The Law of Relationships works even on the Relationships that Traders have with their methodologies. At first when a trader learns about a new method, he goes through the same gamut of emotions not unlike a new human relationship. Then as the comfort with the method increases the relationship stabilises.

But as in human relationships, with stability comes boredom. The sense that there is nothing new as one waits for the methodology to trigger a buy or a sell in the markets. That is when, if you do not like me know how to close your eyes and.... let us say...meditate during market hours, you can fall prey to the need for action and exhilaration. That is when you are most susceptible to try new relationships with new methods.

While trying out new methods is not a problem, it could turn into one if one, in this eternal quest for action,  is forever in search of new methodologies to trade. The success of a trader depends completely on how stable is his methodology and how comfortable he is with it. Continuously changing methodologies to fit in with the latest trend is hardly the path to success

In my own case, it is not that I do not suffer from a need for exhilaration. It is not that I am not tempted to change methodologies. That is when, once again,(check June 12 "In defense of inaction" for another instance) my weakness i.e. laziness becomes my strength. Changing methodologies requires some work. A little back testing, a little research and some thought, all of which requires effort. Why expend it when one can continue with what one has? Thank God for my weaknesses!

This methodology of mine got me to sell yesterday when Nifty broke below 5045. I will cut my short positions and go long only above 5175.

Friday, June 15, 2012

Trend Following is Dead?


Never kick a man when he is down. If you do then make sure you finish him. You know that I use a trend following method to trade. The last few months have been difficult and I am hardly in a mood to listen to someone telling me how I should be giving up on my "forever doomed to fail methods" and try and learn something that works for a change. That is precisely what my friend did.

"When will you realise that the days of trend following are long over? Trends are dead. Try and learn some new methods instead like Value Investing or Growth stocks." I felt elated because his belief that Trend Following was dead meant that a turnaround for Trend Following was just around the corner! He continued "I am your friend. Why don't you do a honest job like selling equities or something. I am sure we can find a good place for you, If nothing else, the new methodologies will help you make money in your trading."

This was beginning to become less fun by the minute. He had committed two heinous crimes. He had berated Trend Following and he was using job and selling equities in the same sentence! I mean I have nothing against equity sales as long as you do not call it a job! I replied sarcastically "Thanks man. You opened my eyes to better possibilities. You mean all I have to do is to learn Value and Growth methodologies to make money in the market?" The sarcasm was lost on him."Yes" he said, "Do it and over the long term you will make money" I continued in the same note "You must have used Value investing to make money in the last few months?" I was getting through to him now. "Common man" he said, "Don't be a jerk. The markets have moved down in the last few months. How can I make money then?"

"You mean the market has to move up after you buy using your Value Methodology for you to make money?" Before he could reply, I emphasised "The methodology on its own does not make money? The market has to move up?" He was now getting irritated. "Of course, it has to move up. Otherwise how can I make money?" I continued drilling home the point "You mean that the market has to TREND up after you BUY for you to make money?" He made a last ditch attempt to recover lost ground "Not trend up. Just go up." "Go up, trend up, same difference" I said. It was now his turn to mumble "I cannot understand how you cannot get the difference between trend up and go up. It is very different.

I decided to close the discussion with "Finally it boils down to this. You will make money in the market only if the market moves in your direction after you put on the trade using whatever methodology. Is it not right?" He had to agree to this statement. "If that is the case, then it does not matter so much what method you use. The result of your action is dependent on the market trending in your direction is it not? I use trend following to get into the stock. You use Value. Both make money only when the market decides to give it to us. We can only be consistent with our methodology. Is it not right?"

I must have lost a friend with that outburst because he remarked "Now I know, why you can never succeed. You can never listen to good advice. I had heard of a good job opening in sales. All you had to do was to pick up some jargon and learn about a few sectors. Now you can stew in your own trading mess!"

After losing friends like him along the way, I hope Trend Following finally revives from its death throes and I have a successful year. Then all the lost friends and more will be back!

Currently though, the market seems to be in no mood to oblige. Trends are getting shorter. I went long at 4927. But my system will require me to cut my long positions and go short below 5045 which is not very far from here!

Monday, June 11, 2012

In defense of inaction


Imagine you are stuck in the extreme right lane in slow grinding Mumbai traffic. Almost on cue, the lanes on the left start moving while your lane is still stuck. You know that the traffic jam will ensure that finally even those lanes stop or that your lane will start moving along with the rest. Question is despite knowing this, will you cut into the left lane or at least be tempted to do so?

Imagine you are the coach of the Indian cricket team. You have selected the best 11 for two tests but have lost both of them. Will you be tempted to change the team for the third test because the current 11 has failed you?

Imagine you are a fund manager. You have done your home work and have selected what you think are the best possible stocks from your universe. But for two consecutive months your fund has lagged other funds. Your performance for the last two months is so bad that you are in the bottom quartile amongst peers. Would you be tempted to make some changes to your portfolio?

Imagine you are a system trader who has done extensive work at the system selection stage to ensure that you have the best possible system at your disposal. Unfortunately, the last four trades have been loss making. Will you be tempted to make some changes to the system or discard it in favor of another which would have avoided those loss making trades or actually profited in the last few trades?

If your answer to at least 3 of the questions is an unqualified NO--that you will not be tempted then congratulate yourself. You are either an advanced cyborg, a man machine, who has learned to control his emotions a la Spock of Star Trek or you are an inveterate liar who can convincingly lie to not only the world but also to yourself. Pick your choice.

The reason I say this is because the propensity for action is inbuilt in human nature. When the going is not so good, there is a great deal of pressure both external as well as internal to act and make changes. It is always better  to have done something and failed than to continue to do the same thing that has failed in the recent past.(Especially so if your inaction is likely to be questioned after the event i.e with the benefit of hindsight)

A cricket coach for eg. will be ridiculed if he selected the same team for the third Test and again lost. His rational logic that he selected the best 11 would not hold any water. On the other hand if he made 4 changes and still lost, there would be less regret both among the paying public as well within himself because it would feel as if he did take some action to change a bad situation. Nobody will question whether the same 11 of the first two tests could have turned around the situation in the third Test and won it. Nobody will question the decision to change 4 players because the recent performance of the 11 was bad.

This bias towards action is not always optimal specially when the initial plan of action was an informed choice-a well thought out decision. But invariably we will find ourselves attracted to choosing some action, any action, over informed inaction.

I, on the other hand, am hardly ever tempted to take action. Both to cut lanes when stuck in traffic or to change systems even when they are not working. No, that does not make me a cyborg as I had said earlier in my note. In my case, it is laziness that trumps over this incredible propensity to action. Looks like my weakness has now become my strength!

Now that you have read this beautiful note till here and appreciated it, I suggest, just this once, that you fall prey to the bias for action. Pick up the phone or type on berg and quickly send MAPE an order-even if it means doing some unnecessary changes to your portfolio!

Oh and just so you know, I am long and will do NOTHING until Nifty futures trades below 4896 at which point, I will cut my long positions and go short!

Wednesday, June 6, 2012

Kung Fu Panda Again



I love Kung Fu Panda. Completely and totally. I must have watched it umpteen times and can still watch it some more. (I need to check whether there is a hint of Asperger syndrome somewhere) Be that as it may, I do think that this movie is not just for the kids and has something in it for the adults too. I mean what is not to like in a movie where the heroine (the Tigress) is fighting fit and can kick some serious a**e? Talking about a kickass heroine, Trinity in Matrix was not half bad too.

But then that is digressing. To come to the point, I think there is this one thing in that movie that is worth remembering. This movie is about the Dragon Scroll. The holder of the scroll will be privy to a secret so potent that he will become invincible in Kung Fu. Tai Lang the villain is desperate to get the scroll but Oogway the Turtle guru decides that our Panda Po is the Dragon Warrior and should have the scroll when he is ready to receive it.

We all know how it works. Master Shifu teaches Po Kung Fu, keeping in mind the unique qualities of the Panda-especially his love for food. When the teaching is in sync with what Po is, he works hard to justify his status as the Dragon Warrior. Finally when Master Shifu hands him the scroll, he opens it to only find that there is no secret inside. It is a blank sheet of paper. For a moment he wonders what this is all about. But since he is ready to receive the wisdom, it dawns on him that there is, after all, no SECRET out there. The Dragon Scroll was only given to those who were ready to see it and receive its meaning. The meaning that we can search outside all we want for the SECRET and we will not find it. The SECRET lies inside us.

This is also the key in trading and investing. Traders go after one system after another in search of the SECRET.. the Holy Grail that can only lead to winning trades. They are forever in search of the next new thing. After learning about the basics they move on to learning about candlesticks, point and figure charts, Elliot Wave analysis or the next new investment parameter like EBIDTA, EVA. If that was not enough, they are also forever reading magazines, newspapers, watching business channels (no, not on mute, unlike me) and in general spending 25 hours in a 24 hour day trying to ensure their success in trading.

You get the drift? There is no time to stand and stare. No time to look within ourself and find out what is it that stops us from getting the best out of the current system or the method that we are following. There is no SECRET method out there. Instead the key to achieving our potential as a trader is understanding ourself. We can succeed with any half decent system as long as it in sync with what we are as a person.

Either we mold our way of thinking to fit the systems requirement or find a system that fits with our way of looking at things. Once that is done, the rest is easy. Of course this then leads to another problem viz. how do we spend the rest of the time in the day when we do not need to keep searching outside to get the next best thing! I do it by writing and watching CNBC on mute. You decide what works for you!

BTW, I am long now on the Nifty from 4927 levels and will cut my long position and go short only below 4859. Hopefully that will not happen and we will continue to trade higher!

Wednesday, May 23, 2012

BULL or BEAR?

Being a trader and a part of the equity markets has a huge advantage. No I am not referring to my income which these days is not something worth talking about. It is about the fact that this acts like a good way to start a conversation. Usually any person I get introduced to will exchange pleasantries and then ask "What do you do for a living?" and I will be like "I trade the equity markets". Then depending on the his interest in the markets, the conversation can take any of the many turns. He can either quickly slide away, fearing that I will pitch him some mutual fund or some other product or if he is an amateur trader himself he can stand around and try and describe his method to me. This allows me the advantage of letting my mind roam while plastering a smile on my face and nodding my head at regular intervals.


But once in a while, I do get asked a question. It usually is something like "What are you, a Bull or a Bear?" It is then I give my practiced reply. "I am neither" I say, "I am a Dog." This never fails to elicit a confused look. Then if I am in the mood, I explain. "The market is made up of usually two kind of people. Those who are almost genetically ordained to be Bullish or Bearish. Do you know what the world does to BULLS and BEARS? They get slaughtered thats what. One for food and another for pleasure. But Dogs? That is another story. It is kept in the house, petted and once in a while thrown some food and bones. All it has to do is to wag its tail and follow the master."


I say that I am a Dog and follow my Master which is the Market. If it is going up then I follow it up. If it is going down then I will follow it down too. Notice, I said follow. Being a good dog, I will never ever try to lead the Master into any direction. I let the Master lead and I follow. This way, the Master is happy and I get thrown some bones once in a while and then I am happy too.


Usually, that is the last I get to see of that person. He forever avoids me after that!


Having said that, I have to say that I am short (from 4875 levels. I made a mistake in yesterdays note when I said 4775) The gut feel is that the market is NOT headed for a large fall. But then I am a DOG. What do I know what the Master wants to do?

Wednesday, July 29, 2009

To trade or not to trade

To trade or not to trade. Or to put it more accurately- to book profits or not... that is the question. The other question to ask is at what level would I want to book profits?. Do I book at current levels or do I wait for my important pivot of 4388 to be broken to sell my current long positions? While it might be best in the long run to go for the home run every time I trade, short term compulsions make it simpler to book once in a while.
After lot of thought, I have reached a healthy compromise. I will not wait for 4388 to be broken. Instead, if the market trades below 4525 I will cut my long positions. May be even sell a little short. And then take it as it comes. Clearly a rally above 4610 negates all this and hence is a good level to reinstate long positions or to cut any short positions that I might have built up. So goes my thinking.
World markets continue their uptrend. Commodities did slide a bit yesterday but that was not significant enough to signal a trend change. S&P rallied in the second half for a decent close after being more than a percent down mid session.
Normally I would end this note with some sporting story or a non market comment. But this has been an unusually quiet week with very little sporting action and no news worth talking about. Armstrong coming 3rd in Tour de France is good stuff but not the miracle one was hoping for. Massa getting seriously hurt in F-1 is news but what can one say about that?. The possibility of Schummacher returning as a replacement is different. Now that would be something. If he decides to return at the age of 40 and then even wins a race?. That would be stuff of legends!!!.