People say a lot of things about trading, and most of it is worthless.

So it's useful to be able to quickly discard ideas.

Let's take an example...

Many in crypto, including @zhusu, will tell you that buying new highs is a good plan.

Is it? Let's have a look...

1/n
It's important to understand that discarding ideas is a lot easier and quicker than verifying ideas.

Your mission is not to do the most perfect simulation of reality from the offset. You'll waste a lot of time doing that.

You want to do very quick data analysis.

2/n
Plenty of time to go deep later.

We:
1. pull daily price data for all FTX spot contracts
3. for each asset for each day, calculate the 20d high
4. calculate the distance in days from the 20d high
5. calculate next day log returns

3/n
Then we summarize all our data.

We group by the number of the days from the high, and plot the mean next day return for each group.

If our friends are right, we expect to see higher next day returns the closer we are to a high... and lower the further away.

And we do.

4/n
So at least on average, we haven't discarded this idea yet.

But we need to think about how we might have just bullshitted ourselves.

One way is that this result might be dominated by a few extreme values.

Another is that this behaviour may have changed over time.

5/n
A simple way to investigate the first is to plot median returns instead of means.

If this looks substantially different, we might worry.

We see a similar pattern looking at median log returns.

6/n
Now, we might be interested in whether this effect has stayed stable over time.

It's not going to be much use to us, if all this effect was concentrated in 2019, for example.

One simple way to do this is to just split our data in subsets by date.

7/n
And when we do this, we see a consistent pattern throughout our data... which is nice.

Another useful technique is to try to squish the "shape" of those charts into a single metric we can plot every day.

That's going to give us a better idea of day to day stability.

8/n
So, let's weight each asset in inverse proportion to its distance from 20-day highs...

Our feature runs 0 to 20.

So, if an asset is:
- 0 days from its 20 day returns we'll give it a weight of 10.
- 10 days, a weight of 0
- 20 days it will get a weight of -10

9/n
And plot the cumulative sum of the the weighted next day log returns of all the assets in our data for each day.

And the extent to which it tends to go up and to the right in a smooth fashion, illustrates how consistent this effect is in our data.

10/n
We see a relatively consistent effect.

It's noisy cos its less than 3 years of daily data, it's long/short (zero net dollar exposure to crypto generally) - and, let's face it - it's pretty dumb, so you wouldn't expect more.

So we haven't been able to discard this idea.

11/n
At this point, you'd keep asking questions... do more digging.

Do we see this in individual assets by themselves? etc...

(we seem to)

Does it look distinct from the general 20d trend effect we observe?

etc etc

12/n
Then, armed with an understand of the *effect* you think is there, you might now do some simulation.

Here's a super dumb simulation (costless) of a strategy that takes equal weight long positions in every FTX spot contract that is with 5 days of its 20 day highs.

13/n
Takeaways:
- people say lots of stuff
- call bullshit on it all
- try to discard ideas as quickly as possible using simple data analysis
- if you can't discard the idea, explore the effect till you understand it
- then, and only then, simulate a trading strategy.

14/14 Fin.
For the crypto reply guy thread-skimmers coping over this...

This analysis does suggest that buying highs *IS* a good idea in crypto.

Or at least, it has been.

• • •

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

14 Nov
Sunday music post.

I grew up near Stonehenge, in the UK.

On 1 June 1985, the Wiltshire police beat the shit out of the travellers that came there for summer solstice.



"They're getting their kicks, they're laughing at you and me."
I was six years old at the time.

Even at that age, I knew exactly who these people were. 😿
Another great levellers song

open.spotify.com/track/4DjZtPbf…
Read 5 tweets
14 Nov
A man walks into a bar.

And he sees a guy with a massive orange for a head.

And he says "Sir, I can't help but notice you have a large orange for a head"

And the man says "yes I'm afraid I do"

And he buys him a drink and asks to hear his story.
"I bought a new house, and I was up in the attic, and I tripped over this dusty lamp

"And suddenly a genie was in front of me. And he looked very happy.

"And he said, 'thank you for releasing me from my bondage. Let me thank you. I will grant you two wishes"
'But I should warn you, said the genie, I interpret everything at face value, so think about what you ask me.

'Look at the piano player. He's tiny. The barman asked for a twelve inch pianist.'

"It's OK" said the man with the orange for a head, "I think I've got this"
Read 4 tweets
14 Oct
This Burry chap seems nice...
And, is it just me, or is getting absolutely balls long a concentrated hugely negative-carry bet written and marked my a more powerful counterparty, essentially a masterclass in how NOT to trade?
If I were Burry then, instead of having a cringe boomer Twitter meltdown, I would simply put on some My Chemical Romance, do some blow with some goth hookers, and blow off steam the old-fashioned way.
Read 4 tweets
8 Oct
Playing the easy games at the right time at scale. 🧵

In the early 2000s internet poker was just getting started and a vast number of the players were terrible and, at certain times, likely to be drunk.

You could do very well by simply "not doing dumb stuff".

Thread 👇👇

1/n
Some of the best games were "sit and go tournaments".

These were short single table 10 handed no limit hold'em games, with rapidly increasing blinds.

If you win you got half the prize pool, second 30%, third 20%. Everyone else got nothing.

Something like that anyway.

2/n
Optimal strategy against terrible drunk players is pretty simple.

You play extremely tight to start: only playing when you are prepared to bet your whole stack. (People would call you with anything.)

And when blinds get big you get more aggro, isolate players and steal

3/n
Read 12 tweets
4 Oct
Option Pricing for Degenerate Gamblers

You buy a call option in a heavily pumped meme stock you think is going to keep going up.

You were right, it keeps going up!

But your call is losing value. Why?

🧵for those who shouldn't be trading options but are going to anyway!

1/n
Without a good mental model, then the price of an option contract may appear to change in confusing and magical ways.

With a good model, you will understand the most important dynamics intuitively - without needing any complex maths.

This is the 101 before the 101.

2/n
[A quick administrative note so I don't confuse anyone:

To keep it simple we're going to inhabit a world where:
- options are European style
- interest rates, risk-premia, dividends, and other carrying costs don't exist.

i.e. we're gonna inhabit a risk-neutral world]

3/n
Read 28 tweets
30 Sep
Slack is down, so a quick 🧵 about pricing bets.

"What is fair value?"

It's the price at which I don't expect to make money if I'm long or short.

"Over what timescale?"

Depends on who I am and what I'm doing.

Trading 101 - Pricing the fair value of a bet. 👇👇👇

1/n
Pricing a financial instrument is similar to price any game with uncertain outcomes.

Let's play a game.

You toss a coin.

If it comes up heads I give you $10.

If it comes up tails I give you nothing.

How much would you pay to play the game?

2/n
To work this out, write down:

1. All the potential outcomes.
2. The probability of each occurring
3. The payoff if it occurs.

The expected return for playing the game for free is the sum of:

[probability of outcome] * [payoff if it happens]

for all outcomes.

3/n
Read 21 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

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

Donate via Paypal

Thank you for your support!

Follow Us on Twitter!

:(