Forum

How to set up "minimum trades" in MT4 EA Optimizer?

When I run the optimizer, sometimes it produce results with only 2 or 3 trades, especially when I'm running it according to "Best Profit Factor". And that definitely is not a valid result. So I was thinking, is there a way to tell the EA something like "Discard the result if it is less than 30

How to get the amount of bars since the order is open!?

Could somebody please be so kind and teach me how to make a function to get the amount of bars since the order is open!? For example, if I bought a EUR/USD on 9/2, then today such function should return 10 in a daily chart, 240 (more or less) in a hourly chart, and so on. Much appreciated

MT4 iCustom always returned 2147483647

I wrote a custom indicator and had tested it working. But when I tried to test it in EA using iCustom, it ALWAYS returned 2147483647! I saw some article saying that to change the Shift to 1, I tried but still to no avail! Could somebody be so kind and teach me how to fix it properly, PLEASE!? Much