OPEN-SOURCE SCRIPT

Smart Money Fluid [JOAT]

4 737

Smart Money Fluid — Accumulation and Distribution Flow Analysis

Smart Money Fluid tracks institutional-style accumulation and distribution patterns using a sophisticated combination of Money Flow Index, Chaikin Money Flow, and VWAP-relative price analysis. It aims to reveal whether larger participants may be accumulating (buying) or distributing (selling)—information that can precede significant price moves.

What Makes This Indicator Unique

Unlike single money flow indicators, Smart Money Fluid:
  • Combines three different money flow methodologies into one composite signal
  • Detects divergences between price and money flow automatically
  • Identifies high-volume conditions that add conviction to signals
  • Provides both the composite signal and individual component values
  • Features a momentum histogram showing flow acceleration


What This Indicator Does

  • Combines multiple money flow indicators into a composite signal (0-100 scale)
  • Identifies accumulation zones (potential institutional buying) and distribution zones (potential selling)
  • Detects divergences between price and money flow
  • Highlights high-volume conditions for stronger signals
  • Tracks momentum direction within the flow
  • Provides comprehensive dashboard with all component values


Composite Calculation Explained

The Smart Money Flow composite combines three proven money flow methodologies:

Pine Script®


State Classification

  • Accumulating (Green Zone) — SMF above accumulation threshold (default: 60). Suggests institutional buying may be occurring.
  • Distributing (Red Zone) — SMF below distribution threshold (default: 40). Suggests institutional selling may be occurring.
  • Neutral (Gray Zone) — SMF between thresholds. No clear accumulation or distribution detected.


Divergence Detection

The indicator automatically detects divergences using pivot analysis:

  • Bullish Divergence — Price makes a lower low while SMF makes a higher low. This suggests selling pressure is weakening despite lower prices—potential reversal signal.
  • Bearish Divergence — Price makes a higher high while SMF makes a lower high. This suggests buying pressure is weakening despite higher prices—potential reversal signal.


Divergences are marked with "DIV" labels on the chart.

Visual Features

  • SMF Line with Glow — Main composite line with gradient coloring and glow effect
  • Signal Line — Slower EMA of SMF for crossover signals
  • Flow Momentum Histogram — Shows the difference between SMF and signal line with four-color coding:
    - Bright green: Positive and accelerating
    - Faded green: Positive but decelerating
    - Bright red: Negative and accelerating
    - Faded red: Negative but decelerating
  • Zone Backgrounds — Green tint in accumulation zone, red tint in distribution zone
  • Reference Lines — Dashed lines at accumulation/distribution thresholds, dotted line at 50
  • Strong Signal Markers — Triangles appear when accumulation/distribution occurs with high volume
  • Divergence Labels — "DIV" markers when divergences are detected


Color Scheme

  • Accumulation Color — Default: #00E676 (bright green)
  • Distribution Color — Default: #FF5252 (red)
  • Neutral Color — Default: #9E9E9E (gray)
  • Gradient Coloring — SMF line transitions smoothly between colors based on value


Dashboard Information

The on-chart table (top-right corner) displays:
  • Current SMF value with state coloring
  • State classification (ACCUMULATING, DISTRIBUTING, or NEUTRAL)
  • Flow momentum direction (Up/Down with magnitude)
  • MFI component value
  • CMF component value with directional coloring
  • Volume status (High or Normal)
  • Active divergence detection (Bullish, Bearish, or None)


Inputs Overview

Calculation Settings:
  • Money Flow Length — Period for flow calculations (default: 14, range: 5-50)
  • Smoothing Length — EMA smoothing period (default: 5, range: 1-20)
  • Divergence Lookback — Bars for pivot detection in divergence analysis (default: 5, range: 2-20)


Sensitivity:
  • Accumulation Threshold — Level above which accumulation is detected (default: 60, range: 50-90)
  • Distribution Threshold — Level below which distribution is detected (default: 40, range: 10-50)
  • High Volume Multiplier — Multiple of average volume for "high volume" classification (default: 1.5x, range: 1.0-3.0)


Visual Settings:
  • Accumulation/Distribution/Neutral Colors — Customizable color scheme
  • Show Flow Histogram — Toggle momentum histogram
  • Show Divergences — Toggle divergence detection and labels
  • Show Dashboard — Toggle the information table
  • Show Zone Background — Toggle colored backgrounds in accumulation/distribution zones


Alerts:
  • Await Bar Confirmation — Wait for bar close before triggering (recommended)


How to Use It

For Trend Confirmation:
  • Accumulation during uptrends confirms buying pressure
  • Distribution during downtrends confirms selling pressure
  • Divergence between price trend and SMF warns of potential reversal


For Reversal Detection:
  • Bullish divergence at price lows suggests potential bottom
  • Bearish divergence at price highs suggests potential top
  • Strong signals (triangles) with high volume add conviction


For Entry Timing:
  • Enter longs when SMF crosses into accumulation zone
  • Enter shorts when SMF crosses into distribution zone
  • Wait for high volume confirmation for stronger signals
  • Use divergences as early warning for position management


Alerts Available

  • SMF Accumulation Started — SMF entered accumulation zone
  • SMF Distribution Started — SMF entered distribution zone
  • SMF Strong Accumulation — Accumulation with high volume
  • SMF Strong Distribution — Distribution with high volume
  • SMF Bullish Divergence — Bullish divergence detected
  • SMF Bearish Divergence — Bearish divergence detected


Best Practices

  • High volume during accumulation/distribution adds significant conviction
  • Divergences are early warnings—don't trade them alone
  • Use in conjunction with price action and support/resistance
  • Works best on liquid markets with reliable volume data


This indicator is provided for educational purposes. It does not constitute financial advice. Past performance does not guarantee future results. Always conduct your own analysis and use proper risk management before making trading decisions.

— Made with passion by officialjackofalltrades

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.