Forum

pine script array to mql4 array - how to do it correctly

Hi, how to correctly rewrite this line from pine script to mql4? Pine Script: SmoothedTrueRange = nz(SmoothedTrueRange[ 1 ]) - (nz(SmoothedTrueRange[ 1 ])/ADX_Length)+ TrueRange; mql4 error: '[' - array required 'SmoothedTrueRange' - invalid array access Thx

I am looking in mql5 the same as a function in Tradingview crossover, crossunder...

Hi, I am looking for a function in mql5 the same as a function in Tradingview: crossover(close, ema) crossunder(close, ema) how to do it in mql5