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
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".

More from Trading

1/ Feels like a good time to tell the story of how I went from broke to a millionaire to broke again in 2017/18 again...

Yesterday was brutal for some people...

Losing life-changing money sucks, losing any money sucks...you can chase the market or you can change your strategy.

2/ The original thread is gone but you can read it here.

https://t.co/cLLNs75rB0

tl;dr
- Traded $32k to $1.2m
- Thought I was a genius
- Made poor investments
- Didn't conserve capital
- Peaked at 150 BTC
- Lost nearly all of it

2 weeks from losing my house + no income. Oops.

3/ I am going to assume you are in it for the money rather than the tech. Yeah, you might Tweet about the amazing blockchaining of cross-border payments and oracles yadda yadda...really, you are in it to make money.

If you are really in it for the tech, go and build something.

4/ Okay, so if you want to make money, trading is super hard, you are trading against:
- Better traders than you
- People who can move markets
- Unknown information

And if you are trading with leverage you might blow up your account with the volatility.

5/ If you are not trading, you are investing. Okay, so what are you investing in?

I made the decision that the crypto with the best opportunity of existing in 10 years is #Bitcoin:
- Solves a genuine problem
- The right tech
- A proven track record
๐—ก๐—ถ๐—ณ๐˜๐˜†-๐—•๐—ฎ๐—ป๐—ธ๐—ป๐—ถ๐—ณ๐˜๐˜† ๐—ข๐—ฝ๐˜๐—ถ๐—ผ๐—ป ๐—•๐˜‚๐˜†๐—ถ๐—ป๐—ด ๐—ฆ๐˜๐—ฟ๐—ฎ๐˜๐—ฒ๐—ด๐˜†

Complete Backtest and Indicator link

๐Ÿงต A Thread ๐Ÿงต

๐—ฆ๐—ฒ๐˜๐˜‚๐—ฝ:
๐Ÿ”ธ Monthly Option Buying
๐Ÿ”ธ 50 ema on 3 min timeframe
๐Ÿ”ธ Supertrend 10 , 3
๐Ÿ”ธ Chart : Banknifty , Nifty Futures as we backtested on futures
๐Ÿ”ธ Entry 9:20 to 3:00
๐Ÿ”ธ Max 3 Entries per day
๐Ÿ”ธ Premium nearest to 200 Rs only

[2/18]

Why Monthly Option buying ?
๐Ÿ”ธ Less theta decay compared to weekly options
๐Ÿ”ธ Less Volatility
๐Ÿ”ธ Supertrend and MA Settings
[3/18]


๐Ÿ”ธ Indicator Link
๐Ÿ”ธ Click on the below ๐˜ญ๐˜ช๐˜ฏ๐˜ฌ -> ๐˜ˆ๐˜ฅ๐˜ฅ ๐˜ต๐˜ฐ ๐˜๐˜ข๐˜ท๐˜ฐ๐˜ถ๐˜ณ๐˜ช๐˜ต๐˜ฆ๐˜ด -> ๐˜ˆ๐˜ฅ๐˜ฅ ๐˜ฐ๐˜ฏ ๐˜Š๐˜ฉ๐˜ข๐˜ณ๐˜ต from favourites and start using it !

๐Ÿ”ธ
https://t.co/zVXavqLBto
[4/18]

๐—œ๐—ป๐—ฑ๐—ถ๐—ฐ๐—ฎ๐˜๐—ผ๐—ฟ ๐—ฆ๐—ฒ๐˜๐˜๐—ถ๐—ป๐—ด๐˜€ :
๐Ÿ”ธ Max 6 Trades per day ( Both CE and PE buy)
๐Ÿ”ธ Timings 9:20 am to 3:00 pm
๐Ÿ”ธ Supertrend : 10,3
๐Ÿ”ธ Moving Average 50 ema
[5/18]

You May Also Like