Guppy w/Alerts
May 13, 2018

The Guppy w/Alerts indicator provides a comprehensive visualization of trend strength and direction by utilizing two groups of Exponential Moving Averages (EMAs) to identify momentum shifts and agreement across multiple timeframes.
Usage
The Guppy w/Alerts tool is primarily used to identify trend transitions and periods of consolidation. Users can monitor the interaction between two sets of averages:
- Fast EMAs: These represent short-term sentiment and momentum. When they are in full agreement (aligned in ascending or descending order), they change color to indicate a bullish or bearish short-term trend.
- Slow EMAs: These represent the long-term trend. Agreement among these moving averages signals a robust primary trend.
The indicator uses color-coding to simplify interpretation:
- Bullish (Green/Aqua): Occurs when the EMAs are in positive alignment (shorter periods above longer periods).
- Bearish (Red/Orange): Occurs when the EMAs are in negative alignment (shorter periods below longer periods).
- Neutral (Gray): Occurs when the EMAs are intertwined, suggesting a lack of clear trend agreement.
Details
This implementation is based on the Guppy Multiple Moving Average (GMMA) concept developed by Daryl Guppy. The script calculates 12 different EMAs divided into two distinct groups.
The "Agreement" logic is strict: for the fast group to show a bullish trend, EMA 1 must be greater than EMA 2, which must be greater than EMA 3, and so on. If any single EMA in the sequence breaks this order, the group is considered neutral. This provides a more rigorous filter than simply looking at a single fast vs. slow crossover, helping traders avoid "whipsaw" price action during choppy markets.
Settings
- Fast EMA 1 - 6: These inputs define the periods for the short-term group of moving averages (defaulting from 3 to 15).
- Slow EMA 7 - 12: These inputs define the periods for the long-term group of moving averages (defaulting from 30 to 60).
FAQ
How do I set up alerts for trend changes?
In the TradingView Alerts dialog, select "Guppy w/Alerts" as the condition. You can then choose from "Fast Trend Switch" (short-term changes), "Slow Trend Switch" (long-term changes), or "Trend Switch" (any change in either group).
What does "Trend Switch" actually alert on?
A Trend Switch alert is triggered whenever a set of EMAs transitions between bullish, bearish, or neutral states. This includes transitions such as neutral to bullish or bearish to neutral.
How can I access Guppy w/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.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.