This is a Binary.com trading gateway I personally develop for binary option traders, the web-link I uploaded is the html web address for the gateway to open trade on your Binary.com account. For MT4 platform you can use WebRequest() function to send trade orders.
The gateway weblink :
https://gateway12.000webhostapp.com/...tract_type=PUT
The duration is calculated in seconds, 3600seconds is 1hour. So you can input your trade order parameters in the fields in the web link. Binary.com provides the opportunity to customize your own trade duration; if you want you can trade 13min, 14min and so on.
For MT4 users, make sure to add the web-link address to your MT4 terminal property settings.
Because the link is FREE at the moment it will not accept trade between 22:00 to 23:00 (GMT+1). This means it’s not currently open for 24hrs, but you can have it for 23hours. The 24hours version is available only for paid users.
A sample MT4 code for WebRequest() function which I have tested and it’s working is published below:
string cookie=NULL,headers;
char post[],result[];
int res;
string google_url="https://gateway12.000webhostapp.com/?price=1&symbol=frxGBPJPY&duration=3600&token= zgnweus¤cy=USD&contract_type=PUT";
int timeout;
int filehandle;
//--- to enable access to the server, you should add URL "https://www.google.com/finance"
//--- in the list of allowed URLs (Main Menu->Tools->Options, tab "Expert Advisors"):
//--- Reset the last error code
ResetLastError();
//--- Loading a html page from Google Finance
timeout=5000; //--- Timeout below 1000 (1 sec.) is not enough for slow Internet connection
res = WebRequest("GET", "https://gateway12.000webhostapp.com/?price=1&symbol=frxGBPJPY&duration=3600&token= zgnweus ¤cy=USD&contract_type=PUT", "", NULL, 10000, post, ArraySize(post), result, headers);
//--- Checking errors
if(res==-1)
{
Print("Error in WebRequest. Error code =",GetLastError());
//--- Perhaps the URL is not listed, display a message about the necessity to add the address
MessageBox("Add the address '"+google_url+"' in the list of allowed URLs on tab 'Expert Advisors'","Error",MB_ICONINFORMATION);
}
else
{
//--- Load successfully
PrintFormat("The file has been successfully loaded, File size =%d bytes.",ArraySize(result));
//--- Save the data to a file
filehandle=FileOpen("ServerResponce.csv",FILE_WRITE|FILE_BIN);
//--- Checking errors
if(filehandle!=INVALID_HANDLE)
{
//--- Save the contents of the result[] array to a file
FileWriteArray(filehandle,result,0,ArraySize(result));
//--- Close the file
FileClose(filehandle);
}
else Print("Error in FileOpen. Error code=",GetLastError());
}
The gateway weblink :
https://gateway12.000webhostapp.com/...tract_type=PUT
The duration is calculated in seconds, 3600seconds is 1hour. So you can input your trade order parameters in the fields in the web link. Binary.com provides the opportunity to customize your own trade duration; if you want you can trade 13min, 14min and so on.
For MT4 users, make sure to add the web-link address to your MT4 terminal property settings.
Because the link is FREE at the moment it will not accept trade between 22:00 to 23:00 (GMT+1). This means it’s not currently open for 24hrs, but you can have it for 23hours. The 24hours version is available only for paid users.
A sample MT4 code for WebRequest() function which I have tested and it’s working is published below:
string cookie=NULL,headers;
char post[],result[];
int res;
string google_url="https://gateway12.000webhostapp.com/?price=1&symbol=frxGBPJPY&duration=3600&token= zgnweus¤cy=USD&contract_type=PUT";
int timeout;
int filehandle;
//--- to enable access to the server, you should add URL "https://www.google.com/finance"
//--- in the list of allowed URLs (Main Menu->Tools->Options, tab "Expert Advisors"):
//--- Reset the last error code
ResetLastError();
//--- Loading a html page from Google Finance
timeout=5000; //--- Timeout below 1000 (1 sec.) is not enough for slow Internet connection
res = WebRequest("GET", "https://gateway12.000webhostapp.com/?price=1&symbol=frxGBPJPY&duration=3600&token= zgnweus ¤cy=USD&contract_type=PUT", "", NULL, 10000, post, ArraySize(post), result, headers);
//--- Checking errors
if(res==-1)
{
Print("Error in WebRequest. Error code =",GetLastError());
//--- Perhaps the URL is not listed, display a message about the necessity to add the address
MessageBox("Add the address '"+google_url+"' in the list of allowed URLs on tab 'Expert Advisors'","Error",MB_ICONINFORMATION);
}
else
{
//--- Load successfully
PrintFormat("The file has been successfully loaded, File size =%d bytes.",ArraySize(result));
//--- Save the data to a file
filehandle=FileOpen("ServerResponce.csv",FILE_WRITE|FILE_BIN);
//--- Checking errors
if(filehandle!=INVALID_HANDLE)
{
//--- Save the contents of the result[] array to a file
FileWriteArray(filehandle,result,0,ArraySize(result));
//--- Close the file
FileClose(filehandle);
}
else Print("Error in FileOpen. Error code=",GetLastError());
}