OPEN-SOURCE SCRIPT

High/Low mura vision

325
Description
High/Low mura vision plots static support and resistance lines based on the completed high and low values of the prior trading day, week and calendar month.

This script:
  • Anchors each level to the exact start and end bars of the completed period
  • Does not repaint or extend levels into the current period
  • Uses request.security() to retrieve only historical data (no lookahead)
  • This indicator was built to give traders clear, unambiguous reference points for breakout entries, pullback targets or confirmation of supply/demand zones without guessing where to draw manually.


How It Works
  1. At the close of each daily candle, the script captures high[1] and low[1] via request.security() and draws flat lines spanning only that day’s bars.
  2. Similarly, at the close of Friday’s weekly candle and the last bar of each calendar month, it draws the completed week’s and month’s high/low ranges.
  3. All lines are deleted and redrawn only once per period completion, ensuring no forward painting or hidden repainting logic.

Key Features
  • No repaint: levels appear exactly once, immediately after the period closes
  • Period‑specific: lines confined to the bars of the prior day, week or month
  • Customizable: toggle each period on/off; choose independent colors, line styles (Solid, Dotted, Dashed) and width
  • Lightweight: minimal calculations for maximum performance on any timeframe

How to Use
  1. Apply to any chart (M1 to MN).
  2. In the Inputs panel, enable the levels you need: Yesterday, Last Week or Last Month.
  3. Adjust High and Low line color, style and thickness to suit your chart layout.
  4. Use these historic levels for support/resistance, breakout confirmation or confluence with other tools.

Inputs
  • Show Yesterday’s High: toggle yesterday’s high line
  • Show Yesterday’s Low: toggle yesterday’s low line
  • Show Last Week’s High: toggle last week’s high line
  • Show Last Week’s Low: toggle last week’s low line
  • Show Last Month’s High: toggle last month’s high line
  • Show Last Month’s Low: toggle last month’s low line
  • High Line Color / Low Line Color: choose colors for each set of lines
  • High Line Style / Low Line Style: select Solid, Dotted or Dashed
  • Line Width: adjust overall thickness


Disclaimer
This script is provided “as‐is” under the Public License. It is intended for educational and analytical purposes only and does not constitute trading or investment advice. Past performance does not guarantee future results. Always perform your own analysis and manage risk responsibly.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.