fxDreema

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

    Zero or negative profit in optimization

    Questions & Answers
    2
    11
    3198
    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

      Hello fxDreema. Are you okay? Hope so.

      I wonder if you have a way to eliminate zero profit or negative profit from optimization? For that will only be the positive results.

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

        I think that MetaTrader eliminated those by itself

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

          I say about what is written in this article mql5: 6. Creation of Classes of Custom Optimization Criteria https://www.mql5.com/en/articles/286

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

            Who wanna read this 🙂 I see some that some classes are used and no, I don't use classes very much.

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

              I put it so you can read! rsrssrs

              Maybe you create a block with this functionality, I do not know! Rsrsrs

              It's to eliminate results 0 in optimizations. With this it will only test forward with the parameters that have had some result, either positive or negative.

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

                You know, maybe I don't understand the process of optimization very well. I'm a simple man, I was playing with the optimizer few times, but that's mostly all. There are probably details that I am not aware of, like those 0 results and criteria.

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

                  Excuse me. I did not explain clearly. The zero I mean zero profit, 0 positions.

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

                    I also don't understand optimization process. Whatever I do, I work mostly in Visual mode. I check "Optimization" very rarely and I'm really not experienced and I don't know what is expected to happen as a result 🙂 I don't remember seeing zero or negative results after optimization. I actually prefer to see those, but they don't appear in the results and I don't know how to turn them on.

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

                      I understand. It's because I put it to optimize every day of the week too. If every day of the week is false, the optimization will continue until the end of the period, but since it will not open any order due to being off, then time is lost with these passes.

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

                        If every day of the week is false and you have 1 block "Weekday filter" on top of all other blocks, then I guess this block will be checked on every tick, but those below will not work. So it should be as slow as the "Weekday filter" alone. At least this is on theory...

                        In the past I was analysing the speed of the code many times and I know that MQL sometimes behave stupid. Imagine you have function with 30 rows of code, but with "return" on the top which basically means that the code below will never run. Well, I noticed that sometimes only the presence of such dead code can make the EA to run slower. Imagine what is going on with 1000s of rows of code 🙂

                        When optimizing, I think there is more from that stuff. And to be honest, I don't know what to do with these situations. I wrote several times for such problems to MetaQuotes before and most of the time there is no answer or they do nothing about the problem. Only once they fixed something.

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

                          Ok fxDreema. Thanks for the info. I guess I'll leave the week without filter for now.

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

                          Online Users

                          P
                          M

                          13
                          Online

                          146.7k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors