Here is a special treat for traders.
Kirubakaran is an active trader/investor in Indian Markets since 2008, NSE certified Analyst and has developed his own algorithm for trading!
Tell us a little bit about yourself
I Am Kirubakaran Rajendran, founder of Algo trading firm www.squareoff.in where we provide automated trading bots to retail traders, where in a click of a button they can place trades, the trading bot would analyze the markets and automatically pick which stocks to buy when to buy, when to exit, etc.
How did you start your investing/trading journey – like what got you to the markets
It was during the 2007 boom when I just glanced through the news that Mukesh Ambani was among the richest person in the world because of his stake in the Reliance Group of companies. The news somehow stuck with me and got me thinking that if the owner of the company is among the richest persons in the world, surely his shareholders would also be rich. That got me started looking for ways to participate in the market.
My humble beginnings only helped me in my resolve to chase my dream. I come from a middle-class family from Chennai. My father, a government office clerk and my mother, a tailor, had a tough time providing for my basic education. After my schooling, I joined Loyola College for a graduation course in Statistics.
It was a good 30 minutes bus ride from my home to college. I utilized this travel time reading. This was in 2007 and all the papers were talking about was the wealth generated in the markets.
In South India, there was not much of an investor awareness in 2007. No one in my family knew anything about the market, there were no workshops back then, no Quora to help with information. The only way I could manage to get some help in my education on the market was through a small Indian community group on Orkut.
After reading a bit about the market, I decided to take the plunge at the beginning of January 2008. But just before this, I had noticed that the stocks that were in news used to go up for a few days. This was my ‘strategy’ of making money in my earlier days. I started off with a small Rs 5,000 account, money that I managed to save from my scholarship. But then by January 21, 2008, in less than a month, I was back to square one, thanks to the lower circuit in the market.
The first stock you bought, first loss and what did you learn from it
My next tryst with the market was after I got a campus placement in Infosys with a salary of Rs 15,000 per month. I used to work in the night shift in those days. I did not have an IT background and was tasked with doing a routine job.
I decided to automate the work so that I can get more time to read on markets. But in order to automate, I had to learn to compute, as my background was in statistics, and I had very little computing knowledge. I looked up ways to learn to code and automate my office work. As a result, a work that would take two hours was completed in 10 minutes giving me enough time to read.
In the beginning, my boss did not know about it, but when he did, he appreciated the work and got me transferred to mainstream computing.
Nonetheless, I kept on gaining as much knowledge as I could on the market from books, sites, and forums. I also started trading again. In those days I continued to trade in the way I did in early January 2008 – on the news.
Buying stock on news and then holding it for a few days and selling it. I was making money in some trades and losing in others. This was when I was lured by options. I heard people say that it was the fastest way of making money. You put in Rs 100 and make Rs 1,000 in a few days.
I read a bit of options and then decided to trade long strangles – buying both Calls and Puts. I had seen and read that stocks generally move sharply after results, so I decided to take such a trade. Ironically, I decided to take a long strangle trade in the company I worked in, Infosys.
A day before the result, I had built a position of Rs 1.5 lakh in Infosys strangles. I remember that I couldn’t sleep that day with such a huge position. The next day, results were announced before market hours and when Infosys opened that morning, the value of my strangles had come down to Rs 20,000. I had lost more than three months of my salary in a single day.
This was a big lesson. Rather than running away from the market, I dove deeper into reading and researching what makes a successful trader click. This is when I decided to move from news-based trade to rule-based trade.
This was also the time when I read the book ‘How I made $2 million in the stock market’ written by one Nicolas Darvas, who was a ballet dancer by profession. It acted as a trigger that set me off into the fascinating world of trading. I realized that if a person with no background can make a good amount of money, then even I can. There is no closely guarded secret to trading success.
One advice you would like to give to younger people who have just started earning toward the financial freedom journey
For an aspiring trader, I would say always have a clear set of simple rules. Do not trade if you cannot explain in two lines. The more you complicate, the less likely the strategy would work.
People generally go for strategies that give higher returns without looking at the drawdowns. For example, if a strategy gives a return of 40 percent per annum with a drawdown of 15 percent, it is certainly better than a strategy giving 90 percent returns but having drawdowns of 40-45 percent. Chose the ones where risk is lower.
Watching movies and TV series like Billions, Breaking Bad. I travel often, go on a road trip with friends often. Read books on entrepreneurship
How do you increase your market knowledge?
I put my computing knowledge to use and started building rules-based trading systems and testing them. Over the years, I may have tried and tested hundreds of trading systems. I have automated these strategies which would eliminate emotional decision making. If I found that they were working well in back-testing, I tested them in the market.
This was when I made my next big mistake. I borrowed money to trade in the market.
When my trades were profitable, there was no issue. But, even when there was a single loss, I would relate it to some day-to-day expenditure and weaken myself psychologically. So high was the positional leverage, that a single day fluctuation in my trading account was equivalent to a month’s salary. It was taxing to trade in those days. I was trading Nifty futures but the lot size was more than what one would call comfortable.
In such a case, if there were three to four consecutive losses, I would change the strategy. It is said that Algo trading takes emotions out of your trading, but with consecutive losses on a leveraged position, you start doubting yourself and your trading system. You will bring back discretion in your trading and move around in circles.
I somehow traded this way with bouts of profits and losses for a few years until I read a story that changed me from a normal trader to a consistent trader.
It was about a Greek wrestler named Milo who lived many years back. He was one of the greatest wrestlers from Greece who had won six consecutive Olympic medals. Everyone wanted to know what his secret was and how he managed to be so strong and successful.
The story takes us to his village where Milo started his training by lifting a newborn calf while his competitors were trying to lift bulls in their practice sessions. Now anyone can lift a calf, even you and I can do that, there is nothing great in it. So how did Milo become great by doing that?
Milo used to carry his calf everywhere he went. Over time, the calf put on weight but Milo was still carrying him around. Milo’s body and mind were getting used to lifting the calf even as it slowly grew. By the time the calf became a bull, Milo could lift it effortlessly, while his competitors were still struggling to lift the bull.
This story opened the concept of position sizing for me.
I realized that it was not only the trading system but the trader who, by putting in various checks and balances in his trading system, makes money.
I realized that instead of putting all my capital or more specifically the borrowed capital, I should have started by trading with one lot. This way I would get used to the trading system without letting the daily market fluctuations affect my mental peace.
I followed this and progressively increased my lot size, as a result, I stuck to my system. After that, everything started falling in place.
Tell us more about your trading setup and strategies.
I trade multiple strategies, all of which are automated. I trade in the weekly Bank Nifty in the options market and stocks in the cash market.
Many traders approach a strategy as trend-following or one that is a reversal to the mean and then try to fit the back-tested data to the strategy. I, because of my statistics background am more comfortable dealing with data and deriving a strategy based on the output.
In Bank Nifty, I trade by selling options. It is known that selling options lead to money-making two out of three times. So, I decided to work around options because of this bias.
I downloaded around 14 years of data from the NSE site and got down to designing my strategy. I am basically a day-trader, so I was looking to design a system where I would make money in most days and lose only a small amount in days where I am wrong.
I looked at the daily range but slightly different than how it is conventionally viewed. Rather than looking at the difference between high and low of the day, I looked at the difference between open and low and open and high. I plotted the data to get a normal distribution curve.
What I found out was that in most cases, Bank Nifty does not move beyond 1 percent from their open. The data corroborated with the conventional wisdom that says that the market stays in a range 70 percent of the time. Using this information as the basis I designed my options strategy around it.
I also found out that I will make money by selling call and put options if I select strike prices beyond these one percent range. However, there was a problem. If the Bank Nifty goes in one direction and beyond the range, the strategy would lose 2-3 months of profit in one day.
I looked for other data points to protect myself. I looked at open interest data to see where there is a position build-up and sell my options around them.
In this strategy, which I currently trade, I have three stop losses conditions that take me out of the trade if I lose around 1.5 percent of the capital. Using these stop losses, the strategy is now posting around 30-35 percent annualized return. Drawdown has never extended beyond 15 percent. Irrespective of the volatility level, the strategy has made money.
The period when this strategy is making losses is when there is a volatility shift from a low volatility phase to high volatility.
I start off the week with strangles but as the week progresses I take short straddle trades – selling call and put options at the same strike price. I do not use option Greeks for my entry or exits, nor do I do any adjustments to my original position as that would require me to sit in front of the screen. What I have observed is that when Bank Nifty moves beyond one of my extremes, it can continue to move in the same direction. It is better to accept it and exit rather than firefight it.
In the case of stocks, I trade in stocks that are in the derivative list. This way I do not have to worry about circuit filters preventing my exits.
Here, my data analysis has gone against conventional wisdom. What I have found is that if a stock gaps up at the opening, irrespective of the trend, the price tends to come down. Similarly, if there is a gap down, its price tends to go up, irrespective of the trend.
There is, however, a caveat here. I optimize the gaps — for example, I will weed out stocks where the gap opening is only 0.5 percent or if it is too large — say 4-5 percent.
Another strategy that I trade is by looking at the volatility file that is updated by NSE on its site during trading hours. I look for stocks where the volatility has gained the most but the stock is among the top losers. Such stocks tend to give explosive moves the next day or within a few days. It is better to trade in these stocks than a fixed set of stocks.
In positional trades in the cash market, I trade by buying high and selling higher. Here I look for stocks that are touching new all-time highs or 52-week highs.
I run a query at the end of the month to check out for such stocks. I then rank them based on the distance between the month-end close and the 52 high levels. Suppose a stock made a high of 520 but closed at 500, I divide the two to get a ratio of 1.04. I calculate the ratio of all such stocks and buy the five strongest ones and balance them on a quarterly basis giving them enough room to perform.
This strategy is similar to the ones where relative momentum is used but here I enter a stock only when they were making 52-week highs. When the market crashed in 2008, there were no stocks touching 52-week highs from February 2008 to April 2009. Relative momentum would have given some whipsaw trades.
Any example where patience has paid off for you.
Am more of a trader than an investor, where all my position gets closed by 3:20 PM. However, even an intraday trader needs patience. Recently there was a huge intraday run-up that happened with Bank nifty on 20th Sep 2019, wherein as per our strategy Bank Nifty triggered a buy order at 27250, then the market moved to 27550, then 28000, then to 29000. The day was ended up with more than 1700 points profit in bank nifty futures. If I did not have enough patience, I would have closed the position when I saw some 300+ points profits. Just following the trading system is what we needed. Do not focus on the result, focus on the process.
Who is your role model in investing?
Its Jim Simons https://en.wikipedia.org/wiki/Jim_Simons_(mathematician)
I thank Kirubakaran Sir for his time to write out the answers in detail.