fxDreema

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

    Creating EA using .ex4 indicator

    Bug Reports
    2
    6
    576
    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.
    • T
      tmk1000 last edited by

      Hi !

      I am trying to create a EA using this indicator.
      volatility quality zeroline d4.ex4

      I manually entered Variables and buffers. After some days of trial and errors I managed to get it to work/appear on the tester.

      However, when running the strategy tester, the indicator sub-window keeps multiplying itself. it's like adding the indicator on chart every millisecond.

      I have attached examples.

      chart 1.PNG

      chart 2.PNG

      chart3.PNG

      chart4.PNG

      As you can see in the above image the longer the strategy tester runs the worst it gets.

      Bellow is how I added the indicator on fxDreema.

      Capture1.PNG

      Capture2.PNG

      Capture3.PNG

      Please can you can assist me please maybe I added wrong "data types".

      Please help.

      There's also another bug that I realised when editing ".ex4" but I will explain it in another topic.

      Please your assistance will be much appreciated.

      roar 1 Reply Last reply Reply Quote 0
      • roar
        roar @tmk1000 last edited by roar

        @tmk1000 I appreciate you waited until it placed 10000 copies to make your point 😄

        How did you apply the indicator in your project? This problem usually appears if you use the "Custom indicator" selection instead of "My Indicators".

        a0a6d5b7-4997-4368-91c9-d5932142e8e7-image.png

        Need small help? Tag me in your post
        Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

        T 1 Reply Last reply Reply Quote 0
        • T
          tmk1000 @roar last edited by tmk1000

          @roar Hi roar first of all I would like say thank you for your assistance. I see how you assist many of us in this forum. so thank you. you're a legend,
          hahah trust me that was produced less than 5 seconds.

          I decided to try how you done it. it's giving compilation errors.

          I have attached a picture and a link to it.
          https://fxdreema.com/shared/3oFMcTSQb

          fxDreema2.PNG

          roar 1 Reply Last reply Reply Quote 0
          • roar
            roar @tmk1000 last edited by roar

            @tmk1000 I get a different set of errors, but the main issue seems to be the enumerations.

            For example "Up arrow code" - it looks like "int" datatype in metatrader, but actually it is an enumeration because its value appears as a text string.

            To correct this, you need to setup up the enumerations, like this:

            enum up_arrowcodes{
            ball, //Ball
            dot, //Dot
            ...
            heavy_right_up //Heavy right up
            }
            

            For every enumerated setting in your indicator, and then change the datatype from "int" to "up_arrowcodes" and respectively for other settings.

            Another way is to skip the enumerations (because really they are just integers in a text disguise) and put the corresponding integer number to your setting, like number 8 for "Heavy right up" (count the enumeration list starting from 0).

            16393c0a-6d76-4092-b36c-962840981c1e-image.png

            Need small help? Tag me in your post
            Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

            T 1 Reply Last reply Reply Quote 0
            • T
              tmk1000 @roar last edited by

              @roar Thank you for your time and assistance.
              I tried both suggestion

              1. Enumeration:
                I'm still getting errors depending on what I select on the indicator condition.
                fxDreema7.PNG
                for example: if I choose "Heavy right up" from the dropdown, I will get a compilation error on "Heavy right up". If I choose "Ball" I will get compilation error on Ball. if I choose both I will compilation errors on both respectively.
                Below I listed data I entered.
                fxDreema5.PNG

              fxDreema6.PNG

              1. Using integers

              Using integers, the indicator worked. it wasn't multiplying itself as it was doing before. I almost got emotional when I saw it because it took me days. So thank you.

              however, on the indicator window on MT4, if doesn't seem to recognise the number. next to "Up arrow code" and "Down arrow code" it's empty. Initially in fxDreema, I entered 8, then I replaced it with 7. But I still got the same thing. I also attached a picture below.

              fxDreema4.PNG

              1 Reply Last reply Reply Quote 0
              • T
                tmk1000 last edited by

                Hi @roar , I was meant to do another topic for this but because it happened again. I decided to ask here. But please advise if I need a new topic for this.

                Basically whenever, I edit an .ex4 indicator under "My indicator tab: Indicator Name / Relative Path". it seems like the change does not take effect immediately. Somehow the program still store the previous entered data. I can fresh the page, close the page, to even switch the laptop. it won't change until some times pass and randomly when you try it work again. or If I re-upload the indicator or rename it. it may work.

                Example: with this current indicator as I have shown above I was getting errors with the enumerations. I decided to follow your second advise by removing it and just use integers. But whenever I click on download the ex4, I still get errors of enumerations that were previously used. Although I have deleted it as shown in the picture below. I have also attached the link.
                I have been struggling with it for hours now. the errors still not going away. This happens so often with other indicators too. Thank you in advance.

                https://fxdreema.com/shared/PNADRdNje

                fxDreema8.PNG

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

                Online Users

                E
                S
                N
                O
                M
                D

                11
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors