Aura Trend & Candlestick Matrix [Pineify]Aura Trend & Candlestick Matrix — EMA Trend Cloud with Trend-Aligned Candlestick Pattern Detection and Dynamic Support & Resistance
The Aura Trend & Candlestick Matrix is a multi-layered technical analysis indicator that fuses an EMA-based trend cloud, classic candlestick pattern recognition, and pivot-derived support and resistance levels into a single, cohesive overlay. Its core philosophy is confluence : rather than firing candlestick signals in isolation, every pattern must first pass through a directional trend filter before it reaches the chart. A Hammer is only displayed when the trend cloud confirms bullish momentum; a Shooting Star only appears when the cloud is bearish. This trend-alignment mechanism dramatically reduces noise and false signals, giving traders a cleaner, higher-probability view of potential reversal and continuation setups — all without leaving the price chart.
Key Features
Dual-EMA "Aura Cloud" that visually maps trend direction and strength through a color-coded filled region between a fast and slow exponential moving average
Three families of candlestick pattern detection — Hammer / Shooting Star, Bullish / Bearish Engulfing, and Morning Star / Evening Star — each identified using precise shadow-to-body ratio and multi-bar structural rules
Trend-alignment filter that only surfaces bullish patterns during confirmed uptrends and bearish patterns during confirmed downtrends, eliminating counter-trend noise
Dynamic pivot-based support and resistance levels that automatically update as new structural highs and lows are confirmed
Optional candle coloring that tints every bar green or red based on the prevailing trend for instant visual context
Built-in alert conditions for both bullish and bearish setups, enabling automated notification workflows without additional configuration
How It Works
The indicator is built on three independent analytical engines that feed into a unified signal pipeline.
Engine 1: The Aura Trend Cloud
Two exponential moving averages — a fast EMA (default 20 periods) and a slow EMA (default 50 periods) — are plotted on the chart. When the fast EMA is above the slow EMA, the trend is classified as bullish; when below, bearish. The region between the two EMAs is filled with a semi-transparent color (green for bullish, red for bearish), creating the "Aura Cloud." This cloud serves two purposes: it provides an immediate visual representation of trend direction and strength (a widening cloud suggests strengthening momentum), and it acts as the gatekeeper for all candlestick pattern signals.
Engine 2: Candlestick Pattern Detection
The pattern detection engine analyzes candle anatomy using shadow-to-body ratios and multi-bar structural relationships:
Hammer & Shooting Star — Single-candle patterns identified by comparing the lower shadow proportion, upper shadow proportion, and body proportion relative to the full candle range. A Hammer requires a lower shadow at least twice the body size, a body less than 50% of the range, an upper shadow under 15%, and a bullish close. The Shooting Star applies the mirror criteria with a bearish close. Doji candles (body < 10% of range) are excluded to avoid ambiguity.
Bullish & Bearish Engulfing — Two-candle patterns where the current candle's real body completely wraps the previous candle's body. An additional 120% size threshold ensures the engulfing candle demonstrates meaningful conviction beyond a marginal overlap.
Morning Star & Evening Star — Three-candle reversal patterns. A Morning Star requires a bearish candle two bars ago, a small-bodied middle candle (less than 50% of the prior body), and a bullish current candle that closes above the midpoint of the first candle's body. The Evening Star applies the inverse logic.
Engine 3: Dynamic Support & Resistance
The indicator uses Pine Script's pivot detection functions with a configurable lookback window (default 10 bars on each side). When a bar's high is confirmed as the highest within the lookback window, it becomes the current resistance level. When a bar's low is the lowest, it becomes the current support level. These levels persist on the chart as circle markers until a new pivot replaces them, providing a continuously updated structural reference frame.
Trading Ideas and Insights
Cloud Bounce + Pattern Confirmation — When price pulls back to the Aura Cloud boundary during an uptrend and a Hammer or Bullish Engulfing pattern fires at the cloud's edge, this represents a high-confluence long entry. The cloud acts as dynamic support, and the candlestick pattern provides the timing trigger.
Trend Reversal Detection — Watch for Morning Star or Evening Star patterns forming near pivot-based support or resistance levels just as the trend cloud begins to narrow. A narrowing cloud suggests weakening momentum, and a three-candle reversal pattern at a key structural level can signal an early trend change.
S/R Level Validation — Use the dynamic support and resistance levels to validate candlestick signals. A Bullish Engulfing pattern that forms precisely at the current support level carries more weight than one occurring at a random price point.
Trend Strength Assessment — The width of the Aura Cloud reflects the separation between the fast and slow EMAs. A wide, expanding cloud indicates strong trending conditions where trend-aligned patterns are most reliable. A narrow, contracting cloud suggests consolidation where signals should be treated with more caution.
Multi-Timeframe Confluence — Apply the indicator on a higher timeframe to establish the dominant trend direction, then switch to a lower timeframe to find trend-aligned candlestick entries. The cloud's direction on the higher timeframe provides the bias; the pattern signals on the lower timeframe provide the entry timing.
How Multiple Indicators Work Together
The Aura Trend & Candlestick Matrix integrates three distinct analytical techniques into a single decision-support system through a deliberate hierarchical architecture:
The EMA trend cloud establishes directional context, the candlestick pattern engine identifies potential reversal and continuation setups, and the pivot-based support and resistance levels provide structural price references — together forming a confluence-driven framework where signals must pass through multiple filters before reaching the chart.
The trend cloud sits at the top of the hierarchy as the primary directional filter. It answers the fundamental question: "Which side of the market should I be on right now?" By requiring all candlestick patterns to align with the cloud's direction, the indicator enforces a disciplined approach that avoids the common trap of trading counter-trend reversal patterns in strong trends.
The candlestick pattern engine operates as the timing mechanism within the trend context. Each pattern family captures a different market dynamic — Hammers and Shooting Stars detect single-bar rejection of price levels, Engulfing patterns identify momentum shifts through body-size dominance, and Morning/Evening Stars capture multi-bar sentiment transitions. By offering all three families simultaneously, the indicator provides multiple entry opportunities across different market conditions while maintaining the trend-alignment requirement.
The dynamic support and resistance engine adds a structural dimension that complements both the trend cloud and the pattern signals. While the cloud tells you the trend direction and the patterns tell you when to act, the S/R levels tell you where price is likely to react. Patterns forming at or near these pivot-derived levels carry inherently higher significance because they occur at prices where the market has previously demonstrated supply or demand.
Unique Aspects
Trend-gated pattern signals — Unlike standalone candlestick scanners that display every detected pattern regardless of context, this indicator enforces directional alignment. Bullish patterns are suppressed during downtrends and bearish patterns are suppressed during uptrends, producing a significantly cleaner signal set with higher expected reliability.
Ratio-based pattern detection with doji exclusion — Pattern identification uses proportional shadow-to-body ratios rather than fixed pip or point thresholds, making the detection logic adaptive across instruments and timeframes. The explicit doji exclusion prevents ambiguous candles from triggering false Hammer or Shooting Star signals.
120% engulfing threshold — The Engulfing pattern requires the current body to exceed the previous body by at least 20%, filtering out marginal engulfing candles that lack conviction and improving signal quality.
Three-engine confluence in a single overlay — By combining trend analysis, pattern recognition, and support/resistance detection in one indicator, traders avoid the visual clutter and potential conflicts of layering multiple separate tools on the same chart.
Distinct visual vocabulary — Each pattern family uses a unique shape (triangles for Engulfing, labeled markers for Hammers/Stars), allowing traders to instantly identify the pattern type without reading text labels.
How to Use
Add the Aura Trend & Candlestick Matrix to your chart. It overlays directly on the price chart, displaying the Aura Cloud, pattern signals, and S/R levels simultaneously.
Identify the current trend by observing the Aura Cloud color — a green cloud indicates a bullish trend (fast EMA above slow EMA), and a red cloud indicates a bearish trend. The cloud's width reflects trend strength.
Watch for candlestick pattern signals that appear on the chart. Green triangles (▲) below bars indicate Bullish Engulfing patterns; red triangles (▼) above bars indicate Bearish Engulfing. Labels marked "H", "S", "MS", and "ES" denote Hammer, Shooting Star, Morning Star, and Evening Star patterns respectively.
Cross-reference pattern signals with the dynamic S/R levels (green and red circle markers). Patterns occurring near support (for bullish) or resistance (for bearish) carry additional structural significance.
Use the candle coloring feature (enabled by default) for quick visual scanning — green candles confirm you are in a bullish trend zone, red candles confirm a bearish trend zone.
Set up alerts using the built-in "Bullish Setup" and "Bearish Setup" alert conditions to receive real-time notifications when a trend-aligned candlestick pattern is detected.
Combine with volume analysis or momentum oscillators for additional confirmation layers when entering trades based on the indicator's signals.
Customization
Fast EMA Length (default: 20) — Controls the responsiveness of the fast trend line. Lower values (10-15) make the cloud more reactive to recent price changes, suitable for shorter-term trading. Higher values (25-50) produce a smoother cloud for swing or position trading.
Slow EMA Length (default: 50) — Sets the anchor for the trend cloud. Common alternatives include 100 or 200 for longer-term trend identification. The gap between fast and slow lengths determines how quickly the cloud changes direction.
Color Candles Based on Trend (default: on) — Toggle candle coloring on or off. Disable if you prefer to use your chart's native candle colors or another coloring scheme.
Show Hammers / Shooting Stars (default: on) — Enable or disable single-candle reversal pattern detection. Disable if you prefer to focus only on multi-candle patterns.
Show Engulfing Patterns (default: on) — Enable or disable two-candle engulfing pattern detection.
Show Morning / Evening Stars (default: on) — Enable or disable three-candle star pattern detection.
Pivot Detection Length (default: 10) — Controls the lookback window for support and resistance detection. Lower values (3-7) detect more frequent, minor pivot levels; higher values (15-30) identify only major structural turning points.
Conclusion
The Aura Trend & Candlestick Matrix delivers a disciplined, confluence-based approach to technical analysis by requiring candlestick patterns to align with the prevailing EMA trend direction before they are displayed. By integrating a visual trend cloud, three families of rigorously defined candlestick patterns, and dynamic pivot-based support and resistance levels into a single overlay, this indicator provides traders with a comprehensive yet uncluttered analytical framework. Whether you are a day trader looking for precise trend-aligned reversal entries, a swing trader seeking high-probability pattern setups at key structural levels, or a position trader monitoring broad trend direction with candlestick confirmation, the Aura Trend & Candlestick Matrix offers a clean, systematic, and visually intuitive toolset for identifying where trend momentum and candlestick structure converge — the moments where trading opportunities are most compelling.
Indicador Pine Script®






















