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

30 Oct
Thread 🧵:
A Day in the Life of a Trader (A day in my Life)

1) I absolutely love my work❤️! In fact, I grew up dreaming to be a trader. So trading, to me, doesn’t feel like working (except when I lose😂).
It’s fascinating because it’s different every day.

#trading #life
2)7:30 AM : Alarm Rings

A typical week day for me begins at 7:30 AM.
I spend the next 30 minutes on my daily chores — get ready for office, grab a quick breakfast & have a hot cuppa coffee.
3) 8:00 AM : Leave for office

On my way to office, I check what happened at the Wallstreet overnight & how are Asian markets performing.
I then look for any macro news that may affect overnight positions

P.S: We are moving to a new bigger office & will share pics of that soon
Read 31 tweets
6 Oct
Thread : Why am I running multiple other bussiness such as webinar, broking etc if I am making money via trading ? 🧵

1) This is a question that I have been asked quite often so thought that will write my thoughts on it in detail.

#trading #business #Entrepreneur
2) First of all, I don’t think of myself as only a trader but as an entreprenuer & like to create businesses which have similar synergies to trading or my core skills!
3) My primary source on income is through trading the index via non-directional trades & managing the deltas.
I have shared many videos on threads on the same.

But over past 1.5 year as opportunity came I have built other business around my core trading business.
Read 12 tweets
30 Sep
Trading Mistakes & Lessons Learnt 🧵

1) I always keep my mistakes & lessons learnt in front of my screen while trading.
Bcz we as traders tend to commit the same mistakes everytime.

So seeing your learnt lessons everyday ensures that you avoid them.

#trading #mistakes
2) In 2017, I analysed all my trades and saw that I have majorly lost in stock futures and profits came only via index trading.

I accepted that I am not great at stock trading & been trading index only majorly since then & have never missed a day trading BankNifty
3) I decided to adjust all of my past losses to 1 % of capital to see the effect of capping the downside.

I would have had a gain of more than 230 % if I had capped losses at 1% of cap.

Lesson: Keep losses per trade less than 1% of capital no matter what !
Read 14 tweets
19 Sep
Thread : An expensive lesson in Risk Managmenent 🧵

1) I would like to share my nerve wracking experience that forever imbibed in me the importance of risk management.

On Aug 2016, I lost -20L in a minute,what lessons I learnt from this incident & how did I bounce back !
2) On August 2016, I suffered my highest intraday loss of 18 lacs due to a unknown risk.
I had shorted Just Dial 500 CE & was in a profit of 1.3 lacs at 3:19 pm. But to my dismay, at 3:20 pm, I saw a whopping loss of 18 lacs. In less than 60 seconds, I had lost over 20 lacs.
3) I had huge qty in Just Dial CE but as my position was huge and Just Dial being an illiquid script. My position got squared from 0 to 10 Rs. I was in 1.3 L profit at 3.19 & 3:20 -18 L.

Lost almost 20 L in a min

Check my email to @zerodhaonline and their reply to understand
Read 15 tweets
9 Sep
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 to great results overtime
Read 8 tweets
4 Sep
Thread: Risk hai toh ishq hai ?

1) A lot of people talking about today’s freak trade in 37100 PE in BNF

We as traders are always exposed to various types of risk and it’s a part of our business.

Let me highlight certain risk faced in past years & also ways to manage it
2) Gap Risk

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.

There are many such instances of overnight gaps
3) 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

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

Donate via Paypal

Thank you for your support!

Follow Us on Twitter!

:(