TradingView
BigPhilBxl
21 sept. 2021 15:23

Crypto Market Cap Oscillator 

EGLD / TetherUSBinance

Description

this oscillator gives helps you to select the right buy or sell moment based on the market cap of the token of your choice
It is based on a base 100 oscillator
Black plot is BTC marketcap
Gray plot is total ALT marketcap

Coloured is based on the coin of your choice
The greener the plot, the best buy opportunity
The more red the plot, the best sell opportunity

Notes de version

  • Fixed typo
  • Better dark mode support for both BTC and TOTAL3 plots
  • Renaming horizontal lines as it is the baseline & BTC + TOTAL3 crossings you should look at

Notes de version

converted to pinescript v5

Notes de version

  • Display the marketcap of the current symbol automatically ( thanks @EltAlt )
  • Change gradient to new pinescript way style

Notes de version

display clean chart
Commentaires
EltAlt
Great work @BigPhilBxl! Suggestion for automatically displaying the marketcap of the current symbol, change lines 14 and 29 to:
custom_market_cap = input.symbol(title='Custom Crypto Cap', defval='', group='Market Cap')
custom_cap = request.security (custom_market_cap == '' ? ticker.new ('CRYPTOCAP', syminfo.basecurrency) : custom_market_cap, timeframe.period, close)
BigPhilBxl
@EltAlt, Thanks for your input, I have integrated your code
SupanatFrank
Which altcoin that you recomment to use this indecator?
BigPhilBxl
Hi @SupanatFrank,
you can select the cryptoasset you want, as long as the MARKET CAP is available:
in the settings > inputs > custom crypto cap: you can replace CRYPTOCAP:EGLD by CRYPTOCAP:ticker
not all cryptoassets are available, but here are a few
CRYPTOCAP:BTC
CRYPTOCAP:ETH
CRYPTOCAP:SOL
CRYPTOCAP:EGLD
CRYPTOCAP:ADA
CRYPTOCAP:AVAX
CRYPTOCAP:AAVE

some are even combined:
CRYPTOCAP:TOTAL (global market cap)
CRYPTOCAP:TOTAL2 (global market cap excl BTC)
CRYPTOCAP:TOTAL3 (global market cap excl BTC and ETH)
CRYPTOCAP:OTHERS (all other tickers that are not in the list)

Therefore I would suggest you to use CRYPTOCAP:ticker if it exists, else: CRYPTOCAP:OTHERS

Hope this helps ;-)
Plus