![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
because for some resion (probably a bug) the arrays are not initialized
So far I am not getting value for 'T3MA' and 'HMA'.
Probably this is why this EA isn't opening any order as both of these indis are used in it.
Or had I done any mistake in the EA?
So far I am not getting value for 'T3MA' and 'HMA'.
i told you already
because for some reason (probably a bug) the arrays are not initialized
Probably this is why this EA isn't opening any order as both of these indis are used in it.
i dont know maybe, probably, perhaps, possible, likely, reasonable
Or had I done any mistake in the EA?
i dont think so
Yes, you are right. But why?
I have compiled them as SDC said and found '0' Error or Warning.
Then what can I do to upgrade them to B-600+ ?
HMA.mq4 has a bug, change this line in init() :
toThis EA isn't opening any Trade even in Build 509 where both 'T3MA' & 'HMA' are working fine.
What can be the reason then?
Similar bug in T3MA.mq4, change to :
These are logical bugs that the compiler can not catch.
These bugs are already present in build 509, but don't lead to a problem as SetIndexBuffer has little chance to be false. It's now a problem due to this change :
Shortened conditions check is now used in logical operations, unlike the old MQL4 version where all expressions have been calculated and the check has been performed afterwards. Suppose there is a check of two conditions with the use of logical AND
If condition1 expression is false, calculation of condition2 expression is not performed, as false && true result is still equal to false.
Similar bug in T3MA.mq4, change to :
These are logical bugs that the compiler can not catch.Thanks a lot Sir.
Yes, these were the Bugs and they are working now. :)
Can you please have a look why the EA isn't opening any order at all in spite of these indicators working?
Regards
Can you please have a look why the EA isn't opening any order at all in spite of these indicators working?
show your EA code
show your EA code
Here it is:
iCustom
Calculates the specified custom indicator and returns its value.
double iCustom(
string symbol, // symbol
int timeframe, // timeframe
string name, // path/name of the custom indicator compiled program
... // custom indicator input parameters (if necessary)
int mode, // line index
int shift // shift
);
Parameters
symbol
[in] Symbol name on the data of which the indicator will be calculated. NULL means the current symbol.
timeframe
[in] Timeframe. It can be any of ENUM_TIMEFRAMES enumeration values. 0 means the current chart timeframe.
name
[in] Custom indicator compiled program name, relative to the root indicators directory (MQL4/Indicators/). If the indicator is located in subdirectory, for example, in MQL4/Indicators/Examples, its name must be specified as "Examples\\indicator_name" (double backslash "\\"must be specified as separator instead of a single one).
...
[in] Custom indicator input-parameters, separated by commas.
The passed parameters and their order must correspond with the declaration order and the type of extern variables of the custom indicator. If the values of input parameters is not specified, the default values will be used.