All indicators

Multiple Alerts

Mar 22, 2021

Static chart image
SignalsOscillatorsMoving AveragesVolatility

The Multiple Alerts indicator tool provides a comprehensive alert system and moving average visualization designed to monitor several technical conditions simultaneously. By combining multiple popular technical indicators into a single script, it allows traders to receive notifications for various price action and momentum events without needing multiple separate indicator slots.

Usage

The tool is primarily used as an automated monitoring system. It plots two moving averages on the chart, which can be configured as either Simple Moving Averages (SMA) or Exponential Moving Averages (EMA). Beyond visual analysis, the script actively triggers alerts based on the following conditions:

  • Price and SMA Crosses: Alerts trigger when the price crosses above or below a 14-period SMA.
  • SMA Fast/Slow Crosses: Notifications are sent during crossovers and crossunders of a 10-period and 20-period SMA.
  • MACD Signals: Triggers occur on MACD/Signal line crossovers (Golden/Death crosses) and MACD zero-line crossings.
  • RSI Levels: Alerts are generated when the RSI (14) crosses above the 70 overbought level or below the 30 oversold level.
  • Bollinger Bands: Triggers occur when the price crosses the upper, lower, or middle basis bands.
  • Momentum: Alerts are sent when the 14-period Momentum oscillator crosses the 0 level.

Details

The script functions by evaluating several technical logic blocks on every bar. It uses standard calculations for its components:

  • Moving Averages: The on-chart plots utilize user-defined lengths (default 12 and 26) and can toggle between SMA and EMA calculations.
  • Alert Optimization: Each alert condition is wrapped in a function that uses alert.freq_once_per_bar to prevent notification spamming while ensuring timely delivery of signals once conditions are met.
  • Bollinger Bands: Calculated using a 20-period SMA with a 2-standard deviation multiplier.

Settings

  • Simple MA: A toggle to choose between Simple Moving Average (checked) or Exponential Moving Average (unchecked) for the on-chart plots.
  • fast MA length: Adjusts the period for the "Fast" moving average displayed on the chart.
  • slow MA length: Adjusts the period for the "Slow" moving average displayed on the chart.

FAQ

How do I use the Multiple Alerts indicator?

The indicator is designed to be added to your chart to monitor price action across several technical lenses. You simply need to set up an alert on the indicator using the TradingView alert menu to start receiving notifications based on the internal logic.

Can I change the periods for the alerts?

Currently, the alert logic uses hardcoded standard periods (e.g., RSI 14, SMA 14/10/20) for consistency, while the on-chart moving averages can be customized via the input settings.

How do I get access to Multiple Alerts?

You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.