OPEN-SOURCE SCRIPT

Stablecoin Dominance [LuxAlgo]

17 598
The Stablecoin Dominance tool displays the evolution of the relative supply dominance of major stablecoins such as USDT, USDC, BUSD, DAI, and TUSD.

Users can disable supported stablecoins to only show the supply dominance relative to the ones enabled.

🔶 USAGE

스냅샷

The stablecoin space is subject to constant change due to new arriving stablecoins, regulation, collapse of coins...etc.

Studying the evolution in supply dominance can help see the effect that certain events can have on the stablecoin sphere.

스냅샷

This dominance graph is displayed over the user price chart to easily observe the correlation between stablecoin dominances and market prices. Users can still move the tool to a new pane below if having it on the price chart is not desired.

스냅샷

🔶 DETAILS

Supported stablecoins include:

  • Tether (USDT)
  • USD Coin (USDC)
  • Binance USD (BUSD)
  • Dai (DAI)
  • TrueUSD (TUSD)


Supply dominance of a stablecoin is calculated by dividing the total supply of that stablecoin by the total supply of all enabled stablecoins. That is for N stablecoins:

Pine Script®
sd(stablecoin A) = supply(stablecoin 1) / [supply(stablecoin 1) + supply(stablecoin 2) + supply(stablecoin 3) + ... + supply(stablecoin N)


🔹Display

Users can control the fill style of the displayed areas, with "Gradient" enabled by default. Using "Solid" will use a solid color for each area:

스냅샷

This can improve the performance of the script.

Selecting "None" will not display areas.

🔶 SETTINGS

  • Fill Style: Fill style of the areas between each returned supply dominance. "Gradient" will color the areas using a gradient, while "Solid" will use a solid color.
  • Stablecoins List: List of stablecoins used for the supply dominance calculation, disabling one stablecoin will exclude it from all calculations.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.