Previous Day and Week Ranges

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.
- Significant code refactor for faster execution.
- Visualizes open-close and high-low values as labels with tooltips for the previous day and week.
- Plots lines and labels for the Point of Control (POC) of the previous day and week.
- 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.
- Updated color scheme
- Added transparency to fill color
- getPoc() function changed
- getPoc() function uses math.floor now
Initializes the arrays within the `BarArrays` instance to empty arrays.
- Proportion Logic Implementation: Added detailed volume allocation logic for full, partial, and complete slot overlaps.
- Data Validation: Included checks to handle empty data sets.
- Enhanced Index Bounds Validation: Improved index bounds validation for consistent calculations.
- Added previous Month OHLC levels
- Added a runtime error to verify timeframe validity and the presence of volume data
- label offset
- current vwap
- session volume profile PoCs (historical Pocs)
- naked / untapped Pocs
- markVisitedPocs(): Improved logic to mark Point of Control (PoC) lines as visited. The function now iterates through PoC levels more efficiently, updating the line color and marking the PoC as not naked when it falls within the current bar’s high and low range.
- selectNakedPOCs(): Enhanced functionality to select the last two naked PoC levels, one above and one below the current close. The function now handles edge cases and ensures accurate selection of PoC levels, improving overall reliability and performance.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Sie können dieses Script für einen schnellen Zugang auf einem Chart Ihren Favoriten hinzufügen — erfahren Sie hier mehr.
Haftungsausschluss
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Sie können dieses Script für einen schnellen Zugang auf einem Chart Ihren Favoriten hinzufügen — erfahren Sie hier mehr.