Skip to content
All library documents

Multi-Timeframe ATR Volatility Stops, Trend States, and Breach Alerts

Article TradingView scripts

Summary

This indicator plots a volatility stop and trend direction using an ATR-based stop calculation, with optional higher-timeframe signals. The higher timeframe can be selected from preset steps, set as a multiple of the chart interval, or chosen directly. Users can adjust the source, lookback length, and ATR factor, and display the stop as a line or symbols, color bars, and show the selected higher timeframe.

The script can mark chart-timeframe price crossings of the higher-timeframe stop as early breaches while the higher-timeframe trend state remains unchanged. It offers alerts for reversals, changes to either trend direction, and these breach events, with optional delays and frequency settings. A non-repainting higher-timeframe mode uses prior-bar values; enabling the alternative repainting mode changes how the requested higher-timeframe values are presented. The document provides implementation details and configurable signals, but no trading results, transaction-cost analysis, or evidence that the signals are profitable.

Key ideas

  • The stop and trend state can be calculated on the chart timeframe or requested from a higher timeframe.
  • Higher-timeframe selection supports stepped intervals, a multiple of the chart interval, or a fixed interval.
  • Chart-timeframe price crossings of the higher-timeframe stop can be marked as early breaches before the higher-timeframe trend changes.
  • Alerts can be delayed after trend or breach conditions occur, and the delay timer resets when the condition recurs.
  • The script offers a mode that avoids using the current, potentially repainting higher-timeframe bar.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.