Support/R, Trend, Ema, Fvg,

6 507
MA Trend + Major Support/Resistance + Auto Trendlines + FVG Entry Zones
Overview
This indicator combines SMA trend analysis, major support and resistance, automatic trendlines, and fair value gap visualization in one chart overlay. It helps traders identify the current trend, monitor important swing levels, and highlight potential pullback areas aligned with that trend.

SMA lengths, candle colors, chart markings, and zone colors are customizable.

Features
SMA trend and candle coloring
Displays 9-, 21-, and 100-period simple moving averages by default.

Bullish: fast SMA > middle SMA > slow SMA.

Bearish: fast SMA < middle SMA < slow SMA.

Neutral: neither alignment is present.

Candles can be colored according to this alignment. Trend colors reflect the SMA structure, not whether an individual candle closes above or below its open.

Major support and resistance
Draws horizontal levels from confirmed swing highs and swing lows. Users can adjust pivot strength and the number of retained levels. The default major pivot strength is 15 bars on each side. Levels become dashed after a confirmed close breaks them. The dashboard identifies the nearest retained levels below and above the current price, including levels that have changed sides.

Automatic trendlines
Connects the latest two confirmed swing lows and the latest two confirmed swing highs, extending both lines to the right. Trendline pivot sensitivity is adjustable independently of the major support/resistance settings.

Fair value gaps
Identifies three-candle price gaps using these rules:

Bullish FVG: the current candle’s low is above the high from two candles earlier.

Bearish FVG: the current candle’s high is below the low from two candles earlier.

An adjustable ATR-based minimum gap size helps filter smaller gaps. Gaps are created after candle close and removed when a subsequent candle’s wick fully fills them, confirmed at that candle’s close. Partial fills leave the original zone boundaries unchanged.

Trend-aligned entry watch zones
Highlights the newest retained, active FVG that matches the current SMA trend:

Bullish trend: highlights a bullish FVG as a long watch zone.

Bearish trend: highlights a bearish FVG as a short watch zone.

Neutral trend: no entry watch zone is selected.

These are watchlists on the chart—not automatic trade recommendations. Selection is based on SMA direction and FVG direction; it does not require additional support/resistance or trendline confluence.

Touch markers and alerts
Displays an “L” or “S” when a confirmed candle touches the selected watch zone. The candle that creates the gap cannot generate a touch signal. Alert conditions are included for long- and short-watch-zone touches. Repeated touches may produce repeated markers and alerts. A gap fully filled on the same candle is removed before touch evaluation and does not generate a touch signal.

Dashboard
Shows the current SMA trend, nearest retained support and resistance, selected watch-zone direction, and zone boundaries.

How to Use
Start with the SMA alignment to assess directional structure. Review nearby support/resistance and swing trendlines for context, then monitor highlighted FVG zones for potential pullbacks.

A watch-zone touch identifies an area to evaluate; it does not confirm a reversal, continuation, or profitable entry. The indicator does not calculate stop-losses, profit targets, position sizes, or risk/reward ratios.

Confirmation and Limitations
All calculations use the chart’s current timeframe; this is not a multi-timeframe indicator.

Swing levels and trendline anchors require right-side pivot confirmation. For example, a pivot strength of 15 requires 15 subsequent bars before confirmation.

Pivot drawings are anchored to the historical swing after confirmation. Their appearance at that swing does not mean they were available in real time at that earlier bar.

Current trend, candle colors, nearest-level readings, and watch-zone selection can change while the live candle is forming.

New FVGs, pivot updates, full-fill removals, and touch markers are processed on confirmed candle closes.

“Major” refers to the selected swing sensitivity, not a guarantee of level strength.

The script is an analytical indicator, not a backtested trading strategy. No profitability or performance claims are made.

Customization
Adjust SMA lengths and colors, bullish/bearish/neutral candle colors, major pivot strength, retained level count, trendline sensitivity, minimum FVG size, active gap count, watch-zone colors, and dashboard colors.

Disclaimer
For educational and chart-analysis purposes only. This indicator does not provide financial advice or guarantee trading outcomes. Use independent analysis and appropriate risk management before making trading decisions.

כתב ויתור

המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.