Indian Quant Profile picture
Here to read history, argue on markets, and steal other's time You have to pay the price for being ambitious.
Feb 4, 2023 12 tweets 5 min read
I wondered how I could get the pnl statement from my Finvasia account and plot those nice equity and drawdown curves without downloading the CSV files. So, I thought writing a tutorial on automating this would help others too. In this, we will use Selenium and requests and plot these curves.
Step 1: Import libraries and create a driver as shown here; you will need to install these libraries first. Use these links
1. pypi.org/project/seleni…
2. pypi.org/project/webdri…
Jun 27, 2022 4 tweets 1 min read
There is always the uncertainty that your 8-10 years tested strategy won't work next year. In terms of data, what you had observed was the data points syncing in place to give you an equity curve.
If you want to see what may happen if you weren't so lucky, just change the... ... sequence of data points and generate new equity curve. If you sample these data points in a different way you will get different equity curve, different drawdown. A common way to achieve this is to use 'Monte Carlo Simulation.'

Note: this is very crude definition of
Apr 27, 2022 15 tweets 7 min read
Nano Course On Python For Trading
==========================
Module 5-A

In these posts, I will attempt to teach you how to host a trading strategy on the AWS cloud, use Zerodha Trading API, and run a basic algorithm. This last module is subdivided into two modules 5-A & 5-B For a new quant trader, AWS becomes a daunting task to understand. But it is worth your time to understand and get comfortable with it. The benefit of using AWS is that it is charged per hour - as per your usage. You can get started with a free tier at zero cost.
Apr 26, 2022 5 tweets 2 min read
phoenix at 191% gross since March 1, 2021. While all my other systems struggled in the market, this system outperformed. Image Mind the 4-5 months of medium duration drawdown 😬. If I was unlucky, it could have extended for 300+days as the simulation tells me. High performance strategy can go in longer drawdown period Image
Feb 20, 2022 18 tweets 6 min read
Nano Course On Python For Trading
==========================
Module 3-B (Bonus)

In this Bonus Module, I will attempt to teach you how to write an algorithm to create a Stock Screener based on @markminervini 's Trend Template from his book Trade Like A Stock Market Wizard.

+ Some of the readers asked about how to create a stock screener. So, I thought before jumping to the cloud and deploying an algorithm on the cloud, I should address this. Whatever algorithm we develop in this module, we will deploy it on the cloud in Module number 4.

+
Feb 19, 2022 8 tweets 2 min read
Laymen Tech - #1
=============

What is a cloud?

If you are reading my post, chances are you live on rent in an apartment. You might also have a gym membership and not own any fitness equipment at your home. But, why do you rent them instead of buying?

+ Possible reasons:

• You can’t afford to buy land/property in Metro cities (Mumbai)
• You have a job and can switch places every year and go to another city
• You want to stay away from maintenance cost of your home/fitness equipments

+
Jan 22, 2022 8 tweets 4 min read
Nano Course On Python For Trading
==========================
Module 2

In this post, I will attempt to show a simple Python code to download the past 5 years' Nifty50 stocks EOD Data using the NSEpy library in less than 2 minutes.

The first few lines are simple to import statements. Pulling public library NSEpy nsepy.xyz that we can use to extract historical and real-time data from NSE’s website. Then, we import the most popular pandas library. Image
Dec 13, 2021 21 tweets 7 min read
Nano Course On Python For Trading
==========================
Module 1

Python makes it very easy to analyze and visualize time series data when you’re a beginner. It's easier when you don't have to install python on your PC (that's why it's a nano course, you'll learn python... ... on the go). You will not be required to install python in your PC but you will be using an amazing python editor, Google Colab Visit colab.research.google.com

This course is for anyone out there who is confused, frustrated, and just wants this python/finance thing to work!
Dec 11, 2021 4 tweets 1 min read
Zerodha backed Streak, an "strategic" trading platform, launches a new version in November 2021 and Upstox too announced partnership with Streak.

As per latest post by Nithin Kamath, they are keeping an option to disable Trading API access to retail clients... Image ... but as per SEBI's consultation paper in December, brokers can still provide platform, as they are a compliant entity. As much as I hate to say, but Zerodha takes the first step and an early mover and that's why they are the best. Image
Oct 28, 2021 8 tweets 2 min read
The only trading psychology post you need to read:
===========

This guy gets appreciation and possibly makes money only after he reaches from one point to another.

But if his entire focus is on :
1. Not falling down the rope.
2. Keeps on thinking to reach the other end
..contd ... of the rope as quickly as possible.
He could possibly mess up.

But if his entire focus is on maintaining the balance and saying present with the each-and-every move he takes his chances of succeeding increase.
May 8, 2021 8 tweets 2 min read
Hedging a portfolio with put options:

You buy put options because you think they are cheap and you want downside protection.

In that case, you are looking to use the skewed payoff of the put option to protect your portfolio from a large downside move and not capping the upside. Image If you want it cheaper, than an understanding of option pricing is required to know when or where a put option tend to be cheap.
But, if we just want to protect the downside risk, we will assume that it's just a premium we have to pay to protect out capital.