Download MetaTrader 5

Is it a way to open URL by code from expert?

To add comments, please log in or register
HongDi s& t development co.,ltd.
1605
hongbin fei 2010.01.26 10:11 

I want release some trade info, like:

After a order placed, I will call a http://...../boardcast.php,

 Is it a way to open URL by code from expert?

Bogdan Alin Baltatu
2926
Bogdan Alin Baltatu 2010.01.26 19:03  
Paul
784
Paul 2010.01.27 02:47  
dudufx:

Yes , it is possible with WinInet dll.

 

I've been using the attached include for a long time in MT4 to access the Forex Factory xml calendar, and also to scrape a signals service.  On my (rather long) list of things to do is to convert it to MQL5.

 The only problem I've had with it is that it refuses to refresh the FF xml calendar when it changes, no matter what flags I try.

Paul

http://paulsfxrandomwalk.blogspot.com/ 

 

 

Files:
Quantum
178
Quantum 2010.01.27 13:41  
codeidea posted  :

 Is it a way to open URL by code from expert?

Here is another one (script):

#import "shell32.dll"
int ShellExecuteW(int hwnd,string Operation,string File,string Parameters,string Directory,int ShowCmd);
#import

void OnStart()
  {
   Shell32::ShellExecuteW(0,"open","http://mql5.com","","",3);
  }
Automated-Trading
Admin
100918
Automated-Trading 2010.02.26 13:26  

By the way, the example in MQL5 is available now.

See script WININET_TEST, that downloads file using wininet.dll.

fjccpm
117
fjccpm 2012.02.14 14:07  
wininet isn't working after the las MT5 update. Any solution found?
Slava
Moderator
6913
Slava 2012.02.15 08:18  
fjccpm:
wininet isn't working after the las MT5 update. Any solution found?
Please wait for the next build. There are problems with the dll calls
To add comments, please log in or register