Skip to content
All library documents

Flashing Chart Alerts for Indicator Conditions

Article TradingView scripts

Summary

This indicator provides a visual alert framework that briefly alternates chart colors and optional text when user-defined conditions occur. The example conditions are moving-average crossovers, with separate settings for upward and downward events. Users can choose the colors, messages, number of flashes, and whether to show a flash counter; the supplied logic can be replaced with other conditions.

The script distinguishes persistent conditions from transient intrabar events and uses realtime feed updates to control its color cycle. Repeated transient events may be skipped while a previous cycle is still running, and reducing the cycle count can lessen overlap. The indicator is an alert display, not a trading strategy, and gives no performance evidence. Flashing visuals may obscure chart content and can pose a seizure risk for people with photosensitive epilepsy.

Key ideas

  • The indicator flashes configurable colors and optional messages when conditions occur.
  • The example uses fast and slow moving-average crossovers as upward and downward triggers.
  • Persistent conditions trigger one color cycle, while transient conditions can trigger on intrabar occurrences.
  • An unfinished flash cycle may cause a later transient event to be skipped.
  • The script provides no evidence that its alerts produce profitable trades.

Tags

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