Page 1 of 2

MT5 and function iCustom

Posted: Thu Apr 20, 2017 5:45 am
by andreatrade1
Dear all,

my target is to use one indicator and modify the values in MT5 via the iCustom function .
It was a success using the attached code ( TestCopyArray3 ) with the attached tsis.mq5 indi but it doesnt' work with the attached relation.mq5 indi.
Could you please help me ?


ps: the indi Relation needs the Matrices.mqh file available here

Re: MT5 and function iCustom

Posted: Sun May 07, 2017 9:56 pm
by andreatrade1
Dear mladen,

could you please help me with the above issue ?

Re: MT5 and function iCustom

Posted: Sun May 07, 2017 10:01 pm
by mladen
andreatrade1 wrote: Sun May 07, 2017 9:56 pm Dear mladen,

could you please help me with the above issue ?
"Relation"" has 4 parameters
You are trying to use 5. The "price" can not be passed to that indicator like that. If you wish to have choseable price from parameters, you have to rewrite that indicator

Re: MT5 and function iCustom

Posted: Sun May 07, 2017 10:22 pm
by andreatrade1
dear mladen,

thanks for your reply but even using 4 parameters ( Handle=iCustom(NULL,0,"Relation",300,true,InpTimePeriod,"EURUSD"); ) or none ( Handle=iCustom(NULL,0,"Relation"); ) it doesn't work.

any help would be really appreciated.

Re: MT5 and function iCustom

Posted: Sun May 07, 2017 11:19 pm
by mladen
andreatrade1 wrote: Sun May 07, 2017 10:22 pm dear mladen,

thanks for your reply but even using 4 parameters ( Handle=iCustom(NULL,0,"Relation",300,true,InpTimePeriod,"EURUSD"); ) or none ( Handle=iCustom(NULL,0,"Relation"); ) it doesn't work.

any help would be really appreciated.
Here is how this test looks like when I test it


Re: MT5 and function iCustom

Posted: Sun May 07, 2017 11:51 pm
by andreatrade1
Dear malden,

may be we are close to the solution....if it works on your terminal should work also on mine but this is not happening.
I've paste and copy your indi ( changing also form EURUSD.m to EURUSD ...etc..) but the result is what you see ...nothing.
I'm pretty sure there is a mistake in my configuration ...could you help me ?

Re: MT5 and function iCustom

Posted: Mon May 08, 2017 12:30 am
by mladen
andreatrade1 wrote: Sun May 07, 2017 11:51 pm
Dear malden,

may be we are close to the solution....if it works on your terminal should work also on mine but this is not happening.
I've paste and copy your indi ( changing also form EURUSD.m to EURUSD ...etc..) but the result is what you see ...nothing.
I'm pretty sure there is a mistake in my configuration ...could you help me ?
I don't know hat could cause an issue on your terminal. Sorry

Re: MT5 and function iCustom

Posted: Sun Jul 16, 2017 4:45 am
by mladen
It does not get stupider than this :

Short story : using an indicator from expert (metatrader 5 all the time and the simplest iCustom() call). The indicator name ending in "1.3". EA can not load it and causes run-time error in back test. When I removed the "1.3" from the indicator name, oh great wonders, it started to work. Whenever you have a simple "." in the name, EA back-testing goes nuts. I hope they are proud with the latest build of MT 5

Re: MT5 and function iCustom

Posted: Sun Jul 16, 2017 7:29 am
by mntiwana
mladen wrote: Sun Jul 16, 2017 4:45 am It does not get stupider than this :

Short story : using an indicator from expert (metatrader 5 all the time and the simplest iCustom() call). The indicator name ending in "1.3". EA can not load it and causes run-time error in back test. When I removed the "1.3" from the indicator name, oh great wonders, it started to work. Whenever you have a simple "." in the name, EA back-testing goes nuts. I hope they are proud with the latest build of MT 5
And if for this they are forcing every one to move on mt5,it is users still resisting to stay at mt4

Re: MT5 and function iCustom

Posted: Sun Jul 16, 2017 4:11 pm
by mladen
mntiwana wrote: Sun Jul 16, 2017 7:29 am And if for this they are forcing every one to move on mt5,it is users still resisting to stay at mt4
Yes, but we all know what is going on with build 1090 of mt4 too.
I am afraid that I have no idea what are they doing now (not with mt4 and not with mt5)