USD NET LIQUIDITY (NLQ) -important macro metric to track. Originally formulated by @42Macro, NLQ provides estimate of total liquidity to markets from Fed, treasury & bigFunds. Markets show high correlation with NLQ. Use my #python script to track this yourself w/daily update.🧵
2/ Following March 2020, the huge surge in net liquidity caused by unprecedented QE made this liquidity tide the primary driving force in markets. High correlation now seen between SPX, NDQ, DJI, BTC etc & NLQ. Great intro here by @maxjanderson:
3/ Max’s thread provides great explanation of importance of NLQ & where to get the data. You’ll need code though to display it. I’ve done this for you (in #python). It uses Fed bal. sheet (weekly) & RevRepo (daily) from FRED. It gets the TGA bal. daily series from treasury API.
4/ You’ll need an account and API key from FRED to use script. Totally free: fred.stlouisfed.org
You can also see NLQ on tradingview, search: WALCL-RRPONTSYD-WTREGEN
5/ TV gets the 3 series from FRED. Fed bal. sheet (WALCL) is updated weekly, TGA (WTREGEN) & RevRepo (RRPONTSYD) bal. are updated daily. From FRED, you get only weekly average of TGA. Thus NLQ series on TV is mostly weekly data and doesn’t move much on the daily.
6/ My script output compared to trading view. Hard to beat a TV chart but I think mine comes close. There may be some advantage using my script as it utilizes daily TGA data. Note differences in the NLQ traces (blue) here, especially recently.
7/ You can choose up to 5 assets for comparison. Correlation is calculated for the first asset (BTC in this case below). Prices sourced from yahoo, google finance, trading view, coin gecko and others, this covers the majority of world ticker assets.
8/ You can also view any of the FRED series with a comparison asset in charts like these.
9/ Script is easy to use even if you’ve never coded. I’ll show how to use through terminal & excel on windows,mac,linux. 1. Go to the github repo and download the repo folder (Code -> Download ZIP):
github.com/HelloThereMate…
10/ Unzip & place NetLiquidity project folder where you wish. Open terminal, Enter: python –-version to check if python installed. Also check for pip. On mac use python3/pip3.
11/ If you’ve no python/pip installed you’ll see ‘command not found’. On windows, search ‘python’ on windows app store and install latest version free. Mac/linux see:
docs.python-guide.org/starting/insta…
12/ Now you have python & pip, you’ll need the required modules used by the script. Type ‘cd’ and drag & drop the ‘NetLiquidity’ folder onto the terminal + hit enter. That will set it as the working directory.
13/ Use pip to install the required python modules, enter: 'pip install –r requirements.txt' (pip3 on mac). These are collections of python scripts like mine yet are better written and are well-vetted by community.
14/ Now you’re ready to use the script. Open 'NetLiquidity_InputParams.xlsx'. All parameters are set using this file. Simply enter ticker names, start date etc in the cells indicated in “Parameters’ sheet, save file. Helpful info & parameter descriptions is found in other sheet.
15/ .csv or .ods etc. could be used as free alternatives to excel, let me know if you want support for that. You can choose up to 5 assets to plot atop NLQ & 5 extra series to pull from FRED.
16/ Now run the script. Enter 'python ShowNetLiq.py' in terminal to run the script (python3-mac). Must have the NetLiquidity directory set. Here’s a video of the process below. Internet access necessary to run script.
17/ Let’s compare the data with other sources for verification. TV comparison on tweet 6. Below at top is @42Macro chart from Jan 3 and my chart at bottom. The NLQ series (blue) are almost identical.
18/ So now you can track net liquidity on a daily basis with no subscriptions required. Let me know how how it works for you & contact me with any error messages or bugs that you find. It still needs testing on OS other than mac.
20/ I think Darius Dale and @42MacroAlerts originally formulated this metric. Here’s the man himself discussing NLQ with Jack Farley (towards end of episode):
21/ That's it 4 now. Please like & retweet the first tweet if satisfaction delivered. I plan to release a series of scripts like this for average plebs to access macro data that is not previously free. Follow me if you like the sound of that. Contact me if keen to collaborate 🤝
Note: This was a redo of the same thread I dropped the day before. I found the chart pics I uploaded were low-res crap. These charts are higher res. Gotta have high resolution.

• • •

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

Keep Current with Bootleg Macro Pleb ⚡🟠🪙👍

Bootleg Macro Pleb ⚡🟠🪙👍 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 @Tech_Pleb

Jan 29
USD NET LIQUIDITY (NLQ) - important macro metric to track. Originally formulated by @42Macro, NLQ provides estimate of total liquidity to markets from Fed, treasury & bigFunds. Markets show high correlation with NLQ. Use my #python script to track this yourself w/daily update.🧵
2/ Following March 2020, the huge surge in net
liquidity caused by unprecedented QE made this liquidity tide the primary driving force in markets.
High correlation now seen between SPX, NDQ, DJI, BTC etc & NLQ.
Great intro here by @maxjanderson:

3/ Max’s thread provides great explanation of why NLQ is important & where to get the data. You’ll need a script though to display it.
I’ve done this for you. It uses Fed bal. sheet (weekly) & RevRepo (daily) from FRED. It gets the TGA bal. daily series from treasury API.
Read 25 tweets
Mar 7, 2022
Yield farming (YF) basics part 1: understanding impermanent loss. This will be the first of a series of threads covering defi fundamentals. Part 1.1: impermanent loss (IL) in one dimension. IL curve log base 10 X-axis, full range.
IL is the no. #1 thing to learn about if getting involved in YF. There are some good guides and threads out there covering the topic. Here are some (sorry if I missed yours): finematics.com/impermanent-lo…
medium.com/auditless/how-…
See main equations below. You may have seen equation (3) before which produces the IL curve that everybody seems to use. Most IL calculators you will find just use this equation. This only describes your full IL if you start with the 50-50 pair (no swaps).
Read 13 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!

:(