fxDreema

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

    FxDreema Changing/deleting Custom Indicator's Parameters

    Bug Reports
    customindicator bug
    2
    4
    2914
    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.
    • E
      eklonsousa last edited by eklonsousa

      Guys,

      I'm trying to program a EA using a Custom Indicator for months. But I'm facing differents issues and bugs with FxDreema. Each one take weeks to discover what is happening.

      Now, FXDreema is kind of sorting all my indicator parameters and deleting some of them .
      My EA just stop worked some weeks ago and the developer told me that I must have at least two custom indicators. After that, FxDreema was not accepting indicators field called "Period" . And now it is sorting randomically my indicator's fields and deleting some .
      I really need a help here guys...
      Every week I have some bugs.

      E 1 Reply Last reply Reply Quote 0
      • E
        eklonsousa @eklonsousa last edited by

        I've removed and added again my custom indicator as the steps below:

        Indicator Inputs Screen
        alt text

        This is how my indicator shows before the removal:
        alt text

        Steps to remove and include it again:

        Deleting the old one (that was working some weeks ago)

        alt text

        Then, inserting all the input field. All fields checked

        alt text

        Also the Output buffers

        alt text

        Just like in the indicator
        alt text

        Now is time to save the indicator:

        alt text

        And just right after the click I've scrooled up the screen and it shows like this:

        alt text

        alt text

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

          You know that normally fxDreema can try to read all the data from the source code file. In this case, the parameters names are the names of the global variables. For example:

          input int MaxHistBars = 1000; // Maximum History Bars

          Here "MaxHistBars" is the name of the global variable used in the code. Variables can only contain latin letters, numbers or underscore. Space and everything else is not allowed.

          "Maximum History Bars" is just a comment in the code, it describes what the variable is used for. This text obviously can contain space and special characters. In MT5 this comment text goes in the input parameters... if it is present. You can see what you have in your source code. If there is no comment, you will see "MaxHistBars" instead of "Maximum History Bars".

          In the EA you call the custom indicator with the iCustom() function. This function does not care about the names of the input parameters, it cares about their data type and order. So everything could work properly if you give non-variable names, but it's better if the names are at the same as the variable names.

          For example, I added fake parameter for this test indicator:
          0_1526296282965_53fa589e-9698-418a-9b2d-316d1dd241e4-image.png
          The name of the parameter is "<==>" and normally these letters are not written in the output code, but if you check that checkbox (for optimization) they are written and everything breaks. So it's better if the name is a valid variable name.

          Also, the idea is that each parameter should have a name that is unique. Each parameter has its own name and when you save the block, each parameter<->value pair is collected and then written in the database. Parameter "Period" was giving troubles because such parameter already exists:
          0_1526296711345_becc16d5-b986-4200-8f7d-0f74dcf9fbbc-image.png

          The same situation happens now when you have few parameters with the same name "<==>", they are simply combined into one parameter.

          This is the situation at the moment. Given these problems, I can think of some alternative way of giving names to the parameters. Something like... they can have hidden names like this - param1, param2, param3... - and <==>, Period and Max Hist Bars could be just display names. But I think that I can't do that transition very easily and I'm not sure what possible problems could emerge.

          Now my suggestion is to give unique names for each parameter and don't use Period, Symbol, Shift and CORRECTION... and few more names actually. Meanwhile I will try to find a way to fix this situation.

          E 1 Reply Last reply Reply Quote 0
          • E
            eklonsousa @fxDreema last edited by

            @fxdreema

            Thank you for your reply!

            I think that I can handle with that. No problem. Just keep it in mind for future cases...

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

            Online Users

            C
            S
            S
            S
            A

            14
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors