OPEN-SOURCE SCRIPT

COVID19 New Cases & Threshold per 100k inhabitants

By finn
Updated
Goal is to be able to keep track of new COVID cases and see when the relative threshold is passed.
The default threshold is set to 10 new cases per 100.000 inhabitants per 14-days, please change the available inputs to change this metric

Out of curiosity I've added the population density. Because people generally live and socially interact on land I've used the land-area for population density calculation.
When comparing metrics between countries there are many more factors to be considered.

Create your own symbol list for the CONFIRMED tickers:
  • Create a new list
  • Paste the following text where you would add a symbol:
    COVID19:CONFIRMED_AT,COVID19:CONFIRMED_BE,COVID19:CONFIRMED_DK,COVID19:CONFIRMED_FI,COVID19:CONFIRMED_FR,COVID19:CONFIRMED_DE,COVID19:CONFIRMED_IS,COVID19:CONFIRMED_IE,COVID19:CONFIRMED_IT,COVID19:CONFIRMED_LV,COVID19:CONFIRMED_LI,COVID19:CONFIRMED_LT,COVID19:CONFIRMED_LU,COVID19:CONFIRMED_MT,COVID19:CONFIRMED_MD,COVID19:CONFIRMED_MC,COVID19:CONFIRMED_NO,COVID19:CONFIRMED_PL,COVID19:CONFIRMED_PT,COVID19:CONFIRMED_RO,COVID19:CONFIRMED_RU,COVID19:CONFIRMED_SK,COVID19:CONFIRMED_SI,COVID19:CONFIRMED_ES,COVID19:CONFIRMED_SE,COVID19:CONFIRMED_CH,COVID19:CONFIRMED_TR,COVID19:CONFIRMED_UA,COVID19:CONFIRMED_AE,COVID19:CONFIRMED_AR,COVID19:CONFIRMED_AU,COVID19:CONFIRMED_BR,COVID19:CONFIRMED_CA,COVID19:CONFIRMED_CL,COVID19:CONFIRMED_CN,COVID19:CONFIRMED_CO,COVID19:CONFIRMED_HR,COVID19:CONFIRMED_ID,COVID19:CONFIRMED_IL,COVID19:CONFIRMED_IN,COVID19:CONFIRMED_IR,COVID19:CONFIRMED_JP,COVID19:CONFIRMED_KR,COVID19:CONFIRMED_KW,COVID19:CONFIRMED_MX,COVID19:CONFIRMED_MY,COVID19:CONFIRMED_NZ,COVID19:CONFIRMED_PE,COVID19:CONFIRMED_PH,COVID19:CONFIRMED_SG,COVID19:CONFIRMED_TH,COVID19:CONFIRMED_US,COVID19:CONFIRMED_US_AZ,COVID19:CONFIRMED_US_CA,COVID19:CONFIRMED_US_FL,COVID19:CONFIRMED_US_IL,COVID19:CONFIRMED_US_MA,COVID19:CONFIRMED_US_NC,COVID19:CONFIRMED_US_NJ,COVID19:CONFIRMED_US_NY,COVID19:CONFIRMED_US_TX,COVID19:CONFIRMED_UZ,COVID19:CONFIRMED_VE,COVID19:CONFIRMED_ZA

Release Notes
2020-08-01
  • Added population numbers for all ~300 (currently available state/country) COVID19_CONFIRMED tickers.
  • Added moving average forward projection.
Release Notes
2020-08-01
  • Added list of all tickers with population information for easier copy-paste
  • Added list of tickers without population information
confirmedCoronavirus (COVID-19)covid-2019Simple Moving Average (SMA)

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer