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.
1601
hongbin fei  

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
2927
Bogdan Alin Baltatu  
Paul
784
Paul  
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

/go?link=http://paulsfxrandomwalk.blogspot.com/ 

Files:
Quantum
294
Quantum  
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
109067
Automated-Trading  

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

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

Francisco Jose Castro
121
Francisco Jose Castro  
wininet isn't working after the las MT5 update. Any solution found?
Slava
Moderator
7067
Slava  
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