OPEN-SOURCE SCRIPT
Updated Margin Pressure Thresholds

If you thought margin trading liquidation levels only mattered to those trading with leverage, think again. Margin traders wield significantly more capital than your average retail investor, and their collective behavior can move markets quite predictably. The basic premise (theory popularized by Forrest Cryptostackers YouTube) is that margin traders will have their liquidation points protected by strong support (for longs) or resistance (for shorts). Therefore, by simply identifying strong support/resistance levels, we can predict the thresholds at which margin buying and selling pressure will subside.
This indicator is interactive, so it just takes a click. Select a strong support level to see where margin buying pressure is likely to drop off, i.e. where to expect resistance and a potential local top. Or, select a strong resistance level to see expected support and anticipate the local bottom. Even better, look at long and short levels together to identify high probability support/resistance zones where levels align.
And for margin traders, this indicator makes life easy. Just click to select the support/resistance you want protecting your liquidation level, and quickly see the amount of leverage is safe to trade with.
This indicator is interactive, so it just takes a click. Select a strong support level to see where margin buying pressure is likely to drop off, i.e. where to expect resistance and a potential local top. Or, select a strong resistance level to see expected support and anticipate the local bottom. Even better, look at long and short levels together to identify high probability support/resistance zones where levels align.
And for margin traders, this indicator makes life easy. Just click to select the support/resistance you want protecting your liquidation level, and quickly see the amount of leverage is safe to trade with.
Release Notes
Tooltip variable as global var to avoid repeated evaluationRelease Notes
Added settings to customize text size and vertical padding for levelsOpen-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.