BUG: Datetime parameter with iCustom function
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.
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
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