You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.