Tutoriales March 30, 2026
๐ฅ Tutorial #3: Squeeze Momentum (Volatilidad)
Basada en el famoso indicador de LazyBear. Detectรก cuรกndo el mercado estรก comprimido y automatizรก la explosiรณn.
ED
Emmanuel Dearmas
DearmasTrader Team
๐ฅ Momentum: Las mejores ganancias ocurren despuรฉs de una gran compresiรณn. Esta estrategia atrapa ese estallido.
๐ Pine Script (Full Code)
//@version=6
strategy("DMT - Squeeze Breakout", overlay=true)
token = input.string("TOKEN_DMT", "DMT Token")
// Simplificaciรณn de Squeeze
[basis, upper, lower] = ta.bb(close, 20, 2)
ma = ta.sma(close, 20)
dev = 1.5 * ta.stdev(close, 20)
upperKC = ma + dev
lowerKC = ma - dev
squeeze = upper < upperKC and lower > lowerKC
long = not squeeze and close > upper
short = not squeeze and close < lower
if (long)
strategy.entry("Long", strategy.long, alert_message='{"action": "OPEN", "direction": "LONG", "pair": "' + syminfo.ticker + '", "token": "' + token + '"}')
if (short)
strategy.entry("Short", strategy.short, alert_message='{"action": "OPEN", "direction": "SHORT", "pair": "' + syminfo.ticker + '", "token": "' + token + '"}')