EMA Crossover (9/21)
Croisement de moyennes mobiles exponentielles. Le grand classique pour suivre la tendance court terme.
//@version=5
indicator("EMA Crossover → TC", overlay=true)
fast = ta.ema(close, 9)
slow = ta.ema(close, 21)
bull = ta.crossover(fast, slow)
bear = ta.crossunder(fast, slow)
plot(fast, color=color.lime)
plot(slow, color=color.orange)
if bull
alert('{"account":"acct_mt5_8841","action":"buy","symbol":"' + syminfo.ticker + '","volume":0.10}', alert.freq_once_per_bar_close)
if bear
alert('{"account":"acct_mt5_8841","action":"sell","symbol":"' + syminfo.ticker + '","volume":0.10}', alert.freq_once_per_bar_close)