Extend MQL!! - page 4

 
pengie:

---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

 
Shinigami:

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

 
MrPip:
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

Thanks

 

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.

Files:
orderslib.zip  2 kb
 

Another thread with libraries:

https://www.mql5.com/en/forum

 
ryanklefas:
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

 
newdigital:
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

Thanks 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

Reason: