Sourabh Sisodiya,CFA Profile picture
Nov 18, 2021 13 tweets 6 min read Read on X
How to build/backtest a strategy 🧵?

1) Idea/Hypothesis
2) Specify entry,exit, SL & position size
3) Generate trade log & Backtest Report
4) Test in diff. market condn.
5)Optimise the strategy
6) Evalute the robustness & stress testing
7) Track Real Time performance
8) Deploy Image
1) Idea( Eg. Theta Eating Strategy)

Options decay with passage of time.
I look at the theta decay curve & wonder that some decay is intraday and some is overnight.
Can I capture the intraday theta decay by creating delta neutral positions ?

#idea #theta Image
2) Entry, Exit, SL & position size

Can we create intraday straddle to capture theta decay ?

Initial Logic :

Entry : Create straddle at 9:20 am
Exit : Close the straddle at 3:15 pm
SL : 10% of combined option premium
Position Size : 1 lot (CE & PE) per 2 lakh Image
3)Generate trade log & basic backtest report

The trade log contains all trades as per your trading logic.
Also plot the equity curve(cumulative P&L ) & certain backtesting metrics to see if the results are decent.

If yes then proceed further else discard the strategy. ImageImage
4) Generate a detailed backtest report & test across different market conditions.

Look for metrics such as-
Outlier adjusted performance
Max drawdown & Time drawdowm
Profit factor
Model efficiency etc to decide whether the systems fits your psychology. Image
5) Optimise :

If the basic results look good, dig deeper.

-What if we exit at pre-defined profit instead of 3:15 pm ?
- Days suitable for the strategy ?
-Days when you should avoid the strategy ?
- High vix or low vix ?

Basically generate more insights. ImageImage
6) Robustness & Stress Test

Check performance on black swan days
Check performance by removing outliers & max
Are trades evenly distributed ?
Consistent performance qtr by qtr, year by year,
Even dist. Of PnL ?

Also do walk forward testing.(Advanced topic so will explain later) Image
7) Track Real Time Performance

Start live execution with small qty before actualy deployment to get feel of the strategy.
Try to incorporate the feedback from live execution to further improve the strategy. Image
8) Deploy :

if the strategy passes all above steps then it’s fit for live deployment.

Deploy the strategty and monitor the real time performance.
The live performance should be similar to the backtest results. Image
9) Other important points

Make sure you avoid the following backtesting pitfalls and clean the data before backtesting.

-survivor ship bias
-look ahead bias
-in sample bias

Also include slippages,brokerage for true picture of the strategy Image
10) As a rule if you backtest for n months , you can trade for n/3 months.

And you need to assess your strategy from time to time bcz as market conditions keep changing your strategy may stop working.

How do you know your strategy has stopped working ? Think over it.
11) Resources :

Trading Systems by Emillo Tomasini is a good book to get started & learn how to build a trading system

Also one can start learning basic python for data analysis & backtesting

udemy.com/course/python-… Image
12) I hope you found the thread insighful.

I truly believe that small data insights can bring significant improvement in your trading

Start learning basic coding & data analysis online.
It’s not difficult, trust me. Just get started💯

End Image

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Sourabh Sisodiya,CFA

Sourabh Sisodiya,CFA Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @sourabhsiso19

Nov 4
How to build a Trading Multi Monitor Setup with specifications

A detailed thread🧵 Image
1)Monitors :

Dell 27 inch 2721HN

BenQ 27 inch GW2780

Vertical Monitor Dell P2722H

We are using 10 monitors & 1 vertical monitor with 1080 p resolution

Purpose of the monitors is to help scan multiple charts,momentum stocks, news and give a bird eye view of the market. Image
2) Mother Board:

Aorus Elite z690

The motherboard is the backbone that ties the computer's components together at one spot and allows them to talk to each other.

This allows GPU,processor, RAM and other hardware component to interact seamlessly Image
Read 13 tweets
Oct 30
Thread: How Drawdowns Make You a Better Trader 🧵 Image
1) “A smooth sea never made a skilled sailor.”

Just like a calm sea never makes a skilled sailor, easy and steady markets won’t make you a great trader! Image
2) Reason for this thread:

No one talks about drawdowns, but they are part of every trader's journey. Always manage risk, follow your systems, and don't fear losses. No system is profitable all the time. Image
Read 11 tweets
Oct 23
How to catch market reversals using market breadth

A detailed thread🧵 Image
Market breadth looks at the relative change of advancing to declining securities in a market.

It is a technical analysis technique that gauges the strength or weakness of the the market
2) Whenever market breadth is at extreme negative it generally indicates short term reversal

But question is how to know what is extreme negative market breadth ?

Lets find out Image
Read 10 tweets
Oct 9
This one thing literally changed my trading

A thread🧵 Image
1) The real breakthrough in my trading didn’t come from picking better stocks or reading charts more accurately.

It came when I mastered the art of cutting losses fast. Image
2) Ed Seykota says

The elements of good trading are:
1)cutting losses.
2)cutting losses &
3) cutting losses.

If you can follow these three rules, you may have a chance. Image
Read 14 tweets
Sep 21
A Brutal Day in the History of Sensex 0 DTE😳

Option selling is getting tougher by the day.

No matter where you set your stop loss, it feels like it's destined to get hit. And if you don’t set one? You could blow up your account in minutes.

Let’s dive into what happened on September 20, 2024 and ways to survive such days(Thread)Image
1) Sensex opened at 83,611 and dropped 400 points in just 20 minutes!

But that was just the beginning.
The market then staged an incredible rally, surging over 1,300 points from the day's low to hit a high of 84,515 and again fell 1200 points to 83300 and again rallied to 84600

Crazy Volatility🎢Image
2) During this upmove, 84,000 CE option exploded from 36 to around 700
A 20x move in a single day!

But this was just the beginning😱 Image
Read 9 tweets
May 6, 2022
Thread : Days to Remember🧵

1) I saw few tweets saying that this is the most difficult market ever.

As a trader, we have signed up for these risks & All we can do is be prepared & manage them

Lets have a look at days when markets action was crazier than current times !
2) 18th may 2009

Markets opened at 9:55 AM as this was the market opening time at that time
Nifty immediately hit an 20 % upper circuit at 10.01 am and the markets froze.
So markets were open only for 6 minutes.

3) 24th Aug 2015 (Vega Risk)

On 24th August 2015, the Indian markets declined close to 5.92%.

Nifty around 490 points but something unusual happened on that day.

Far otm Call options shot up inspite of such a huge fall😲

Vix shot up 64%.
Read 12 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(