Download MetaTrader 5
To add comments, please log in or register
Find out how to add a video in the messages editor
Damir
5
Damir 2014.06.05 08:32 
Build:
MetaTrader, Version 4.00 Build 646 (30 Apr 2014)
MetaEditor, Version 5.00 Build 934 (30 Apr 2014)

Bug description:
Passing datetime input (or extern) parameter OTHER THAN 0 to another custom indicator causes MT4 to hang indefinitely. (I suspect you haven't adapted iCustom calls to new datetime size/format).

Example:

Input parameter declaration in indicator 1:

input datetime StartTime  = 0;
input int      StartLevel = 0;

Custom indicator call in indicator 2:

iCustom (NULL, PERIOD_CURRENT, "Indicator1",  D'2009.01.22', 0, 1, index);

So, if the date above is replaced by 0, the call works (but can't pass the parameter).

Also, if input parameter declaration in  Indicator 1 is changed to type double, the call works with values other than 0 as well (which makes me believe the problem is with the new datetime size/format).

input double StartTime = 0;
input int    StartLevel = 0;

Best,

Damir
Alain Verleyen
Moderator
28648
Alain Verleyen 2014.06.10 08:07  
damir1p:
Build:
MetaTrader, Version 4.00 Build 646 (30 Apr 2014)
MetaEditor, Version 5.00 Build 934 (30 Apr 2014)

Bug description:
Passing datetime input (or extern) parameter OTHER THAN 0 to another custom indicator causes MT4 to hang indefinitely. (I suspect you haven't adapted iCustom calls to new datetime size/format).

Example:

Input parameter declaration in indicator 1:

input datetime StartTime  = 0;
input int      StartLevel = 0;

Custom indicator call in indicator 2:

iCustom (NULL, PERIOD_CURRENT, "Indicator1",  D'2009.01.22', 0, 1, index);

So, if the date above is replaced by 0, the call works (but can't pass the parameter).

Also, if input parameter declaration in  Indicator 1 is changed to type double, the call works with values other than 0 as well (which makes me believe the problem is with the new datetime size/format).

input double StartTime = 0;
input int    StartLevel = 0;

Best,

Damir

Please report this issue to the ServiceDesk of Metaquotes.
/
To add comments, please log in or register