Working on some execution optimisation related backtesting. I have so far been executing with market orders only. Going towards higher lot sizes, I'd like to optimise for minimal slippage.

First off, on NSE, if you place a market order, you get filled at the best bid/ask right?

If we want to optimise this, the first non-creative idea one can think of is, slicing the order into different lot sizes, and placing a limit order for each slice at the mid point of current best bid & ask.

But this requires your latency to be the least.
Why would latency affect it?

I looked at tick historical data, and there are more than 18-20 ticks in a second (auction and quote combined).

Even if you keep 10 ticks per second, your best bid/ask can shift from the time you place to the time exchange receives the order.
So, the next best thing that people can do is place tranches of orders every 1s, 3s, 5s, 10s, 15s - in their preferred time range, and get filled at the midpoint or best-bid+1/2/3/4/5 in the depth.

What you need is liquidity.
But if you're trading breakouts, then it's highly likely that your limit orders may not get filled if the action is too fast.

So, a retry mechanism is required in such cases.

If nothing works, you convert your orders to marketable and get filled at worse slippage.
But such scenario happens like once or maybe twice a month. 90% days, you would have your limit orders filled - this is what I have learnt from other people.

Now, what I am trying to do is to understand whether I can minimise slippage working with market orders only.

More from Shravan Venkataraman 🔥🚀💰

In today's round up, I have some amazing threads, resources, and plenty of solid advice for business, finance, career from twitter.

Here's the roundup of 17 of the best and the most useful threads, tweets, and resources I found last week. 🧵

1/ How to find spreadsheets on any topic in the


2/ A thread by @wes_kao on making your customers hungry and excited to buy from


3/ Life brings you a lot of afflictions. But if you look around, there's a lot of beauty around you. Most often, drowning in the afflictions, we can't recognise or appreciate the beauty.

@wdmorrisjr wrote a damn good thread on finding beauty around us.


4/ This one is for all the job goers and job seekers.

@SahilBloom who recently hit 500k followers and has several accomplishments to his belt (career wise) wrote this thread on standing out in a hiring
Hedge Funds spend millions of dollars per year to access high quality financial datasets.

Retail sources cost anywhere from $5k-50k per year.

But, here are 11 data sources that have HIGH QUALITY and FREE data you can access right away.

🧵 👇

1/ Alpha Vantage |
https://t.co/ExlS7Jdnsz

Provides real time & historical equities, forex, and cryptocurrencies data across 60+ exchanges.

They provide both intraday and D/W/M timeframe data.

You can also access economic & fundamental data for last 20 years through them.

2/ IEX | https://t.co/drqeoU8Ee1

Investors Exchange provides historical data going back upto 15 years for US equities through API access.

You'll need an API key in order to access the API.

3/ EconDB | https://t.co/6mZxDeaJfh

This website provides economic data and economic indicators for almost all the countries in the world.

You can search for your preferred dataset through their search engine here

4/ Quandl | https://t.co/fW4PEQaW66

Quandl has financial and alternate data across 50+ exchanges, from over 300 sources.

They also have information on capital markets, energy, shipping, healthcare, education, demography, economics and society.

More from Trading

Many of you have seen the famous Westrum Organizational Typology model, so prominently featured in State of DevOps Research, Accelerate, DevOps Handbook, etc.

This model was created Dr. Ron Westrum, a widely-cited sociologist who studied the impact of culture on safety


Thanks to Dr. @nicolefv, I was able to interview him for an upcoming episode of the Idealcast! 🤯

It was a very heady experience, and while preparing to interview him, I was startled to discover how much work he's done in healthcare, aviation, spaceflight, but also innovation.

I've read 4+ of his papers, so I thought I was familiar with his work. (Here's one paper:
https://t.co/7X00O67VgS)

I was startled to learn he has also studied in depth what enables innovation. He wrote a wonderful book "Sidewinder: Creative Missile Development at China Lake"


Dr. Westrum writes about China Lake Research Labs: "its design and structure had one purpose: to foster technical creativity. It did; China Lake operated far outside the normal envelope... Sidewinder & others were "impossible" accomplishments,

I love this book because it describes traits of organizations that routinely create and maintain greatness: US space program (Mercury, Gemini, Apollo), US Naval Reactors, Toyota, Team of Teams, Tesla, the tech giants (Amazon, Google, Netflix, Google)

You May Also Like

क्या आप जानते हैं कि क्या है, पितृ पक्ष में कौवे को खाना देने के पीछे का वैज्ञानिक कारण!

श्राद्ध पक्ष में कौओं का बड़ा ही महत्व है। कहते है कौआ यम का प्रतीक है, यदि आपके हाथों दिया गया भोजन ग्रहण कर ले, तो ऐसा माना जाता है कि पितरों की कृपा आपके ऊपर है और वे आपसे ख़ुश है।


कुछ लोग कहते हैं की व्यक्ति मरकर सबसे पहले कौवे के रूप में जन्म लेता है और उसे खाना खिलाने से वह भोजन पितरों को मिलता है

शायद हम सबने अपने घर के किसी बड़े बुज़ुर्ग, किसी पंडित या ज्योतिषाचार्य से ये सुना होगा। वे अनगिनत किस्से सुनाएंगे, कहेंगे बड़े बुज़ुर्ग कह गए इसीलिए ऐसा करना

शायद ही हमें कोई इसके पीछे का वैज्ञानिक कारण बता सके।

हमारे ऋषि मुनि और पौराणिक काल में रहने वाले लोग मुर्ख नहीं थे! कभी सोचियेगा कौवों को पितृ पक्ष में खिलाई खीर हमारे पूर्वजों तक कैसे पहुंचेगी?

हमारे ऋषि मुनि विद्वान थे, वे जो बात करते या कहते थे उसके पीछे कोई न कोई वैज्ञानिक कारण छुपा होता था।

एक बहुत रोचक तथ्य है पितृ पक्ष, भादो( भाद्रपद) प्रकृति और काक के बीच।

एक बात जो कह सकते कि हम सब ने स्वतः उग आये पीपल या बरगद का पेड़/ पौधा किसी न किसी दीवार, पुरानी

इमारत, पर्वत या अट्टालिकाओं पर ज़रूर देखा होगा। देखा है न?

ज़रा सोचिये पीपल या बरगद की बीज कैसे पहुंचे होंगे वहाँ तक? इनके बीज इतने हल्के भी नहीं होते के हवा उन्हें उड़ाके ले जा सके।