fxDreema

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

    MT4 optimization for indicator settings

    Questions & Answers
    2
    6
    1054
    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.
    • K
      keshb96 last edited by

      I have created an EA which works in my strategy tester
      However I want to optimize my EA to find the best settings to use on my indicators which I have figured out to do.
      The problem is that I think there is two different pieces of code for the same indicator, because a crossover of one line in the indicator with another line in the second (identical) indicator is a signal.
      The leads to me receiving two different numbers for the same setting of the indicator, which I wouldnt be able to use for forward testing without having two indicators on my charts, which I dont want.

      Is there any way to fix this so that the suggested settings to use for my one indicator is a fixed number?

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

        @keshb96
        Make a constant and use that in all blocks:
        0_1567689739901_85d158dd-f17b-4b79-8b3c-93048368eb1f-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

        1 Reply Last reply Reply Quote 1
        • K
          keshb96 last edited by

          I tried compiling it after doing this and it comes up with an error saying 'compilation error' and 'constant expected'

          1 Reply Last reply Reply Quote 0
          • K
            keshb96 last edited by

            It appears as though this is because I've ticked the boxes next to the constant to allow for optimization?

            1 Reply Last reply Reply Quote 0
            • K
              keshb96 last edited by

              No worries, apparently those tickboxes dont matter as it still allows me to edit the input parameters for optimization in MT4

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

                @keshb96 That's correct! The constants will always show up in mt4.
                Personally I never use the tickboxes, they only mess things up.

                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

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

                Online Users

                J
                E
                A
                L

                14
                Online

                146.8k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors