Wrong values received by MQL5 iCustom function New comment jaffer wilson 2018.06.07 09:36 I am trying to call the MQL4 indicator with MQL5 using iCustom() .int test = iCustom(_Symbol,_Period,"ADXmagic.ex4");I have copies the two buffers with number 0 and in the a and b of double type. CopyBuffer(test,0,0,5,a); CopyBuffer(test,1,0,5,b); ArrayPrint(a); ArrayPrint(b);But the output received is completely garbage and no values: 6E+39 2E+92 0.00000 +0.00000 +0.00000 4E+230 0.00000 +0.00000 +0.00000 +0.00000 6E+39 2E+92 0.00000 +0.00000 +0.00000 4E+230 0.00000 +0.00000 +0.00000 +0.00000 6E+39 2E+92 0.00000 +0.00000 +0.00000 4E+230 0.00000 +0.00000 +0.00000 +0.00000 6E+39 2E+92 0.00000 +0.00000 +0.00000 4E+230 0.00000 +0.00000 +0.00000 +0.00000 Kindly, let me know am I correct on calling the indicator? Is there a flaw I made? Indicator not giving the previous values. Strategy Tester issue with iCustom() function. How we can use iVolumes() indcator in Expert? Joe Fung 2018.06.07 13:24 #1 I tried to call the mql5's iCustom function using mql4 and error results, probably mql4 and mql5 are not compatible jaffer wilson 2018.06.07 14:32 #2 Joe Fung: I tried to call the mql5's iCustom function using mql4 and error results, probably mql4 and mql5 are not compatibleI guess you got me wrong.... I am calling the ex4 indicator file with iCustom() in MQL5. Alexey Volchanskiy 2018.06.07 15:17 #3 jafferwilson: I guess you got me wrong.... I am calling the ex4 indicator file with iCustom() in MQL5.I advise after a questionable operation to call a function GetLastError :) William Roeder 2018.06.07 16:21 #4 jafferwilson: I am calling the ex4 indicator file with iCustom() in MQL5.You can't run a ex4 in MT5 jaffer wilson 2018.06.08 06:14 #5 Alexey Volchanskiy: I advise after a questionable operation to call a function GetLastError :)Thank you for your advise sir. I will keep this in mind while programming. jaffer wilson 2018.06.08 06:15 #6 whroeder1: You can't run a ex4 in MT5Why can't I ? If there are very good indicators in MT4 and not in MT5, then why there isn't any mechanism to use it? New comment
I am trying to call the MQL4 indicator with MQL5 using iCustom() .
I have copies the two buffers with number 0 and in the a and b of double type.
But the output received is completely garbage and no values:
Kindly, let me know am I correct on calling the indicator? Is there a flaw I made?