返回博客
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 + '"}')
      

准备好应用所学知识了吗?

在演示模式下免费测试我们的策略。

创建免费账户