Tutoriales March 30, 2026
🔄 Tutorial #6: MACD Divergence Hunter
Atrapá el agotamiento del mercado. Las divergencias son uno de los patrones más poderosos y difÃciles de ignorar.
ED
Emmanuel Dearmas
DearmasTrader Team
🔄 Agotamiento: Cuando el precio sube pero el MACD baja, la tendencia se está muriendo. Automatizá la reversión.
//@version=6
strategy("DMT - MACD Divergence", overlay=true)
token = input.string("TOKEN_DMT", "DMT Token")
[m, s, h] = ta.macd(close, 12, 26, 9)
long = ta.crossover(h, 0)
short = ta.crossunder(h, 0)
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 + '"}')