DON'T put && into if's - that really slows them down. I've already re-wrote some experts into that way and guess what - they work up to 10 times faster (each condition is checked if && is used, even if one is FALSE, others are still checked. if you use separate if's you save time because you stop at first FALSE you get)
With 2 days redirection but those redirections will be expired and deleted automatically after 2 days (so no need to inform members by PM about this merging).
With 2 days redirection but those redirections will be expired and deleted automatically after 2 days (so no need to inform members by PM about this merging).
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
---Todo list
Add functions for MM and TrailingStops.I can do that in 5 minutes lol instead of making new functions, take a look at existing ones
DON'T put && into if's - that really slows them down. I've already re-wrote some experts into that way and guess what - they work up to 10 times faster (each condition is checked if && is used, even if one is FALSE, others are still checked. if you use separate if's you save time because you stop at first FALSE you get)
I hope this helps...Thanks for the explanation. This helps a lot!
FerruFx
using OrdersTotal
This also works well.
for(int cnt=OrdersTotal()-1;cnt>=0;cnt--)
{
OrderSelect (cnt, SELECT_BY_POS, MODE_TRADES);
if ( OrderSymbol() != Symbol()) continue;
if ( OrderMagicNumber() != MagicNumber) continue;
// Process Order
}
Robert
This also works well.
for(int cnt=OrdersTotal()-1;cnt>=0;cnt--)
{
OrderSelect (cnt, SELECT_BY_POS, MODE_TRADES);
if ( OrderSymbol() != Symbol()) continue;
if ( OrderMagicNumber() != MagicNumber) continue;
// Process Order
}
RobertThanks
Here is another thread with some libraries:
https://www.mql5.com/en/forum
Now if we could get ND to start merging some of these threads, we could get this forum cleaned up a bit.
Another thread with libraries:
https://www.mql5.com/en/forum
Another thread with libraries: https://www.mql5.com/en/forum
It was merged.
With 2 days redirection but those redirections will be expired and deleted automatically after 2 days (so no need to inform members by PM about this merging).
BTW we have enough threads/posts for future programming section. I am collecting everything here https://www.mql5.com/en/forum/174329
It was merged.
With 2 days redirection but those redirections will be expired and deleted automatically after 2 days (so no need to inform members by PM about this merging).
BTW we have enough threads/posts for future programming section. I am collecting everything here https://www.mql5.com/en/forum/174329Thanks again, ND. You just can't under-estimate the importance of an organized forum.
It will be some difficulties
Web Service Call in MQL4
Hi everybody,
Is there a possibility to perform web services calls within an expert advisor to query a distant system.
Best Regards