OPEN-SOURCE SCRIPT

Previous Day and Week Ranges

업데이트됨
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.
릴리즈 노트
Minor bug fix
릴리즈 노트
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.
릴리즈 노트
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.
릴리즈 노트
nothing important
릴리즈 노트
Added max_bars_back that sets the maximum number of bars that is available for historical reference to prevent cache issue
릴리즈 노트
Fixed issue with lines not being redrawn correctly by using persistent variables for line objects.
릴리즈 노트
max_bars_back fixed
릴리즈 노트
Change log:
  • Updated color scheme
  • Added transparency to fill color
  • getPoc() function changed
릴리즈 노트
Change log:
  • getPoc() function uses math.floor now
릴리즈 노트
Chart update
릴리즈 노트
Added new Method to
Initializes the arrays within the `BarArrays` instance to empty arrays.
릴리즈 노트
Rolling back to the previous version, the method for BarArrays object init has been removed
릴리즈 노트
Changes to getPoc() Function:
  1. Proportion Logic Implementation: Added detailed volume allocation logic for full, partial, and complete slot overlaps.
  2. Data Validation: Included checks to handle empty data sets.
  3. Enhanced Index Bounds Validation: Improved index bounds validation for consistent calculations.
릴리즈 노트
added Value Area High (VAH), and Value Area Low (VAL) calculation and plots
릴리즈 노트

  1. Added previous Month OHLC levels
  2. Added a runtime error to verify timeframe validity and the presence of volume data
릴리즈 노트
Added new Custom Type for set of Lines
릴리즈 노트
Added line descriptions with the option to display Text Label, Value, or both
릴리즈 노트
Refactored and optimized the `getPocVahVal()` function for improved computational efficiency.
릴리즈 노트
Made minor adjustments and optimized the code to improve volume profile calculation speed.
릴리즈 노트
Added:
  • label offset
  • current vwap

릴리즈 노트
Added another Addon:
- session volume profile PoCs (historical Pocs)
- naked / untapped Pocs
릴리즈 노트
Had to revert the nPoc rendering. It will be included in the next update after resolving the issue.
릴리즈 노트
New Addon: Added Session Volume Profile (SVP) and rendering of the Nearest Naked (untapped) Point of Control.
릴리즈 노트
Displays Session Volume Profiles (SVP) with the nearest naked Points of Control (PoC) above and below the current price.
릴리즈 노트
Enhancements:

  • 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.
릴리즈 노트
Fixed an issue where the Previous Day POC was naked and resulted in two lines being plotted. Now, only a single line is displayed without overlaps.
릴리즈 노트
Resolved overlapping of daily, weekly, and monthly lines.
릴리즈 노트
Improved lines and labels rendering
릴리즈 노트
renderLine function optimized
dailyanalysisDAYnakedpocPOCrangesresistencestatisticssupportVolume Profileweekweeklyanalysis

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?


또한 다음에서도:

면책사항