Problem with custom indicator "open error"
-
Hi I am having the following problem in my project to open a custom indicator in ex5.
Diario:
The error is this: 22/11/2013 12:12:03 Tester expert file open error [2]Journal:
2013.11.22 12:19:43 2013.11.01 00:03:11 Error: Indicator not handled. (handle=-1 | error code=4802)
2013.11.22 12:19:43 2013.11.01 00:03:11 cannot load custom indicator 'roman5_heikenashi_ts_indicator' [4802]
2013.11.22 12:19:43 loading of roman5_heikenashi_ts_indicator EURUSD,M1 failedHere is the link of my project is testing: http://fxdreema.com/shared/nqaySRYvb
Attached is also the custom indicator.
-
One true/false parameter missed in the middle. Now I can recomment to define that indicator in "My Indicators", It's now possible to manually set it up

-
Thanks, added the window with all data, yet still with the same problem. Could you check?
See if this correct. It is the same indicator.
-
Another problem. I can only send 10 parameters
-
Oh, it looks like MT5 shows not the real variable names, but they "friendly" names. In mq5 these are written as a comment just after the variable definitions and they can contain any text. Try with some names close to these, but containing only latin letters, numbers and "" and starting with "" or a latin letter.
-
__Oh, it looks like MT5 shows not the real variable names, but they "friendly" names. In mq5 these are written as a comment just after the variable definitions and they can contain any text. Try with some names close to these, but containing only latin letters, numbers and "" and starting with "" or a latin letter.[/quote:3rf6kwxe]
Okay I see that has not been solved this problem. Nor can we know what is the name of the external variable because I have only the. Ex5 of the indicator.
How do I work the previous way in custom indicator? -
Variable names does matter, the same with buffer names.
What matters for input variables is their number and datatype. There are 3 basic datatypes - string (when variable is text), double and bool (when it is true or false). We can even generalize datatypes as 2 main groups - string and not string.int = whole numbers, like 24
double = float numbers, like 24.5
bool = true or false, and these are keywords for 1 and 0
string - any textSo if you see value like 1 or 2 or 3 or 24 or 18328, this is int. But double will work as well!
If you see value like 1.3 or 2.4 or 126.283, this is double, and int will almost work... but not exactly.
If you see value like "Hello, world" or any other text - this is string and no other datatype can replace this one!
if you see value like true or false, this is bool. But double or int can work as well (with values 0 or 1)Again, the name of the variable does not matter, because to get a value from custom indicator, the special function iCustom() is used, and there you only define values as they are.
-
__Another problem. I can only send 10 parameters[/quote:258o2nzy]
I keep having this same problem. Does not save more than 10 parameters.Regarding data types, thank you for remembering, because this information is important.
-
Well, some programming rules should be follower. For variables names use latin letters, numbers and _ symbol, start the variable with latin letter or _ symbol. As I said variable names are not important, but in the meaning that it is not mandatory for them to be exactly the same as those used in the project. But they are variables after all. There are valid:
VariableName
Variable_Name
_Variable_Name
Variable1
_Variable123These are not valid:
1Variable
Variable Name- Variable name
// Variable name!
In case of string variable, better don't use symbols like ", //, /* or */ - these should be escaped... and I think I was not implemented this right now, or I have to check if this works. I will add some filter & fix rules later.
I tried to add more than 10 variables in my sample indicator, there is no probles at least here. But try to do things in the way I described above and it should work.
Basically, for all variable names everywhere use variables that only contains latin letters, some numbers (but not as first symbol) and underscores. - Variable name
-
I did as requested, but still it is not possible not more than 10 imput parameters.
-
If you have TeamViewer, send me your data on PM or email.