Attachments forums

List of attachments posted on this forum.


All files on forums: 160694

Re: Already Converted TradingView Indicators to MT4 Indicators

AxelJ, Sat Jan 07, 2023 8:43 am

Hello coders anyone can make this MACD strategy as a bot in trading view ? thanks


//@version=5
strategy("MACD Strategy", overlay=true)
fastLength = input(12)
slowlength = input(26)
MACDLength = input(9)
MACD = ta.ema(close, fastLength) - ta.ema(close, slowlength)
aMACD = ta.ema(MACD, MACDLength)
delta = MACD - aMACD
if (ta.crossover(delta, 0))
strategy.entry("MacdLE", strategy.long, comment="MacdLE")
if (ta.crossunder(delta, 0))
strategy.entry("MacdSE", strategy.short, comment="MacdSE")
//plot(strategy.equity, title="equity", color=color.red, linewidth=2, style=plot.style_areabr)
All files in topic