PROTECTED SOURCE SCRIPT

MarketSmith Indicator

21
Purpose

  • Recreates key MarketSmith/IBD analysis tools directly in TradingView.
  • Combines technical, price-action, RS, and fundamental data into one system.


Price View (MarketSmith-Style Candles)

  • Full-body bars colored by close relative to prior close.
  • Clean, minimalist style for clearer price interpretation.


Moving Averages

  • Daily MAs: 10-day, 21-day, 50-day, 200-day.
  • Weekly MAs: 10-week, 20-week, 30-week, 40-week.
  • Auto-switches between daily/weekly versions.
  • Fully customizable SMA/EMA options.


Relative Strength (IBD-Style RS Rating)

  • RS line plotted against chosen benchmark (default SPX).
  • Optional MAs, RS new highs/lows markers.
  • Percentile-based IBD 1–99 RS Rating using seeded market data.
  • Shows real leadership strength at a glance.


Pattern Recognition

  • Detects cup-with-handle, double bottoms, flat bases, and broad consolidations.
  • Tracks pivots, base depth, length, symmetry, and breakout levels.
  • Draws dynamic base outlines, buy-point boxes, and stop zones.
  • Includes Weekly Tight Closes signals.


Fundamental Panel (EPS & Sales)

  • Displays quarterly EPS, sales, YoY/QoQ growth, surprises, ROE, margins.
  • Eight-quarter weekly table or four-quarter daily headband.
  • MarketSmith/MarketSurge visual themes.
  • Earnings arrows with EPS/sales % change.


Overall

  • A complete growth-trading analysis environment.
  • Not a signal generator—an integrated decision-support and chart-reading tool.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.