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 🔥🚀💰

Have you ever had 4-5 profitable trades in a row, and you bet all your profits on your next trade feeling "in the zone" only to lose it all?

That's called as "hot-hand fallacy" bias.

I ran a poll recently to outline two classic biases we have as humans.

Thread below 👇👇


1/ *Hot-Hand Fallacy* first had its origin in the game of basketball.

If a player shoots few baskets in a row, people generally predict that the next shot will also be a basket.

This is ignoring the fact that each shot is independent of the ones that came prior.

2/ In this poll, 41.1% people voted that the batsman who hit 4 sixes in a row, will hit a sixer in the 5th ball also.

This is classic hot-hand fallacy.

Each ball's outcome is independent.

The probability is not 50% FYI (number of outcomes is not 2).

These 148 people who voted that the next ball will also be a sixer, did so because they believe that the batsman is on a hot streak, and that his streak would continue.

This is an emotional bias and is usually attached to human performance related events only.

3/ 45.3% (162) people voted that the 5th ball would be a dot ball, meaning the batsman wouldn't score anything.

These people displayed the classic "negative-recency" bias, which is also called the "Gambler's Fallacy".
** MEGA THREAD ON Cryptocurrencies/Blockchain**

I wanted to know the best resources to learn about cryptocurrencies and blockchain for someone with zero knowledge. I asked Twitter, and Twitter answered.

This thread is a compilation of the best resources I was recommended. 👇👇

Let's start with ** BOOKS **

The first thing you should do before you pick up any book:

Learn about Bitcoin & Ethereum by reading the respective whitepapers.

- [Bitcoin white paper](https://t.co/cErOaFn6QL) by Satoshi Nakamoto

- [Ethereum White paper] (
https://t.co/0g5kYCGJGq) by Vitalik Buterin

Even if you are not tech savvy, you can get a good grasp about how blockchain functions from these papers.

1) *The Basics of Bitcoins and Blockchains: An Introduction to Cryptocurrencies and the Technology that Powers Them* by Antony Lewis

This book covers topics such as the history of Bitcoin, the Bitcoin blockchain, and Bitcoin buying, selling, and mining.

It also answers how payments are made and how transactions are kept secure.

Other cryptocurrencies and cryptocurrency pricing are examined, answering how one puts a value on cryptocurrencies and digital tokens.

More from Trading

12 TRADING SETUPS used by professional traders:🧵

Collaborated with @niki_poojary

Here's what you'll learn in this thread:

1. Capture Overnight Theta Decay
2. Trading Opening Range Breakouts
3. Reversal Trading Setups
4. Selling strangles and straddles in Bank Nifty
6. NR4 + IB
7. NR 21-Vwap Strategy

Let's dive in ↓

1/ STBT option Selling (Positional Setup):

The setup uses price action to sell options for overnight theta decay.

Check Bank Nifty at 3:15 everyday.

Sell directional credit spreads with capped


@jigspatel1988 2/ Selling Strangles in Bank Nifty based on Open Interest Data

Don't trade till 9:45 Am.

Identify the highest OI on puts and calls.

Check combined premium and put a stop on individual


@jigspatel1988 3/ Open Drive (Intraday)

This is an opening range breakout setup with a few conditions.

To be used when the market opens above yesterday's day high

or Below yesterday's day's

You May Also Like

The YouTube algorithm that I helped build in 2011 still recommends the flat earth theory by the *hundreds of millions*. This investigation by @RawStory shows some of the real-life consequences of this badly designed AI.


This spring at SxSW, @SusanWojcicki promised "Wikipedia snippets" on debated videos. But they didn't put them on flat earth videos, and instead @YouTube is promoting merchandising such as "NASA lies - Never Trust a Snake". 2/


A few example of flat earth videos that were promoted by YouTube #today:
https://t.co/TumQiX2tlj 3/

https://t.co/uAORIJ5BYX 4/

https://t.co/yOGZ0pLfHG 5/