Strategy · Pine Script v5 · On the chart

15m Volume Alert

by JackZhao516· code credited to smrti

This strategy monitors 15-minute volume to detect sudden volume spikes and triggers long entries directly on the price chart.

View on GitHub

Repaints

GitHub stars7on the repository
Pine versionv5runs as is
Lines of code58
Settings0inputs
LicenceMIT
Last update3 years ago10 Jul 2023

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

58 lines of Pine Script v5 from 15m_volume_alert.pine, published under MIT. Keep the author's credit and licence lines when you reuse it.

15m_volume_alert.pine
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © smrti

//@version=5
//initial capital 10000USDT
strategy("15m_volume_alert", overlay=true, pyramiding = 100000,calc_on_every_tick=true,
 default_qty_type=strategy.percent_of_equity, default_qty_value = 100,
 initial_capital = 10000000000, currency = currency.USDT, process_orders_on_close=true,
 use_bar_magnifier = true, precision=7)

// timewindow
start = timestamp(2020, 1, 1, 00, 00)            // backtest start  window
end = timestamp(2023, 2, 9, 00, 00)              // backtest end  window
// window = time >= start and end >= time
window = time >= start

// indicators

volume_15m = request.security(ticker.standard(syminfo.tickerid), '15', volume)

// plot(volume_15m, color=color.new(#af4c4c, 20), style=plot.style_columns)

limit = 500000
cap = close * volume_15m[0]
// close_btc = request.security(ticker.standard("BTCUSDT"), '1', close)[0]
// if str.endswith(syminfo.tickerid, "BTC")
//     cap := cap * close_btc

// indicators
second_bar_condition = volume_15m[0] >= 50 * volume_15m[1] and cap >= limit
third_bar_condition = volume_15m[0] >= 50 * volume_15m[2] and cap >= limit
three_bar_condition = volume_15m[0] >= 10 * volume_15m[2] and volume_15m[0] >= 10 * volume_15m[2] and cap >= limit


// in 4h bull zone
if second_bar_condition and window
    msg = str.format("2nd bar 50X: {0,number,integer}->{1,number,integer}, amount: ${2,number,integer}", volume_15m[1], volume_15m[0], cap)
    strategy.entry(msg, strategy.long, 1)
    // strategy.close_all(" ")

if third_bar_condition and window
    msg = str.format("3rd bar 50X: {0,number,integer}->{1,number,integer}->{2,number,integer}, amount: ${3,number,integer}", volume_15m[2], volume_15m[1],volume_15m[0], cap)
    strategy.entry(msg, strategy.long, 1)
    // strategy.close_all(" ")

if three_bar_condition and window
    msg = str.format("2nd, 3rd bar 10X: {0,number,integer}->{1,number,integer}->{2,number,integer}, amount: ${3,number,integer}", volume_15m[2], volume_15m[1],volume_15m[0], cap)
    strategy.entry(msg, strategy.long, 1)
    // strategy.close_all(" ")


t = "volume_15m: " + str.format("{0,number,#.#}", volume_15m)

tableColumn = 1
tableRow = 1
var table panel = table.new(position.top_right, tableColumn, tableRow)
if barstate.islast
    table.cell(panel, 0, 0, t, bgcolor=color.black, text_color=color.white)

Overview

15m Volume Alert evaluates whether the latest 15-minute volume exceeds preceding bars by a factor of 10 or 50, provided that the total bar turnover meets a fixed threshold. A top-right dashboard panel displays the current 15-minute volume. Notable limitations include no exit rules, take-profit levels, or stop-loss mechanisms, allowing trades to remain open indefinitely alongside high pyramiding allowances.

Details

Published by

JackZhao516 on GitHub

Code credit

smrti, as written in the script's header

Type

Strategy, Pine Script v5

Draws

On the price chart

Category

Volume, Breakout

Markets

Crypto

Timeframes

M1-M5, M15-H1

Risk Notes

  • Signals can change on the live bar or after it closes (repainting)
  • The strategy can add several entries in the same direction
  • The strategy enters trades without a stop loss
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

Volume Surge (Memecoin)

by muammeryldrm42
7 stars

This strategy identifies momentum breakouts by detecting sudden volume spikes relative to a simple moving average alongside rapid bar price gains. It plots signal triangles and volume spike markers directly on the price chart. When volume and bar return exceed

Strategy v5 BreakoutVolume
Updated 3 months ago · MIT GitHub repository of Volume Surge (Memecoin)

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