OPEN-SOURCE SCRIPT
Atualizado

Essa - Multi-Timeframe Levels

640
Enhanced Multi‐Timeframe Levels

This indicator plots yearly, quarterly and monthly highs, lows and midpoints on your chart. Each level is drawn as a horizontal line with an optional label showing “<Timeframe> <LevelType> – <Price>” (for example “Apr 2025 High – 1.2345”). If two or more timeframes share the same price (within two ticks), they are merged into a single line and the label lists each timeframe.

A distance table can be shown in any corner of the chart. It lists up to five active levels closest to the current closing price and shows for each level:

  • level name (e.g. “May 2025 Low”)
  • exact price
  • distance in pips or points (calculated according to the instrument’s tick size)
  • percentage difference relative to the close


Alerts can be enabled so that whenever price comes within a user-specified percentage of any level (for example 0.1 %), an alert fires. Once price decisively crosses a level, that level is marked as “broken” so it does not trigger again. Built-in alertcondition hooks are also provided for definite breaks of the current monthly, quarterly and yearly highs and lows.

Monthly lookback is configurable (default 6 months), and once the number of levels exceeds a cap (calculated as 20 + monthlyLookback × 3), the oldest levels are automatically removed to avoid clutter. Line widths and colours (with adjustable opacity for quarterly and monthly) can be set separately for each timeframe. Touches of each level are counted internally to allow future extension (for example visually emphasising levels with multiple touches).
Notas de Lançamento
Updated Lines to Extend
Notas de Lançamento
Updates

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.