Strategy · Pine Script v6 · On the chart

ETH Momentum Breakout [trugurpala]

by trugurpala

This strategy identifies breakout entries confirmed by elevated trading volume and trend direction.

View on GitHub

GitHub stars4on the repository
Pine versionv6current
Lines of code68
Settings8inputs
LicenceMIT
Last update2 months ago3 Aug 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

68 lines of Pine Script v6 from global-markets/14_eth_momentum.pine, published under MIT. Keep the author's credit and licence lines when you reuse it.

14_eth_momentum.pine
//@version=6
// ETH/USDT — Volume-Confirmed Momentum Breakout
// Author: Ugur Pala · github.com/trugurpala/pinescriptv6
// TradingView: https://tr.tradingview.com/u/trugurpala/
//
// TR: Yüksek hacimle desteklenen fiyat kırılması üzerine giriş yapar.
//     ETH için optimize edilmiş — BTC'den daha yüksek volatilite.
// EN: Enters on price breakout confirmed by high volume.
//     Optimised for ETH — higher volatility than BTC.
//
// Önerilen TF / Recommended TF: 1H, 4H
// Sembol / Symbol: BINANCE:ETHUSDT
strategy("ETH Momentum Breakout [trugurpala]",
    overlay           = true,
    initial_capital   = 10000,
    default_qty_type  = strategy.percent_of_equity,
    default_qty_value = 5,
    commission_type   = strategy.commission.percent,
    commission_value  = 0.1,
    slippage          = 3)

// ── Inputs ───────────────────────────────────────────────────────────────────
int   lookback  = input.int(20, "Breakout Lookback", minval=5)
int   volLen    = input.int(20, "Volume MA",         minval=5)
float volMult   = input.float(1.5, "Vol Multiplier", step=0.1)
int   trendLen  = input.int(50, "Trend EMA",         minval=10)
int   atrLen    = input.int(14, "ATR",               minval=1)
float slMult    = input.float(2.5, "SL Mult",        step=0.1)
float tpMult    = input.float(3.5, "TP Mult",        step=0.1)
bool  longOnly  = input.bool(true, "Long Only")

// ── Calculations ─────────────────────────────────────────────────────────────
float highestHigh = ta.highest(high, lookback)[1]   // önceki mum kırılması için [1]
float lowestLow   = ta.lowest(low,   lookback)[1]
float volMa       = ta.sma(volume, volLen)
float trendEma    = ta.ema(close, trendLen)
float atrVal      = ta.atr(atrLen)
bool  highVol     = volume > volMa * volMult

// Kırılma sinyalleri
bool  longEntry   = ta.crossover(close, highestHigh) and highVol and close > trendEma
bool  shortEntry  = ta.crossunder(close, lowestLow)  and highVol and close < trendEma and not longOnly

// ── Entries ──────────────────────────────────────────────────────────────────
if longEntry
    strategy.entry("Long", strategy.long)
    strategy.exit("Long Exit", "Long",
        stop  = close - slMult * atrVal,
        limit = close + tpMult * atrVal)

if shortEntry
    strategy.entry("Short", strategy.short)
    strategy.exit("Short Exit", "Short",
        stop  = close + slMult * atrVal,
        limit = close - tpMult * atrVal)

// ── Visuals ──────────────────────────────────────────────────────────────────
plot(highestHigh, "Resistance", color.new(color.red,   40), style=plot.style_circles)
plot(lowestLow,   "Support",    color.new(color.green, 40), style=plot.style_circles)
plot(trendEma,    "Trend EMA",  color.new(color.orange,20), linewidth=2)
plotshape(longEntry,  "Long",  shape.triangleup,   location.belowbar, color.green, size=size.small)
plotshape(shortEntry, "Short", shape.triangledown, location.abovebar, color.red,   size=size.small)

// ── Alerts (alert() — strategy içinde çalışır) ───────────────────────────────
if longEntry
    alert("ETH Breakout Long — " + str.tostring(close, "#.##"), alert.freq_once_per_bar)
if shortEntry
    alert("ETH Breakout Short — " + str.tostring(close, "#.##"), alert.freq_once_per_bar)

Overview

ETH Momentum Breakout [trugurpala] triggers long entries when the close crosses above the recent highest high, provided volume exceeds its moving average by a multiplier and price remains above the trend EMA. Short entries mirror this behavior below support. Positions exit via ATR-based take-profit and stop-loss orders. User inputs configure lookback periods, volume thresholds, trend EMA length, ATR multipliers, and an option to restrict trades to long-only positions.

Details

Published by

trugurpala on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

Breakout, Volume, Trend

Markets

Crypto

Timeframes

M15-H1, H4 and above

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

aialgorithmic-tradingclaude-codecodexcoding-agentsgithub-copilotopen-sourcepine-scriptpine-script-v6technical-analysis

Settings

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

SettingTypeDefaultVariable
Breakout Lookbackint20lookback
Volume MAint20volLen
Vol Multiplierfloat1.5volMult
Trend EMAint50trendLen
ATRint14atrLen
SL Multfloat2.5slMult
TP Multfloat3.5tpMult
Long OnlybooltruelongOnly
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

106 stars

This Pine v4 strategy draws on the price chart and filters breakouts with a fixed Supertrend, ATR length, volume moving-average markup, and moving-average alignment, plus short and long high-low periods. Trade direction defaults to long and can include shorts.

Strategy v4 BreakoutTrend
Updated 2 years ago · GPL-3.0 GitHub repository of Breakout Trend Trading - V1
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
6 stars

This strategy identifies long gap-and-go breakout opportunities on intraday US stock charts. It filters equities across three sequential stages: verifying fundamental criteria (minimum three-year average ROCE and market capitalization via financial data reques

Strategy v5 TrendBreakout
Updated 3 months ago · MIT GitHub repository of Quality Trend-Join-Long (gap-and-go)
4 stars

This strategy draws on the price chart and is set up for daily ETF trading. It can enter through a classic surge-and-consolidation breakout, a pullback toward stacked EMAs, a relative-volume spike with price momentum, or a pause inside a strong trend. EMA leng

Strategy v6 BreakoutTrend
Updated 7 months ago · None stated GitHub repository of Qullamaggie Breakout Strategy
2 stars

This strategy enters long when price closes above the prior channel high and a longer EMA filter, the bar is bullish, volume rises versus the previous bar, and average volume and turnover clear set thresholds. It exits the long when price closes below a shorte

Strategy v5 BreakoutMoving averages
Updated 2 years ago · None stated GitHub repository of DegenerateChain Channel Breakout

This strategy generates long entry signals by combining a Donchian Channel breakout with a moving average trend filter, volume confirmation, and a macro volatility regime gate based on CBOE VIX and VIX3M ratios. It enters long positions when prices break above

Strategy v5 TrendBreakout
Updated 10 months ago · MIT GitHub repository of Trend-Breakout System mit VIX Heatmap Gate

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