publish via .csv file

 

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.

 
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.
 

the SendFTP function might help

HTH,

Jim

Reason: