fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Problem with custom indicator "open error"

    Bug Reports
    2
    11
    4095
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • tcanuto
      tcanuto last edited by

      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 failed

      Here is the link of my project is testing: http://fxdreema.com/shared/nqaySRYvb

      Attached is also the custom indicator.

      ......
      roman5_heikenashi_ts_indicator.ex5

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        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 🙂

        1 Reply Last reply Reply Quote 0
        • tcanuto
          tcanuto last edited by

          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.

          Add Custom Indicator.PNG

          Add Custom Indicator2.PNG

          ......
          Add Custom Indicator.PNG
          Add Custom Indicator2.PNG

          1 Reply Last reply Reply Quote 0
          • tcanuto
            tcanuto last edited by

            Another problem. I can only send 10 parameters

            1 Reply Last reply Reply Quote 0
            • fxDreema
              fxDreema last edited by

              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.

              1 Reply Last reply Reply Quote 0
              • tcanuto
                tcanuto last edited by

                __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?

                1 Reply Last reply Reply Quote 0
                • fxDreema
                  fxDreema last edited by

                  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 text

                  So 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.

                  1 Reply Last reply Reply Quote 0
                  • tcanuto
                    tcanuto last edited by

                    __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.

                    1 Reply Last reply Reply Quote 0
                    • fxDreema
                      fxDreema last edited by

                      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
                      _Variable123

                      These 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.

                      1 Reply Last reply Reply Quote 0
                      • tcanuto
                        tcanuto last edited by

                        I did as requested, but still it is not possible not more than 10 imput parameters.

                        1 Reply Last reply Reply Quote 0
                        • fxDreema
                          fxDreema last edited by

                          If you have TeamViewer, send me your data on PM or email.

                          1 Reply Last reply Reply Quote 0
                          • 1 / 1
                          • First post
                            Last post

                          Online Users

                          E
                          H
                          R

                          13
                          Online

                          146.7k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors