You need to learn programming outside of mql4. Something like API or Dll. Easy way for you is to search online for Tool someone else already made which exports to web. Good Luck.
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.
Hi !
I cant speak english very well and i need your help.
I have code like this;
.....
void ExportDeals() {
int dg;
string st="";
dg=MarketInfo(OrderSymbol(), MODE_DIGITS);
if (dg==0) if (StringFind(OrderSymbol(), "JPY")<0) dg=4; else dg=2;
st=st+DoubleToStr(OrderTicket(), 0)+";";
st=st+DoubleToStr(OrderOpenTime(), 0)+";";
st=st+DoubleToStr(OrderType(), 0)+";";
st=st+DoubleToStr(OrderLots(), 1)+";";
st=st+OrderSymbol()+";";
st=st+DoubleToStr(OrderOpenPrice(), dg)+";";
st=st+DoubleToStr(OrderStopLoss(), dg)+";";
st=st+DoubleToStr(OrderTakeProfit(), dg)+";";
st=st+OrderComment();
WritingLineInFile(stFileName, st);
}
//+----------------------------------------------------------------------------+ |
//+----------------------------------------------------------------------------+
void WritingLineInFile(string FileName, string text) {
int file_handle=FileOpen(FileName, FILE_READ|FILE_WRITE, " ");
if (file_handle>0) {
FileSeek(file_handle, 0, SEEK_END);
FileWrite(file_handle, text);
FileClose(file_handle);
}
}
....
This code export .csv file to /.../..mt4/expert/files directory. I wanna export this .csv file to web server. How can i do .
thank you.