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

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
Apr 24, 2022
Thread : From +5% to -1% for April.. Mistakes made & lessons learnt🧵

1) I was up 5% on capital for April till 2nd week but in last week went from +5% to -1%

So what went wrong, what mistakes I did & the lesson learnt !

#trading
2) I was having a great month & that made me more complacement as I made around 24% returns in last 4 months

As Paul Tudor Jone says

“My biggest losses have always come after I have had a great period & I started to think that I knew something”
3) So what went wrong ?

Tuesday :
BNF crossed 37000 & I sold 36500 put as per my system

But BNF reversed in last 30 mins & my otm stop (36000) got triggered.

I exited hedge as I thought this is just a pullback but BnF kept tanking & lost around 2% on capital on Tue
Read 16 tweets
Apr 24, 2022
Thread: What can we traders learn from Sachin

1) @sachin_rt is undoubtedly one of the greatest batsmen of all time & has played several amazing knocks. But one that stands out is his 241* at Sydney. He did not play a single cover drive in the entire innings

#SachinTendulkar
2) Look at his stance on the crease. Look at the balance. Perfect. Simply elegant. Looks so pleasing to the eye.

Even @bhogleharsha once said, “When Sachin hits a cover drive, the world seems all the more beautiful.”
3) But in the series against Australia. Sachin had been getting out by trying to drive the ball outside off.

He had scored just 88 runs in the previous three matches and had registered 2 ducks as well. So he decided that he needs to change something to score more runs
Read 8 tweets
Apr 9, 2022
How to become more productive & achieve results🧵

1) An important concept that I learnt last year and which has helped me immensely is “Non Zero Day”

There should be no zero days.

What's a zero day?

A zero day is when you don't do a single thing towards your dream or goal
2) Didnt' do anything all day and it's 11:58 PM?

Write one sentence.
One pushup.
Read one page of that chapter.
Write one line of code.

One. Because one is non zero.
3) Turning your dreams into reality doesn’t happen magically.
It happens from a massive string of CONSISTENT NON ZEROS.

0.99^ 365 =0.03 but
1.01 ^ 365 = 37.8

Small improvements daily add to great results overtime
Read 8 tweets
Mar 18, 2022
Thread : Trading Applications that I use on a daily basis🧵

1) After putting a detailed post on hardware & multi-monitor setup. Few asked for softwares I use for trading.

So I am listing softwares/apps which I find the most useful for trading & investing Image
2) Trading View or Kite app

I use trading view for intraday charts.

As I trade intraday, I use the 5 min time frame.

My chart is simple with 20 sma plotted on it along with CPR(central pivot range)

Price > 20 sma & CPR indicates bullish trend for intraday & vice-versa Image
3) Icharts

As I majorly trade option premiums(short volatility or theta decay strategies)

I keep a track of combined premium of strangle using @iChartsIndia

Combined premium should be trending down & below VWAP to create a strangle Image
Read 13 tweets
Mar 18, 2022
Thread on QTP :

1) We are launching batch 7 of our Quantitative Trading Program(QTP).

Start Date: 23rd April ‘22

Course Duration : 6 months

Timing : Every Sat & Sun from 9:30 am to 1 pm

For more details please visit:

quantifycapital.in/quantitative-t…

#python #algo #system #trading
2) Focus :

The program focuses on:

Python programming,
Trading strategies,
Quantitative analysis,
Backtesting,
Automation &
Machine learning for trading
3) Past Participants :

We have done this program at many large proprietary trading desks such as Futures First, KIFS Trade Capital, Marwari Shares etc and institutes like IIT-D, IIT-B,IIM-B, NMIMS,JBIMS to name a few.

So we surely have good credibility in the this domain :)
Read 7 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!

:(