a little help needed
the errors are about the moving averages - they both appear as horizontal lines (no matter the period)
0.0000000000000000000000000000000001 is to avoid dividing by zero and not complicate the code at the same time
[img]http://charts.mql5.com/3/437/eurusd-m5-alpari-limited.png[/img]
for (i=0; i<=Bars; i++) wantedcutvalue[i] = iMAOnArray(currentbarvalue,0,wantedbars,0,0,0); for (i=0; i<=Bars; i++) benchmarkvalue[i] = iMAOnArray(currentbarvalue,0,benchmarkbars,0,0,0);
Why do you want every arrayvalue filled with same result ??
Why do you want every arrayvalue filled with same result ??
thanks alot for the reply
I don't want that, actually... I thought that with that last zero I am not shifting anything...

Hello,
this code is supposed to caclulate the realtive lenght of the whick versus the body of the candle - and after that calculate and visualize an average for a short and a longer period of that
I am very new to coding (I suppose I couldn't hide it even if I wanted :)))))) ) - so please show me the errors and/or incompleteness :))))))))