OPEN-SOURCE SCRIPT

My Price Curtain by @magasine - v20251217

175
**My Price Curtain by magasine - v20251217**

This is a highly visual and practical TradingView overlay indicator designed to help traders quickly assess price position relative to a reference average (either a dynamic Simple Moving Average or a user-defined fixed price, such as a personal average entry cost).

### Key Features & Value for Traders:

- **Dynamic Price Curtain Background**
The entire chart background is lightly tinted green when price is above the average, red when below, or gray when at parity. This instant color feedback provides an immediate sense of bullish/bearish bias without needing to interpret lines or oscillators.

- **Deviation Zones (Optional)**
When enabled, semi-transparent horizontal bands appear above (green) and below (red) the average price, sized according to a user-defined percentage deviation (default 5%). These zones act as visual "fair value" corridors, highlighting over-extension or potential mean-reversion areas.

- **Persistent Horizontal Reference Lines**
- Solid blue line: the current average price (SMA or fixed)
- Dotted lines: upper and lower deviation zone boundaries
- Thin trailing line (when using SMA): connects previous SMA values for smoother trend visualization

- **Real-Time Information Panel**
A clean table in the bottom-right corner displays:
- Current average price and type (SMA(length) or FIXED)
- Latest close price
- Percentage distance from the average
- Total candles above/below the average (with percentages)
- Current position status (ABOVE/BELOW/AT AVERAGE) with color-coded highlighting

- **Additional Visual Cues**
- Small triangle markers on crossovers/crossunders of the average price
- Floating label on the last bar showing the average and current % deviation

- **Optional Cross Alerts**
Configurable alerts fire when price crosses above or below the reference average, including price, average, and deviation details.

### Why Traders Love It:
- Perfect for position traders monitoring performance relative to their average cost
- Great for mean-reversion or range-bound strategies using the deviation zones
- Excellent contextual awareness tool on any timeframe or asset
- Clean, non-cluttered design that enhances rather than overwhelms price action

In short, My Price Curtain transforms a simple moving average into a powerful, intuitive "price sentiment dashboard" that delivers instant visual context and actionable information at a glance.

Donations: linktr.ee/magasine

Pernyataan Penyangkalan

Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.