All indicators

MACD signal with alert (long/short/close) for TV free account

Feb 4, 2021

Static chart image
SignalsOscillatorsMoving Averages

The MACD signal with alert (long/short/close) for TV free account indicator provides a comprehensive moving average convergence divergence toolkit designed to generate actionable trading signals and automated alerts.

Usage

The indicator can be used to identify trend momentum shifts and potential entry or exit points. Users can monitor the histogram crossovers and slope changes to determine the current market state.

  • Long Signals: Occur when the MACD histogram crosses above the zero line, indicating bullish momentum.
  • Short Signals: Occur when the MACD histogram crosses below the zero line, indicating bearish momentum.
  • Exit Signals: Generated when the histogram's absolute value begins to decrease, suggesting a weakening of the current trend.

The tool is specifically optimized for alerts, utilizing a "Bot" plot that outputs specific integers (3 for Buy, -2 for Short, 0 for Close) to facilitate integration with third-party execution services or simple email notifications.

Details

The script calculates the standard MACD line as the difference between a fast and a slow moving average. A signal line is then derived from the MACD line using a specified smoothing period. The histogram represents the difference between the MACD and the signal line.

Implementation features include:

  • Flexible MA selection (SMA or EMA) for both the oscillator and the signal line.
  • Dynamic histogram coloring to visualize momentum acceleration and deceleration.
  • Pre-configured alert conditions compatible with standard TradingView accounts.

Settings

  • Fast Length: Sets the period for the fast moving average.
  • Slow Length: Sets the period for the slow moving average.
  • Source: Determines the price data used for calculations (e.g., Close, Open, High, Low).
  • Signal Smoothing: Adjusts the period for the signal line calculation.
  • Simple MA(Oscillator): If enabled, uses Simple Moving Averages instead of Exponential Moving Averages for the MACD lines.
  • Simple MA(Signal Line): If enabled, uses a Simple Moving Average for the signal line smoothing.

FAQ

How do I interpret the numerical bot alerts? The script uses a specific numbering system for alerts: 3 represents a buy/long signal, -2 represents a short signal, 0 represents a position close, and 1 indicates no change or ignore.

Can I use this on a free TradingView account? Yes, the script is designed to work within the constraints of a standard account, allowing for effective alert management.

How can I access MACD signal with alert (long/short/close) for TV free account? 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.