OPEN-SOURCE SCRIPT
Asset % Performance vs Base Index [Dots3Red]

General idea of the indicator
This indicator is designed to indicate the asset % performance within the chosen time period in the form of colored boxes.
Moreover, the indicator shows the historic YoY% performance of one of the 4 US indices chosen: SP500, Nasdaq 100, DJ30, or Russel 2000.
The visual boxes are shown below the main chart.
How to use the indicator?
In the indicator's settings:
It is possible to drag the boundaries of the asset's % box in the chart so as to readjust the time period.
The indicator automatically recalculates once you change the settings or drag the boundaries of the asset's box
Possible Code changes
This script is open-source, therefore, you might modify it to choose any base asset, not only US indices.
This indicator is designed to indicate the asset % performance within the chosen time period in the form of colored boxes.
Moreover, the indicator shows the historic YoY% performance of one of the 4 US indices chosen: SP500, Nasdaq 100, DJ30, or Russel 2000.
The visual boxes are shown below the main chart.
How to use the indicator?
In the indicator's settings:
- Choose the base index against which you want to check the asset % performance in the scripts.
- Choose the default time period of the ticker for which you want to see the % performance.
- Choose "Dark Theme" to redraw the boxes if you use that theme.
It is possible to drag the boundaries of the asset's % box in the chart so as to readjust the time period.
The indicator automatically recalculates once you change the settings or drag the boundaries of the asset's box
Possible Code changes
This script is open-source, therefore, you might modify it to choose any base asset, not only US indices.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Connect the dots to elevate your trading.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Connect the dots to elevate your trading.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.