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 + '"}')