pine script array to mql4 array - how to do it correctly
alien1983:
Hi,
how to correctly rewrite this line from pine script to mql4?
Pine Script:
mql4 error:
'[' - array required
'SmoothedTrueRange' - invalid array access
Thx...
// SmoothedTrueRange = nz(SmoothedTrueRange[1]) - (nz(SmoothedTrueRange[1])/ADX_Length)+ TrueRange; //SmoothedTrueRange is a array or SmoothedTrueRange[0] double SmoothedTrueRangenew = nz(SmoothedTrueRange[1]) - (nz(SmoothedTrueRange[1])/ADX_Length)+ TrueRange;
Hi,
how to correctly rewrite this line from pine script to mql4?
Pine Script:
mql4 error:
'[' - array required
'SmoothedTrueRange' - invalid array access
Thx...