Strategy · Pine Script v5 · On the chart

Volume Surge (Memecoin)

by muammeryldrm42

This strategy identifies momentum breakouts by detecting sudden volume spikes relative to a simple moving average alongside rapid bar price gains.

View on GitHub

GitHub stars7on the repository
Pine versionv5runs as is
Lines of code50
Settings5inputs
LicenceMIT
Last update3 months ago8 Jul 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 strategy, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.

Source Code

50 lines of Pine Script v5 from public/code/memecoin__volume_surge.pine, published under MIT. Keep the author's credit and licence lines when you reuse it.

memecoin__volume_surge.pine
//@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.

Details

Published by

muammeryldrm42 on GitHub

Type

Strategy, Pine Script v5

Draws

On the price chart

Category

Breakout, Volume

Markets

Crypto

Timeframes

M1-M5

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.

Topics

cryptofuturessodexsosovaluestrategyvaluechain

Settings

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

SettingTypeDefaultVariable
Min Volume Multiplierfloat3.0volMultMin
Min Price Change %float5.0priceChg5m
Min Buy/Sell Proxy (up vol ratio)float1.5bsRatioMin
Volume Avg Lookback (bars)int12volLookback
Too Late Threshold % (1h proxy)float100.0tooLatePct
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

BB and KC Strategy

by hasnocool
106 stars

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

Strategy v5 Volatility & bandsBreakout
Updated 2 years ago · GPL-3.0 GitHub repository of BB and KC Strategy
39 stars

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

Strategy v6 BreakoutSessions & time Repaints
Updated 4 days ago · MIT GitHub repository of Futures Intraday Pro (ES/NQ) Strategy
23 stars

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

Strategy v6 TrendVolume Repaints
Updated 3 weeks ago · Custom licence GitHub repository of TradingAlpha Point-Clip Strategy

VOL/BBW/RSI/15 Strategy

by SammyEnigma
18 stars

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

Strategy v4 Volatility & bandsVolume
Updated 6 years ago · None stated GitHub repository of VOL/BBW/RSI/15 Strategy
13 stars

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

Strategy v5 VolumeBreakout
Updated 1 year ago · None stated GitHub repository of Ruckard Voladder D002

15m Volume Alert

by JackZhao516
7 stars

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

Strategy v5 VolumeBreakout Repaints
Updated 3 years ago · MIT GitHub repository of 15m Volume Alert

More strategys

Trade Your Charts With a Regulated Broker

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

Compare brokers