Indicator · Pine Script v6 · On the chart

Stella's Smart Money Proxy

by stella-entry

This indicator detects institutional or large-scale market activity using candle body size and trading volume.

View on GitHub

GitHub stars3on the repository
Pine versionv6current
Lines of code103
Settings6inputs
LicenceMIT
Last update8 months ago22 Feb 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above, or the copy button on the code below.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

103 lines of Pine Script v6 from indicators/smart-money-proxy.pine, published under MIT. Keep the author's credit and licence lines when you reuse it.

smart-money-proxy.pine
//@version=6
indicator("Stella's Smart Money Proxy", overlay=true, max_labels_count=50)

// ============================================
// 概要
// ============================================
// 大口(Smart Money)の動向を価格/ボリュームから推定
// ※ 実際のオンチェーンデータは使用できないため、
//    大陽線/大陰線 + 高ボリューム で推定

// ============================================
// パラメーター設定
// ============================================
// ボディサイズ判定
bodyMultiplier = input.float(1.5, "大口判定: 平均ボディ倍率", minval=1.0, maxval=3.0, step=0.1)

// ボリューム判定
useVolumeFilter = input.bool(true, "ボリュームフィルターを使用")
volumeMultiplier = input.float(1.5, "ボリューム倍率", minval=1.0, maxval=5.0, step=0.1)
volumeLookback = input.int(20, "ボリューム平均期間", minval=5, maxval=100)

// 表示
showLabels = input.bool(true, "シグナルラベルを表示")
showBox = input.bool(true, "累積ゾーンを表示")

// ============================================
// 計算
// ============================================
// ボディサイズ
body = math.abs(close - open)
avgBody = ta.sma(body, 20)

// 大口条件
isBigBody = body > avgBody * bodyMultiplier
isBullish = close > open
isBearish = close < open

// ボリューム条件
avgVolume = ta.sma(volume, volumeLookback)
isHighVolume = volume > avgVolume * volumeMultiplier
volumeCondition = useVolumeFilter ? isHighVolume : true

// Smart Money判定
smartBuy = isBigBody and isBullish and volumeCondition
smartSell = isBigBody and isBearish and volumeCondition

// ============================================
// 累積追跡
// ============================================
var float accumulationStart = na
var float accumulationEnd = na
var int accumulationBars = 0

// 累積開始(連続した買い)
if smartBuy and not smartBuy[1]
    accumulationStart := low
    accumulationBars := 1

if smartBuy and smartBuy[1]
    accumulationStart := math.min(accumulationStart, low)
    accumulationBars += 1
    accumulationEnd := high

// 累積終了
if not smartBuy and accumulationBars > 0
    accumulationBars := 0
    accumulationStart := na
    accumulationEnd := na

// ============================================
// 表示
// ============================================
// シグナルラベル
if showLabels and smartBuy
    label.new(bar_index, low, "🐋 BUY", 
              color=color.new(color.green, 70), textcolor=color.white, 
              style=label.style_label_up, size=size.small)

if showLabels and smartSell
    label.new(bar_index, high, "🐋 SELL", 
              color=color.new(color.red, 70), textcolor=color.white, 
              style=label.style_label_down, size=size.small)

// 累積ゾーン
showAccumulation = showBox and accumulationBars >= 2
bgcolor(showAccumulation ? color.new(color.green, 92) : na)

// 累積ゾーンのボックス
if showAccumulation and barstate.islast
    box.new(bar_index - accumulationBars + 1, accumulationStart, bar_index, accumulationEnd, 
            bgcolor=color.new(color.green, 90), border_color=color.green)

// ============================================
// アラート
// ============================================
alertcondition(smartBuy, "Smart Money 買い", "Smart Moneyの買いシグナル検出")
alertcondition(smartSell, "Smart Money 売り", "Smart Moneyの売りシグナル検出")

// ============================================
// インジケーター値(ストラテジー用)
// ============================================
// 他のインジケーターから参照できるように公開
plot(smartBuy ? 1 : smartSell ? -1 : 0, "Smart Money Signal", display=display.none)

Overview

Stella's Smart Money Proxy compares current candle bodies against a 20-period simple moving average and checks for volume spikes above an adjustable moving average filter. Identified buying and selling activities trigger labels directly on the price chart. When consecutive smart buy conditions occur, it tracks accumulation zones using background highlighting and draws a bounding box on the latest active sequence.

Details

Published by

stella-entry on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Volume, Candlestick patterns, SMC / ICT / price action

Markets

Crypto

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
大口判定: 平均ボディ倍率float1.5bodyMultiplier
ボリュームフィルターを使用booltrueuseVolumeFilter
ボリューム倍率float1.5volumeMultiplier
ボリューム平均期間int20volumeLookback
シグナルラベルを表示booltrueshowLabels
累積ゾーンを表示booltrueshowBox
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

Early Reversal OB

by thino-dev
2 stars

This indicator detects early potential market turning points based on order block and engulfing candlestick patterns on the price chart. It checks for a local swing extreme on the second closed bar followed by an immediate engulfing reversal candle on the prio

Indicator v5 SMC / ICT / price actionCandlestick patterns
Updated 7 months ago · None stated GitHub repository of Early Reversal OB
2 stars

Ghost Zone v9 GTI Signals v18 is an overlay technical indicator designed to replicate Ghost Trade Pro methodology. It calculates anchored Supertrend channels, previous weekly close levels, fair value gaps, and volume profile high-volume nodes. The script evalu

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of Ghost Zone v9 GTI Signals v18

MM Trap Pro

by Alaamo7
1 stars

MM Trap Pro is an overlay indicator that detects volume-backed bull and bear trap patterns on the price chart. It calculates a simple moving average of volume and identifies high-volume candles with significant body percentages that fail to break previous high

Indicator v6 VolumeCandlestick patterns
Updated 2 months ago · Custom licence GitHub repository of MM Trap Pro
1 stars

This indicator plots bullish and bearish order-block boxes on the price chart. It marks the prior candle when the current bar engulfs it and volume exceeds a twenty-bar average times a multiplier, then stores the zone in a matrix. Volume threshold and box colo

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 6 months ago · MIT GitHub repository of Order Blocks Matrix - Castle Trade
575 stars

The indicator plots ICT displacement candles on the price chart and can switch to retracement scanning. Displacement requires a move larger than a set share of the 14-bar average high-low range, lasting at least a chosen number of bars, with optional close, pr

Indicator v6 SMC / ICT / price actionCandlestick patterns
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Displacement Candles Indicator

Moon Dev GEX Sweep & CVD

by moondevonyt
92 stars

The indicator detects liquidity sweeps across key price levels and calculates a cumulative volume delta proxy. It uses pivot high and low lookbacks to identify swing points, marking sweeps when price breaks beyond a level and quickly closes back inside. Featur

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 8 weeks ago · Custom licence GitHub repository of Moon Dev GEX Sweep & CVD

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers