Hi, I converted the Battleplan indicator (found in the network) from MT4 to MT5 successfully, but I still have a problem.
The diffulty I enconter is to do the indicator in MT5 to paint the battleplan for future time date. In MT4 the indicator paint the battleplan even for future data, in MT5 if I try to do the same I get array out of range.
I attach both the MT4 code and MT5 code.
I even tried to resize both array (time & Hurst) with an appropriate dimension but I get the same error
Here are the changes i tried in MT5 version but without success
//ArraySetAsSeries(time,true);
//ArraySetAsSeries(Hurst,true);
......
ArrayResize(Hurst,limit+(int)cyclelength);
ArrayResize(time,limit+(int)cyclelength);
for( i=limit+(int)cyclelength; i>=0; i--) {
........
Hurst[rates_total-1-i]=(cycle+b+10)*((sup-inf)/15)+inf;
........
My question is:
Is there any way to get the same behaviour in MT5 and MT4 version of the indicator?
Files:
battleplan.mq5 6 kb