//@version=5
// =====================================================
// Volume Surge Strategy (Memecoin) - Strategy Lab
// =====================================================
// NOTE: Most memecoin strategies require on-chain data (holder, dev wallet,
// bonding curve); these are not available in Pine Script.
// Volume Surge and Tiered Exit are price/volume based, so in TradingView
// they work. For other memecoin strategies, use the Python/TypeScript versions
// use them (with off-chain API data).
// =====================================================
strategy("Volume Surge (Memecoin)", overlay=true,
default_qty_type=strategy.percent_of_equity, default_qty_value=10)
volMultMin = input.float(3.0, "Min Volume Multiplier")
priceChg5m = input.float(5.0, "Min Price Change %")
bsRatioMin = input.float(1.5, "Min Buy/Sell Proxy (up vol ratio)")
volLookback = input.int(12, "Volume Avg Lookback (bars)")
tooLatePct = input.float(100.0, "Too Late Threshold % (1h proxy)")
// Volume surge
avgVol = ta.sma(volume, volLookback)
volMult = volume / avgVol
// Price momentum (5m proxy = current bar change)
priceChange = ((close - close[1]) / close[1]) * 100
// 1h proxy (12 x 5m bar)
priceChange1h = ((close - close[12]) / close[12]) * 100
// Buy pressure proxy: green candle volume / total
upVol = close > open ? volume : 0.0
dnVol = close < open ? volume : 0.0
bsProxy = upVol / math.max(dnVol, 1)
cond1 = volMult >= volMultMin
cond2 = priceChange >= priceChg5m
cond3 = close > open // momentum up
tooLate = priceChange1h > tooLatePct
longSig = cond1 and cond2 and cond3 and not tooLate
atrV = ta.atr(14)
if longSig and strategy.position_size == 0
sl = close * 0.85
strategy.entry("VolSurge", strategy.long)
strategy.exit("X1", "VolSurge", stop=sl, limit=close * 1.7)
plotshape(longSig, "Surge", shape.triangleup, location.belowbar, color.lime, size=size.normal)
plotchar(volMult >= volMultMin, "VolSpike", "▲", location.bottom, color.aqua, size=size.tiny)
alertcondition(longSig, "Volume Surge", "Memecoin volume surge detected")
Overview
Volume Surge (Memecoin) plots signal triangles and volume spike markers directly on the price chart. When volume and bar return exceed user thresholds and one-hour change remains below a maximum cap, it enters long positions using ten percent equity sizing. Exits execute through a fixed fifteen percent stop loss and a seventy percent take profit limit. Notably, the configured buy-sell volume ratio setting is unused in the code logic.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Min Volume Multiplier
float
3.0
volMultMin
Min Price Change %
float
5.0
priceChg5m
Min Buy/Sell Proxy (up vol ratio)
float
1.5
bsRatioMin
Volume Avg Lookback (bars)
int
12
volLookback
Too Late Threshold % (1h proxy)
float
100.0
tooLatePct
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 strategy identifies breakout momentum by combining Bollinger Bands and Keltner Channels with volume confirmation. It opens long positions when the upper Keltner Channel crosses above the upper Bollinger Band and volume exceeds its moving average. Converse
This intraday strategy implements Mark Fisher's Opening Range Breakout (ORB) methodology tailored for index futures like ES and NQ. It calculates session opening ranges, volume z-scores, and VWAP bands to plot support, resistance, and confirmation levels on th
This strategy evaluates breakout and trend opportunities on the price chart using a weighted composite score of volume, trend, and candlestick structure. It tracks volume spikes, fast and slow EMAs, higher-timeframe EMA trend alignment, opening ranges, and ses
This strategy overlays Bollinger Bands on the price chart and trades a long squeeze setup. It enters long when band width is below 0.022 and volume is at least the seven-bar average, using a stop order at the lower band. It places a short order when close cros
This strategy identifies volume-based rebound signals on the price chart. It detects three or more consecutive lower volume candles followed by a higher volume candle, with price remaining lower from the start of the volume sequence, signaling potential long e
This strategy monitors 15-minute volume to detect sudden volume spikes and triggers long entries directly on the price chart. It evaluates whether the latest 15-minute volume exceeds preceding bars by a factor of 10 or 50, provided that the total bar turnover