PROTECTED SOURCE SCRIPT

Levels by @crypto.erke

240
I often use key levels to spot support/resistance zones, especially from higher timeframes like the previous month or week. I built this indicator to automatically plot the previous period's central level along with customizable bands (using std dev or percentage offsets) as horizontal lines on your chart. It helps visualize confluence areas for entries, stops, or targets without manual calculations.

Key Features:

Period Selection: Choose "Month" or "Week" to base levels on the previous full period's data.
Central Level Calculation: Uses HLC3 source by default (customizable), resetting at the start of each new period.

Bands Modes:
Standard Deviation: Bands at ±1σ, ±2σ, ±3σ (multipliers adjustable).
Percentage: Bands as % offsets from the central level.

Toggleable Bands: Show/hide each band pair (±1, ±2, ±3) individually.
Style Customization: Line widths, colors (e.g., blue for the central line, green/olive/teal for bands), and styles (solid, dotted, dashed).
Persistent Lines: Draws lines for the previous period's levels, extending them across the chart as new bars form. Limits to 500 lines for performance.
Real-Time Friendly: Works on any timeframe; ideal for intraday charts to overlay higher-period levels.

Why This Indicator?

Simplifies Analysis: Get instant access to previous month/week levels without switching charts or using multiple indicators.
Versatile for Strategies: Great for mean-reversion trades (bouncing off bands), breakouts (above/below the central line), or confirming trends. I use it daily in crypto for quick scalp setups.
Clean & Efficient: No fills or clutter—just clean lines that update dynamically. Switch to dotted/dashed for less visual noise.

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.