OPEN-SOURCE SCRIPT

Past Months High And Low

391
Author: Josh0183
// Version: 1.0.0

Past Months High And Low
A configurable multi-month indicator that visualizes the current month (CM) and up to 12 previous months (PM1–PM12) on the price chart. Each month can be shown or hidden and styled with separate High/Low colors. Includes optional mid-lines, a zone overlay, and a Broken Level system with per-month coloring, labeling, and a break-marker. Proximity alerts are available to notify when price approaches key monthly levels. Auto-fade feature helps keep the chart readable by diminishing older months.

Key features:
- CM (Current Month) visualization with customizable High/Low colors and line style
- PM1 … PM12 visualization with individual visibility and color pairs
- Optional Mid Lines with a dedicated color
- Zone overlay to emphasize a price band
- Broken Level indicators with configurable colors, labels, and break markers
- Proximity alerts (Enable Proximity Alerts + Alert Distance %)
- Auto-Fade Older Months to emphasize recent activity
- Fully input-driven, scalable design for clarity and customization

Use cases:
- Trend context: observe month-over-month dynamics
- Support/resistance visualization across a rolling 12-month window
- Quick visual cues for near-term levels and potential break points
*/

// Extended "How to read" section
/*
Extended How to Read (text-only guidance)

How to read this indicator at a glance
- CM (Current Month): The active month line(s) show today’s context. If CM High/Low colors are blue/green, look for current momentum and immediate resistance/support cues around the present price.
- PM1–PM12: Each past month displays a High/Low band in its own color pair. PM1 is the most recent completed month, PM12 is the oldest visible month. More recent months are generally more relevant for short- to mid-term context.
- Mid-lines: A light reference line runs across the chart to mark the mid-point of the visible range for each month, helping you gauge how price sits relative to the month’s range.
- Zone overlay: A shaded band highlights a target zone or risk area. If price sits inside the zone, pay attention to whether price is gravitating toward the zone’s boundaries or crossing through it.
- Broken Levels: If a month’s level has been breached recently, the indicator marks the breach with month-specific colors. A “Broken” label may appear near the breached line, and, if enabled, a break marker will appear on the exact bar where the break occurred.
- Price scale labels: The scale shows which line corresponds to which month (e.g., PM1 = most recent past month, PM12 = oldest), with CM representing the current month.

Quick-start checklist (minimum viable setup)
- [ ] Set Number of Previous Months (i_numMonths) to 3–6 to validate the visuals without clutter.
- [ ] Enable CM (Show Current Month) if you want current-month context; pick CM High/Low colors that contrast with PM colors.
- [ ] Enable PM1–PM12 as needed:
- [ ] Show PM1 (the most recent past month)
- [ ] Show PM2
- [ ] … continue up to PM12 as desired
- [ ] Choose per-month High/Low color pairs that are distinct and easy to differentiate.
- [ ] If you want mid-lines, enable Show Mid Lines and select a visible Mid Line Color.
- [ ] If you want a reference band, enable Zone and adjust Zone Color to your palette.
- [ ] If you’re monitoring strength/reversals near level boundaries, enable Proximity Alerts and configure the Alert Distance (%).
- [ ] If you plan to emphasize recent activity, enable Auto-Fade and set Max Fade to taste (e.g., 40–70%).

How to read common scenarios
- Price rising toward PM1 High: look for a potential push into PM1’s upper band; watch for a test of CM boundaries for momentum shift.
- Price crossing the Zone boundary from below: the zone acts as a target; a break through the zone may indicate a stronger move; check PM2/PM3 levels for alignment.
- Break event on PM4: if a PM4 level breaches (Broken Level active), check CM and PM1–PM3 for supporting context; a break marker indicates the exact bar of breach.
- Auto-fade engaged: the most recent months (PM1–PM3) appear darker/less transparent; older months fade toward the background, helping you focus on recent dynamics.

What to look for during live trading
- Confirm convergence/divergence between CM and PM1–PM3 signals.
- Use PM1–PM3 as a layered support/resistance map; stronger confluence across several PMs increases level significance.
- If proximity alerts fire, review price relative to corresponding month’s High/Low and break status to decide on entries/exits.

Notes on readability and customization
- If you publish with many months visible (PM1–PM12), consider enabling Auto-Fade to maintain readability on smaller displays.
- For dense charts, you can temporarily hide PM9–PM12 and rely on CM plus PM1–PM6 for a cleaner view, then re-enable as needed.


면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.