ltrd Profile picture
Jun 10, 2022 12 tweets 4 min read Read on X
Creating Trend Lines systematically

Today, I would like to present the idea of how to systematically create trend lines to find trends in prices, find divergences in indicators and remove outliers in your trending data. #Trading #Cryptocurrency #AlgoTrading
I see a lot of people that base their systems on trend lines or divergences between some indicator and the price. Although my systems are not related to this kind of trading, it is really fun to come up with new ideas and try quantifying market relations.
Idea is to use quantile regression rather than simple linear regression. What we try to do is to estimate conditional quantile function - intuitively we do not estimate the mean for some population but rather a quantile of this population based on some variables.
Here we have some randomly generated data. It has some trend and we would like to find boundaries of this trend prices, just like we do often with finding divergences or removing outliers. Image
We can remove every data point that lies above the upper trend line generated by quantile regression and below the lower line generated. It can easily remove you with a systematic manner the outliers from trending data, but it is not the best utility that it has. Image
This is a plot of an hour of data from ETHUSDT for Binance Futures perpetual swap. You can see a downtrend and we will use quantile regression to find a specific trendline and countertrend in CVD (Cumulative Volume Delta) for this instrument. Image
We created a model just by doing something like that → statsmodels.formula.api.quantreg('CVD ~ ind', ethusdt).fit(q=0.01). We did the prediction using this model and it looks like that. Image
A really interesting pattern can be seen in CVD data for this particular hour. You can see quite a significant uptrend and also - as a conclusion - a divergence between price and CVD. I know that a lot of you guys using something like this to predict countertrend entry. Image
You should try to do something like this for yourself. Firstly on synthetic data created for yourself (it is also a good skill to create appropriate synthetic data very fast) and then on real data, but remember (!) that the most important are ideas - not the technique.
Think about how to use it. Do not focus on making money, but try to think about how this technique can be used in a broader range. The first thing that comes to my mind is something like this.
Find all of the situations on the market when there is the highest divergence between price and CVD measured by the difference between the slope of the trendline of price and CVD. Analyze all of the outliers in those values and check if something is interesting. Be creative.
As @therobotjames mentioned today → that’s it. That’s the tweet.

• • •

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

Keep Current with ltrd

ltrd 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 @ltrd_

Feb 9
I guess most people would say we've had a small (or maybe not-so-small) bull run over the last 3–4 months. I analyzed data from before the US elections and checked the price statistics for coins traded on Binance. Nearly 70% of coins are now trading lower than they were before the elections!

That seems pretty crazy given the recent market sentiment. Let’s take a Sunday afternoon break and dive into the data.Image
Here are the top 5 performing coins during this period:

HBAR (+434%)
XRP (+369%)
OM (+343%)
XLM (+255%)
VTHO (+211%)

And the bottom 5:

NEIRO (-76%)
RUNE (-76%)
BOME (-73%)
PEOPLE (-70%)
WIF (-67.8%)

Below, you’ll find the full TOP 10 and BOTTOM 10 rankings for this period. Image
Now, here’s a really interesting chart. It shows the percentage of instruments that reached their highest price (so far) before a specific date. It turns out the crucial period for traders was between December 3rd and December 9th—almost 80% of coins hit their peak during this short window.Image
Read 5 tweets
Feb 5
Crazy Monday sell-off ahead! As always, I’ve analyzed the most critical moments of this event. I promise you’ll find shocking numbers and insights on this massive sell-off. In this “episode,” I’ll explain:

Why did ETH drop so much more than BTC?
Where did traders use this dump to accumulate huge amounts of coins?
What was the largest single-minute dump?
How extreme was the sell pressure on ETH?
Which coins resisted the sell pressure and recovered quickly?

Get ready for a thread packed with insights that will break down these wild Monday market moves. I hope you’ll discover some surprising facts! Appreciate any thoughts and shares.

#Bitcoin #Binance #Ethereum #CryptoImage
We need to focus on ETH because the scale of the sell-off is insane. Compared to BTC, ETH dropped significantly harder, and I’d like to show you where this is visible on the charts.
First, let’s compare CVD (the net sum of buy and sell trades) for BTC and ETH on Binance Spot. It’s shocking that sell pressure was equal on both, despite BTC having a market cap six times larger. ETH’s CVD was around -$250 million. On Binance Futures, the sell pressure on ETH was even greater than on BTC, which is absolutely wild.Image
Read 18 tweets
Jan 20
$TRUMP MEMECOIN BREAKDOWN 🧵

It was one of the craziest events we have ever witnessed. In less than three days, TRUMP's turnover on Binance alone caught up with the total turnover of all US equities for the entire month of January. In this tweet, I will try to highlight the most important insights from a microstructure perspective. We will examine where people were buying and selling $TRUMP, where the largest market impacts occurred, and which moments were the most significant in the trading timeline. Additionally, we will take a closer look at the Binance Spot listing, which was likely the most pivotal event.

#Trump $TRUMP #BinanceImage
The first plot shows price action on centralized exchanges during the first 60 minutes post-listing. It’s crucial to analyze which exchange impacted the market most. Despite Binance being listed later than others, it had a big market impact and performed exceptionally well.
The second plot is crazy. It shows the CVD for several spot exchanges. Binance’s buy pressure was spectacular in the first few dozen minutes. Compare this to other exchanges. A deeper analysis of Binance’s listing will be necessary later. Image
Read 12 tweets
Dec 10, 2024
Today’s dump resulted in the biggest liquidation since 2021. I would like to present a microstructure view of this entire situation. As always, this thread is full of insights, charts, and comments.

Retweet if you enjoyed the analysis. Image
Firstly, when discussing this kind of dump, we need to determine where the pressure was greatest. We observed something crazy—Coinbase traders began selling aggressively almost an hour before the mega dump. Image
Of course, the biggest drop was triggered by a liquidation cascade, but this constant selling pressure was crucial in pushing the price into a region where overleveraged positions were forced to close. How can we tell that the market was overheated? It’s simple—the Funding Fee plus the increase in Open Interest. These two factors are drivers of the current market and indicate that people are overleveraged.
Read 12 tweets
Dec 3, 2024
Korea declared Martial Law. It was one of the most spectacular trading events I've ever witnessed in my trading career. I've prepared detailed explanations of what exactly happened in the market and why it was so different from any other event. If you enjoyed it, please retweet! Image
BTC on Upbit was priced under $65k, while we saw almost $95k on Binance— $30k difference between Korea and the rest of the world. That was absolutely crazy. We observed big sell pressure, with almost $7mm more in sell orders than buy orders. The next plot is the most important.
Here, we have the price action as well as CVD for USDTKRW. You can see that about $50mm was sold in a couple of minutes. With normal liquidity, that would not have been so brutal, but all the players just disappeared from the market, causing a drop to 75 cents. Image
Read 9 tweets
Nov 9, 2024
🧵BTC vs. Polymarket @Polymarket analysis

As you can see on the plot, price action of BTC and TRUMP winning elections is pretty similar. Significant moves were seen both on BTC and TRUMP from around midnight UTC.
Let's deep dive a little bit more into the data.

#Election2024 Image
It can be seen that in time of bigger volatility BTC was reacting much faster that polymarket. The time difference is of course much, much bigger than block time.
Here we have regression plot for price differences (15 minutes) on BTC and TRUMP. You can clear see how correlated they are. Image
Read 6 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!

:(