1Copy the scriptPress Copy script above, or the copy button on the code below.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
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.
Candle body size comparison against moving average
Volume spike confirmation filter
Smart money buy and sell label alerts
Consecutive accumulation zone tracking and bounding box
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
大口判定: 平均ボディ倍率
float
1.5
bodyMultiplier
ボリュームフィルターを使用
bool
true
useVolumeFilter
ボリューム倍率
float
1.5
volumeMultiplier
ボリューム平均期間
int
20
volumeLookback
シグナルラベルを表示
bool
true
showLabels
累積ゾーンを表示
bool
true
showBox
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.
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
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
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
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
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
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