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

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

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

Master Thread of all my threads!

Hello!! 👋

• I have curated some of the best tweets from the best traders we know of.

• Making one master thread and will keep posting all my threads under this.

• Go through this for super learning/value totally free of cost! 😃

1. 7 FREE OPTION TRADING COURSES FOR


2. THE ABSOLUTE BEST 15 SCANNERS EXPERTS ARE USING

Got these scanners from the following accounts:

1. @Pathik_Trader
2. @sanjufunda
3. @sanstocktrader
4. @SouravSenguptaI
5. @Rishikesh_ADX


3. 12 TRADING SETUPS which experts are using.

These setups I found from the following 4 accounts:

1. @Pathik_Trader
2. @sourabhsiso19
3. @ITRADE191
4.


4. Curated tweets on HOW TO SELL STRADDLES.

Everything covered in this thread.
1. Management
2. How to initiate
3. When to exit straddles
4. Examples
5. Videos on