تم تحديثه

Mr. Love AIOSuite: MTF Moving Averages, Gaps, FVGs & Order Block

483
Mr. Love AIOSuite is an all-in-one overlay that maps the two kinds of levels most traders draw by hand on every chart: dynamic levels from moving averages on several timeframes, and static price zones left behind by gaps, fair value gaps and order blocks. Instead of stacking several separate indicators, the suite runs them on one chart with one visual style, one shared zone engine and one alert system.


WHY THESE TOOLS ARE COMBINED

Higher-timeframe moving averages and unfilled price imbalances often act as support and resistance. The most relevant areas are usually where both line up, for example a weekly 20 SMA running through an unfilled daily gap or a bullish order block. The script is designed to make that confluence visible at a glance:

• All zones share one engine (fill tracking, expiry, adaptive fading, box budget), so gaps, FVGs and order blocks behave consistently.
• Zones fade with their distance from price (measured in daily ATR). Zones close to price stand out, distant ones step back.
• Every moving average is labeled at the right edge with type, length and timeframe (for example "50 W SMA"), so it is always clear which line is which.


MULTI-TIMEFRAME MOVING AVERAGES

• 20 independent slots. Each slot has its own type (SMA, EMA, WMA, VWMA, RMA, HMA, DEMA, TEMA, LSMA), length, timeframe, source and color.
• Default layout: 20/50/200 SMA on the daily and weekly timeframe are enabled. EMA 13/200 and monthly slots are prepared but disabled. Slots 16 to 20 are free for chart-timeframe averages.
• Label at the end of each line plus the current value on the price scale. Label content (type, length, timeframe, slot number), offset and size are adjustable.
• Moving averages on a timeframe lower than the chart are hidden. An optional warning panel lists them.

How the higher-timeframe smoothing works (MTF Display Mode)

A weekly moving average on a daily chart is normally drawn as a staircase, or it relies on lookahead and shows values that were not known at the time. The default mode "Smoothed (No Repaint)" avoids both:

1. For every chart candle, the script rebuilds the developing higher-timeframe candle (open, high, low, close and volume so far).
2. SMA, EMA, WMA, RMA, HMA, DEMA, TEMA and LSMA are linear filters. Their developing value equals a part that depends only on closed higher-timeframe candles plus a fixed weight times the current source value. The script requests only the closed part and adds the current candle itself, so no future data is used. VWMA is rebuilt from rolling price × volume and volume sums.
3. Inside each higher-timeframe candle, the line moves from the last confirmed value towards this developing value, weighted by how much of the higher-timeframe candle has elapsed. At the higher-timeframe close it equals the exact value shown on that timeframe.

Other modes:
• Step: confirmed higher-timeframe values only (classic staircase).
• Live: the developing higher-timeframe value on every candle.


BOLLINGER BANDS (optional)

Bands on the chart timeframe or a higher timeframe, with selectable source, length, standard-deviation multiplier, band and basis colors and fill transparency.


VWAP AND SWING VWAP (optional)

• VWAP with a selectable reset period: session, week, month, quarter or year.
• Swing VWAP anchors automatically at the most recent confirmed swing high or swing low. A swing is only confirmed after "Swing Length" bars, so the segment from the swing to its confirmation is drawn retroactively for the current anchor; the plotted line starts at the confirmation bar. Fixed anchors (session to year) are available as an alternative.
• On symbols without volume data, both VWAPs weight every bar equally.


DAILY GAPS

• A gap is the distance between the previous period close and the new period open on the gap timeframe (default: daily).
• Minimum size as a percentage of the average range of the gap timeframe.
• Fill detection by wick or by close, optional partial-fill tracking (the zone shrinks to the part that is still open), expiry after a set number of bars, and a configurable number of filled zones that stay on the chart in a faded color.


FAIR VALUE GAPS

• Three-candle imbalance on the chart timeframe or a higher timeframe, evaluated on confirmed candles only.
• Size filter: manual percentage of price, or an automatic threshold based on the average bar range.
• Same fill, partial-fill, expiry and history options as the gaps.


ORDER BLOCKS

• Created from breaks of market structure on two levels: internal structure (short pivot length) and swing structure (longer pivot length).
• When a pivot high or low is broken, the script searches the candles between the pivot and the break for the order block candle:
– Anchor Mode "Extreme": lowest low (bullish) or highest high (bearish). Opposite-colored candles can be preferred.
– Anchor Mode "Last Opposite": the last opposite-colored candle before the break.
• OB Bounds: Hybrid (body plus the wick on the extreme side), Wick or Body. Unusually large candles (range above a multiple of ATR or of the average range) automatically use their body to avoid oversized zones.
• Break confirmation and invalidation by close or by wick, separate limits for active internal and swing order blocks, and a maximum search window.


ZONE ENGINE (gaps, FVGs and order blocks)

• Base transparency for all zones.
• Adaptive fade: zones become more transparent with distance from price and disappear at the set distance in daily ATR.
• Filled zones receive an additional fade.
• Optional text labels per zone type.
• Pine Script allows a maximum of 500 boxes per script. If the combined limits exceed this, the oldest filled zones are removed first.


ALERTS

Create one alert with "Any alert() function call" for detailed messages, or use the individual alert conditions:
• Close crossing above or below any enabled moving average (the message names the average and its value)
• New gap, gap filled
• New fair value gap, FVG filled
• New order block, order block invalidated

With "Close Events: Confirmed Only" enabled, close-based events fire only after the candle has closed.


HOW TO USE

1. Add the script to your chart.
2. Enable the moving averages and timeframes you follow.
3. Switch gaps, FVGs and order blocks on or off and adjust the minimum sizes to the volatility of your market.
4. Look for areas where a higher-timeframe moving average and an open zone overlap. Treat them as areas of interest, not as signals on their own.


NOTES AND LIMITATIONS

• In "Smoothed (No Repaint)" and "Step" mode the moving averages do not use future data. The value on the current, still open candle changes until that candle closes.
• Gaps are known at the open of the new period. FVGs are detected on confirmed candles. Order blocks are created on the candle that confirms the structure break.
• Swing pivots, and therefore the Swing VWAP anchor, are confirmed with a delay of "Swing Length" bars.
• VWMA and VWAP depend on volume data.
• Long weekly and monthly averages need enough history on the requested timeframe.


DISCLAIMER

This script is a charting tool for educational purposes. It does not generate buy or sell signals and is not financial advice. How price reacted to levels in the past does not guarantee how it will react in the future.
ملاحظات الأخبار
Just added, that the D SMA also show up in Weekly TF.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.