Robot James 🤖🏖 Profile picture
Jul 10 16 tweets 4 min read Twitter logo Read on Twitter
a couple of simple trade-off considerations re: kwant trading signals that may or may not be obvious.

here's the price of a thing....

the main job is to predict how it's likely to move.
to do this you used information about it.

at any point, new information is appearing (trades, quotes, events, chatter)

and old information, that used to be very important, is becoming less so.
you use this information to try to create a forecast (explicit or implicit) of how you expect price to move over some future period.
to tell if your forecast is any good, you might get a bunch of observations of your forecast and the price changes in some period (let's say a minute).

and then you might plot the subsequent returns against the forecast and, ideally, it'd look a bit like this.
but you've probably got more observations than usefully fit on a scatter and it's gonna look like a big old blob cos market returns are super random.

so instead you'll do some reduction. you might sort your observations into centiles or similar and plot mean returns.
and ideally you want expected returns to look nice and linear with respect to your signal.

and you prob wanna transform it a bit so it is clamped to some range, likely distributed in a way you understand, and doesn't go crazy in the tails.
now, being able to predict short term returns might not be the win you think it is.

trading is expensive, and it's even more expensive if you are doing when YOU want to (rather than someone else)
if your forecast signal looks like this, you're going to have a bad time.

you might be really good at predicting minute ahead returns, but you don't actually want to turnover every minute.

you can't afford that.
so you'd prefer your signal to be less volatile, more auto-correlated, smoother, like this.

thus the first trade-off between how effective your forecast is vs how auto correlated your signal is.
you'd prefer a smoother signal over a hyperactive jumpy one with slightly higher correlation to future returns.

some things are naturally more auto-correlated (carry, rv signals)
other naturally jumpy things can be smoothed with EWMAs and the like, which quite nicely model new information appearing and old information becoming slowly redundant.
we can look this from the other direction too.

the choice of 1m future returns was kinda arbitrary.

we might be making trading decisions on that frequency, maybe, but we don't intend to turnover on that frequency.
so we care about how predictive our signal is over longer horizons too.

we might calculate the correlation of our signal with future returns over a range of other horizons.

and we'd much rather this decayed slowly, rather than quickly.
if it decays quick, it's going to be very competitive to get in for the good bit.

and, if we're going to trade it successfully after costs, we're going to be have to sat in positions with zero or very low expected return until we can get out of them cost effectively.
so all things equal, we'd prefer the slightly less predictive thing that decayed slower.

these trade-offs are important and aren't always easy to navigate and reason about.
some tips:
- plot everything
- keep everything as simple as it can be, chunk down, and think through things as clearly as you can
- but understand that the whole of parts interacts in wonderful confusing ways
- use simulation to explore this best you can
- thank the market gods

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Robot James 🤖🏖

Robot James 🤖🏖 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 @therobotjames

Jul 10
intuition of log returns

when you do anything with data, you should think about the intuition of each thing you do, and what it represents "in the real world".

let's take the example of log returns, which some people tell me they find confusing.
consider an asset whose price goes from $100 to $200

assume there are no other cashflows like dividends associated with this thing.

what are the returns for being long?

the intuitively obvious answer is 100%

it went up $100, the same as its price at the start of the period.
but let's be careful we understand what that represents.

that represents the return:
- over the whole period
- calculated on the initial value at the start of the period
Read 14 tweets
Jun 29
if you try to teach yourself quant trading from the internet or from scientific papers, you run the risk of spending a lot of time majoring on minor sh1t.

you see it on here all the time.

the simplest, closest-to-hand tool for the job is what you want.

at least to start.
need to adjust for volatility?

good, that's predictably time varying - you should do that.

but don't reach for some fancy forecast you need to fit.

use recent realized, estimated in an easy way, over an intuitively sensible period, based on what effects you're looking for.
need to smooth something?

good, that's important in lots of ways - not least that it's incredibly expensive to trade something that's jumping around all over the place.

you want something where it's easy to reason how old info is expiring and new info incorporated.
Read 8 tweets
Jun 27
The process of trading involves a lot of measuring.

In a trading system, you've made a bunch of assumptions and decisions, added a lot of moving parts.

And you need to isolate and track all those individual bits as best you can.
You've made forecasts about future returns.

Do those still hold up? Is the nature of them changing? Is information decaying at the same rate? Are you seeing different behaviour in different places? How confident are you in that?
You combined those forecasts in some way.

There are several ways you could have chosen to do that. Are you happy the choices and assumptions you made (about persistence/momentum/whatever) are still valid?
Read 12 tweets
Jun 20
here's the out-of-sample backtest performance of a sh1tcoin quant mean-reversion strategy.

from a large universe of sh1tcoins, we select 10 pairs to trade based on stationarity tests and unsupervised learning techniques performed on 2021 data.

and simulate trading 'em in 2022 Image
it "trades" on hourly bars.

the trading strategy is just a simple zscore thing.

at any point we hold a position equal to the inverse of the zscore of the spread at the start of the hour.

150% returns in a year on 16 vol. sharpe 9.

we made money on each pair, but more noisily. Image
pretty cool, hey?

no.
Read 10 tweets
May 28
if you naively simulate trading illiquid stuff, your assumptions around fills will totally dominate your results.

get a universe of illiquid stuff, normalize it, simulate buying the stuff that looks cheap, selling the stuff that looks expensive.
if you simulate that assuming no trading frictions (trade at midprice whenever you want) then it will look like you can make lots of money.

why?

because nobody can do that.

everyone wants to get paid to donk things back into line, but to do that you need to trade with others
and if there's only a few contracts quoted a mile wide, there's nobody to donk against.

if you simulate that you can trade at midprice, you're simulating an environment in which you've always got someone to trade against when you want.
Read 5 tweets
May 10
for small independent traders who are "full-time", applying "pro" trading approaches at tiny scale or in highly constrained places can work.

>play where your tiny size is actually size
>or do the arb but just trade the good leg
>or be in and out like a ninja on the 1 lot
but you have to be careful that you take the "idea", not the "implementation".

talk to some guy that does high frequency trading at scale and nearly everything he will tell you is important for him, isn't important for you.

you gotta steal the "essence" of things
and then hack up the crappiest acceptable first implementation to get in the market.

for me this is often spreadsheets and clicking, if possible.

if not, it's a knowingly sh!tty bot that needs babysitting, based on the simplest signal possible (so i can understand it.)
Read 5 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

Don't want to be a Premium member but still want to support us?

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

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(