OPEN-SOURCE SCRIPT

Quarterly/Monthly/Weekly Performance | Astral Vision

399
Quarterly/Monthly/Weekly Performance | Astral Vision 🌠💠

Price performance measured over fixed trailing windows (7, 30, and 90 bars) captures the momentum of Bitcoin's move at three structurally distinct timescales simultaneously.
Weekly performance reflects short-term trend pressure; monthly performance captures the medium-term cycle direction; quarterly performance reveals whether the broader macro trend is accumulating or distributing. Reading all three in a single panel eliminates the need to switch timeframes to understand where momentum stands across the full temporal structure.

This indicator plots trailing price performance as gradient-filled columns for each active window, with configurable overbought and oversold thresholds that identify statistically extreme moves. All three windows can be active simultaneously or independently, and each drives its own overlay on the price chart through candle coloring or background highlighting.

Calculation ⚙️

`Performance = (close − close[N]) / close[N] × 100`

Where N is 7, 30, or 90 bars for weekly, monthly, and quarterly windows respectively. The result is a simple trailing percentage return expressed relative to the close N bars ago, with no smoothing applied — preserving the raw momentum read at each timescale.

Plots 📊
  • Performance columns for each active window (weekly, monthly, quarterly) with gradient fill, opaque at the column tip, fading toward zero
  • Zero baseline
  • Overbought and oversold threshold lines for each active window
  • Background highlight on the price chart when any active window's performance breaches a threshold (Background Color mode)
  • Candle coloring on the price chart by the sign of the active window's performance (Plot Candle mode)


Inputs 🎛️
  • `Overlay Mode`: Background Color, Plot Candle, or None for price chart output
  • `Show Weekly / Monthly / Quarterly`: independent toggles for each performance window
  • `Weekly OB / OS Threshold`: extreme levels for the 7-bar window (defaults +20 / −15)
  • `Monthly OB / OS Threshold`: extreme levels for the 30-bar window (defaults +35 / −20)
  • `Quarterly OB / OS Threshold`: extreme levels for the 90-bar window (defaults +50 / −30)


Colors 🎨

5 Astral Vision presets + custom override. Default: Hermes. Positive color applies when performance is above zero; negative color applies when performance is below zero. Both the column fills and the price chart overlays follow the same coloring logic.

Purpose 🎯

Standard momentum indicators process price through mathematical transformations (RSI, MACD, stochastic) that make their absolute values abstract and cycle-dependent. A trader looking for a direct answer to "how much has Bitcoin moved in the last month?" gets no clean output from any of those tools.

This indicator answers that question directly with no transformation, keeping the output in percentage terms that are immediately interpretable.
The three-window structure lets traders read weekly, monthly, and quarterly momentum in a single panel, identifying divergences between timescales, such as a strong monthly trend with an overextended weekly reading, that single-window indicators cannot surface.
The threshold system identifies when a given trailing return has reached historically extreme levels for that window, providing a contextual signal layer on top of the raw performance read.

Disclaimer ⭕️

It is not financial advice, not an investment recommendation, and not affiliated with any financial institution, research firm, or organization of any kind. All content is provided for educational and informational purposes only. Always conduct your own research before making any financial decision.

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน