tkarolak

Previous Day and Week Ranges

tkarolak Aggiornato   
I've designed the "Previous Day and Week Ranges" indicator to enhance your trading strategy by clearly displaying daily and weekly price levels. This tool shows Open-Close and High-Low ranges for both daily and weekly timeframes directly on your trading chart.

Key Features:

  • Potential Support and Resistance: The indicator highlights previous day and week ranges that may serve as key support or resistance levels in subsequent trading sessions.
  • Customizable Display Options: Offers the flexibility to show or hide daily and weekly ranges based on your trading needs.
  • Color Customization: Adjust the color settings to differentiate between upward and downward movements, enhancing visual clarity and chart readability.

This indicator is ideal for traders aiming to understand market dynamics better, offering insights into potential pivot points and zones of price stability or volatility.
Note di rilascio:
Minor bug fix
Note di rilascio:
Changelog
  1. Significant code refactor for faster execution.
  2. Visualizes open-close and high-low values as labels with tooltips for the previous day and week.
  3. Plots lines and labels for the Point of Control (POC) of the previous day and week.
Note di rilascio:
New functions and type:
  • Introduced RangeColors type for improved color management.
  • renderLine function for easier creation and updating of lines.
  • copyAndClear method to handle data copy and clearing between BarArrays.
Note di rilascio:
nothing important
Note di rilascio:
Added max_bars_back that sets the maximum number of bars that is available for historical reference to prevent cache issue
Note di rilascio:
Fixed issue with lines not being redrawn correctly by using persistent variables for line objects.
Note di rilascio:
max_bars_back fixed
Note di rilascio:
Change log:
  • Updated color scheme
  • Added transparency to fill color
  • getPoc() function changed
Note di rilascio:
Change log:
  • getPoc() function uses math.floor now
Note di rilascio:
Chart update
Note di rilascio:
Added new Method to
Initializes the arrays within the `BarArrays` instance to empty arrays.
Note di rilascio:
Rolling back to the previous version, the method for BarArrays object init has been removed

Script open-source

Nello spirito di condivisione promosso da TradingView, l'autore (al quale vanno i nostri ringraziamenti) ha deciso di pubblicare questo script in modalità open-source, così che chiunque possa comprenderlo e testarlo. Puoi utilizzarlo gratuitamente, ma il riutilizzo del codice è subordinato al rispetto del Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.

Vuoi usare questo script sui tuoi grafici?