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 strategy, select all of the template text and paste. Press Save and give it a name.
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.
Volume-confirmed breakout detection
Trend filter using exponential moving average
ATR-based dynamic stop loss and take profit
Configurable long-only mode
Overlay visualization of support and resistance levels
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Breakout Lookback
int
20
lookback
Volume MA
int
20
volLen
Vol Multiplier
float
1.5
volMult
Trend EMA
int
50
trendLen
ATR
int
14
atrLen
SL Mult
float
2.5
slMult
TP Mult
float
3.5
tpMult
Long Only
bool
true
longOnly
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 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.
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 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
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
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
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