tkarolak

Previous Day and Week Ranges

tkarolak Atualizado   
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.
Notas de Lançamento:
Minor bug fix
Notas de Lançamento:
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.
Notas de Lançamento:
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.
Notas de Lançamento:
nothing important
Notas de Lançamento:
Added max_bars_back that sets the maximum number of bars that is available for historical reference to prevent cache issue
Notas de Lançamento:
Fixed issue with lines not being redrawn correctly by using persistent variables for line objects.
Notas de Lançamento:
max_bars_back fixed
Notas de Lançamento:
Change log:
  • Updated color scheme
  • Added transparency to fill color
  • getPoc() function changed
Notas de Lançamento:
Change log:
  • getPoc() function uses math.floor now
Notas de Lançamento:
Chart update
Notas de Lançamento:
Added new Method to
Initializes the arrays within the `BarArrays` instance to empty arrays.

Script de código aberto

Dentro do verdadeiro espírito TradingView, o autor deste script publicou ele como um script de código aberto, para que os traders possam compreender e checar ele. Um viva ao autor! Você pode usá-lo gratuitamente, mas a reutilização deste código em uma publicação é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.

Quer usar esse script no gráfico?