I am studying mql4, and am trying to convert a code in Pine Script to mql4
The code is simple, it is to know the direction of the trend.
pos = lowest(mom(ema(ohlc4, el), ml), cl)>0
neg = highest(mom(ema(ohlc4, el), ml), cl)<0
bgcolor(pos ? red : neg ? green : white, transp=70)
I would like a tips how can I write the above code in mql4?