Zero or negative profit in optimization
-
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.
-
I think that MetaTrader eliminated those by itself
-
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
-
Who wanna read this
I see some that some classes are used and no, I don't use classes very much. -
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.
-
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.
-
Excuse me. I did not explain clearly. The zero I mean zero profit, 0 positions.
-
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. -
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.
-
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.
-
Ok fxDreema. Thanks for the info. I guess I'll leave the week without filter for now.