Skip to main content

Algorithmic Trading By Meru Capitals Saurav Kedia

 

In my algorithmic trading company, Meru Capitals, the 4 of us manage captive funds, and work hard to generate consistent returns while simultaneously operating at scale. All our trades are automated i.e. generated and executed using algorithms generated in-house. A thread.. by Saurav Kedia

We create trading algorithms (algos) which are computer programs that monitor market quotes and generate trading signals using embedded logic. These signals are then traded automatically by second layer called execution engine. All of this is done without any human intervention.

Our current capital base is ~ 40 crs and largely deployed in index options and mostly on short (selling) side. We look the generate 25%+ annual profit. In trading, Drawdowns (DD) loosely means losses made from from Peak profits level. We try to keep DD within 5%.

We are very focused on keeping the DD low. We want to minimize volatility and increase reliability in performance and in the process, ended up trading only intraday algos and that too the ones which place a large number of orders. Both of them improve reliability. Such trading style also necessitated us to completely junk cash segment in 2021, as the trend following nature of those algos led to unacceptably high 15% DD in May. We moved fully into index options, as risk return profile is more stable there.


Within options, we started out with popular algos like 9.20 straddles, but we stopped them by Nov 2021, as we could see that eventually they will also generate high DDs. A 9.20 straddle variant (algo: IOTB3) below which we stopped in Nov'21. Look at its profitability before Nov.


We eventually moved on to creating algos which are continuously trading in the market and seeks to profit from a mix of theta decay and directional moves. We place very small orders and like to spread them through out the day, again with a view to minimize DDs. Once such algo:
In this options space as well, we look to diversify through mix of trend following/mean reverting algos as well NIFTY/BANKNIFTY algos. Currently we trade upto 15+ algorithms.
We pick up weights for individual algos in portfolio using a mathematical process of creating mean variance portfolios using  Monte Carlo Simulations, again to reduce DDs.


This process has worked fairly well for us and YTD (since Jan), we are up roughly 20% with a max DD of 2.9%, in a market which was marked by excessive volatility triggered by rising inflation, Russia Ukraine war and Fed tightening. Thats > 5.5 crs of profits after charges.


Execution is the holy grail. All this requires strong software capabilities, and we have developed an in-house execution software: Kanhoji. Kanhoji is a modern software designed using distributed event driven architecture much like modern e-commerce apps and is highly scalable.
The name Kanhoji itself is inspired from mighty Maratha naval lord Kanhoji Angre, and we see ourselves as proud pirates holding up in a sea overrun by mighty institutional players with armies of Ivy league trained soldiers. 
Since Jan 2022, we have placed 1.5 million orders with brokers and written premia worth Rs 800crs, thats 2.5 mln lots. On a single day, we have traded even 25K+ positions (full trade with entry and exit). All of these is managed by Kanhoji and is overseen by our 4 member team.
It also has an admin panel which allows us to handle administrative tasks like defining strategy parameters, capital allocation to various strategies, broker details etc.


Kanhoji also supports a fully featured back-office which generates performance reports and equity curves for us alongside various other reports including back-office reconciliations.
Kanhoji runs on AWS cloud infrastructure where we run a 4-machine configuration. Effectively, Kanhoji doesn't require us at all. All of us can be away for a day and it will trade for us. But we do keep coverage to avert any potential faults.
Consequently, most of our time is spent in developing new algos and improving Kanhoji further i.e. building for future.
The opportunities in this space are vast and we continuously look to collaborate with others: traders, researchers, brokers, and FIs. We want to trade new markets like currencies, commodities and looking to speak to others who already trade them.
A chance encounter with ex-colleagues led to discussions around what I really do. This is one question which I repeatedly get asked, especially from family. This is a specialized area which most don't know of. Many think I am a wild speculator and carry a lot of misconceptions.
Our style of algorithmic intraday trading is speculation all right, but well-thought, process-driven, rules based and very disciplined.

Thank You Saurav For this very informative thread.
Love, 
DPZ.







Comments

Most Read

How to bounce back from losses in trading?

Have you started trading recently? You may have seen some profits and then you start making losses. To recover the losses, you fight with the market and in the process, you encounter more loss, and lose your confidence.   Many traders initially go through a drawdown phase and that's normal. In this post we will explain practical steps to quickly bounce back from a trading drawdown. 1: Cut your trading size The first and foremost thing to do after a drawdown is to immediately cut your trading size. Otherwise, you can make more losses. Cutting the size ensures no further damage and protects your account, buying you time to reflect. 2: Take some time off  Immediately after a big drawdown, a trader should take some time off from markets and focus on his hobbies and going out. This instantly stops the account bleeding and gives you a sense of relief. 3: Avoid revenge trading Strictly avoid the urge to recover all the losses quickly. In fact, ...

Happy Valentines Day From Market !!!

NIFTY              -220                  to + 120 340 pt BANKNIFTY  -550                 to +670 1220 pt MIDCAP         -500               to +400 900 pt SMLCAP         -250                to +280 530 pt Happy Valentines Day From Market  !!! 

Samsung 236 L (RT28C3733S8/HL) Refrigerator Review: A Compact Convertible Option

Samsung 236 L, 3 Star, Convertible, Digital Inverter with Display Frost Free Double Door Refrigerator (RT28C3733S8/HL, Silver, Elegant Inox, 2024 Model) The Samsung 236 L (RT28C3733S8/HL) refrigerator is a compact double door model with a clever convertible compartment. Let's explore its features and see if it's the right fit for your kitchen.  Buy on Amazon Pros: Convertible Freezer: This refrigerator boasts a convertible compartment that can be switched between a fridge and a freezer depending on your needs. This offers flexibility for those who might stock up on frozen items occasionally or prefer more fridge space. Digital Inverter Compressor: Samsung's Digital Inverter Compressor is known for its durability, energy efficiency, and quiet operation. This can translate to lower electricity bills and a quieter kitchen environment. Frost Free Technology: No more manual defrosting! This refrigerator uses frost free technology to prevent ice buildup, saving you time and eff...

Overthinking is a disease.

Guilt.  Worry.  Anxiety. All have their root in just one thing - Overthinking. Overthinking is a disease. So here is a small story of overthinker Sunita and how she became worryless. Sunita worried a lot. A small thing like a grocery list could turn into a big worry in her head. She would imagine people making fun of her if she forgot something. Every text message that wasn't answered right away made her imagine the sender was mad at her. Her worry made it hard to do things, like writing a report for her job. One day, her cat knocked over a lamp and made a mess. Cleaning it up helped Sunita focus on something real instead of her worries. She realized that focusing on the present moment helped her worry less. The next day, Sunita tried a new way to work on her report. She set a timer to work for a short time, then took a short break. This helped her break the big job into smaller tasks that were easier to handle. It wasn't always easy. Sunita still worried sometimes, but n...

Trading is a get-rich-slow project.

Trading is a get-rich-slow project. Rushing the process only lengthens the journey. Gamblers give a lot of importance to short term outcomes.  Be a professional trader.  Develop a strategy with a positive expectancy and play the long-term game. If you followed your trading plan but still lost money... you still won. You won a psychological battle, and this should be celebrated. Over time, consistent actions beget consistent results. That's a great perspective on trading!  Here are the key points: Patience is key: Trading is a marathon, not a sprint. Focusing on long-term gains through a well-defined strategy is crucial. Don't gamble: Professional traders rely on analysis and strategy, not hoping for a lucky break. Sticking to the plan is a win: Even if a trade loses money, following your plan demonstrates discipline, a key trait for success. Consistency builds results: Regularly applying your strategy is vital for building a track record of success. Overall, this is a s...

In trading How to objectively identify pullbacks and reversals ?

Identifying pullbacks and reversals objectively in the market can be tricky, as there's always an element of uncertainty. However, technical analysis offers some tools and techniques to increase your chances of making a good call: Understanding Pullbacks vs. Reversals: Pullbacks : These are temporary setbacks in the prevailing trend. Prices retrace a portion of their previous move before resuming the trend's direction. Reversals : These signal a more significant shift, where the price movement changes direction for a longer period. Identifying Pullbacks: Trend : Analyze the price chart to establish the current trend (upward or downward) using trendlines, moving averages, or other technical indicators. Support/Resistance Levels: Look for pullbacks happening near established support (uptrend) or resistance (downtrend) levels. These areas often act as temporary resting points before the trend resumes. Momentum : During a pullback, there's usually a decrease in trading volume ...

Strategies for Short-term Traders

Stockbee has spoken several times about Mark Boucher's Hedgefund Edge book, particularly the Appendix A in the back that discusses "Strategies for Short-term Traders" and "Trading Runaway Moves". This book is hard to come by. It was written in the late 90s, and I think, is pretty pricey on Amazon. In the section Boucher discusses a trading strategy focused on identifying and capitalizing on "runaway" stock or futures moves. The primary pattern in focus is the "flag within a flag pattern," which is observed in a flag trading range. Here are the key points summarized from the content: Flag Trading Range: This is a pattern where a stock or futures contract makes a strong run-up and then consolidates for a while, forming what looks like a flag, before breaking out again to the upside. The breakout from such a pattern can often result in prolonged moves higher, making it a potentially profitable trading situation. Mixing Time Frames: By mixing...

10 Trading Mistakes that will make you a loser!

You love trading, but your results constantly disappoint you. Here are 10 mistakes you're making right now: 1. Trying to learn everything there is to know about every aspect of the markets. You will need to unlearn 90% of it later to make real progress. Instead, focus on the key principles that drive market movements and price action. 2. Not focusing on what works for you and what doesn’t.  Understand your risk profile, strengths, and weaknesses. Develop a method based on your real-time trials & errors. 3. Over-optimizing your trading system.  The goal is to find a system that works for you, not to find the “holy grail”. You can minimize risk and limit losses—but you can't remove them. 4. Not keeping a trading journal. Tracking your trades is essential for analyzing your performance and improving your results. It creates a constant you can refer to and uncover hidden patterns/flaws in your performance. 5. Not having realistic expectations. Most people expect to make a fort...