Number of running sell/buy trades?
-
Hello, hello,
example: 6 selltrades and 4 buytrades are running.
How to find out the number of buytrades as a numerical value? I will use this value as formular input. I will not use the comparision of 'is smaler or is greater as'.regards,
Dieter -
Here are 3 ways:
https://fxdreema.com/shared/c9eTLMISdThe first one is the slowest, because it turns on some part of the EA that calculates multiple statistics in realtime. And it works with ALL trades in general, no matter what Magic number they have.
The second one is faster and you can easily select which trades to work with in "For each Trade".
The third one is the fastest possible, because it is direct code. It is customizable... only if you know what you are doing
This is pretty much a stripped version of #2 (there are some things that slows down #2 a little bit)Obviously I used predefined variables in the example, but they are basically the same as those in Formula.
-
Thank you,
I believe that on longterm I will start with the mql-code/C++ programming because of the possibilities are bigger and of the durations of optimization are so really really short.
The time will rules this

regards,
Dieter