Download MetaTrader 5

Need help with SENDFTP()

To add comments, please log in or register
Log in to MQL5.community using OpenID. It is convenient!
Zaney
35
Zaney 2015.08.04 13:52 

Hey guys

I have this snippet of code, I have already set up the pushnotification to my phone but i need help writing the part that allows the code to do the following:

  1. read the alert message 
  2. then store that same message in a text file 
  3. then send that file via FTP
This what i have;

if (alert) SendNotification("SELL signal on " + _Symbol);

if (alert) SendFTP("SELL signal on " + _Symbol);

if(!SendFTP("report.txt"))

Alain Verleyen
Moderator
30742
Alain Verleyen 2015.08.04 14:34  
seanster138:

Hey guys

I have this snippet of code, I have already set up the pushnotification to my phone but i need help writing the part that allows the code to do the following:

  1. read the alert message 
  2. then store that same message in a text file 
  3. then send that file via FTP
This what i have;

if (alert) SendNotification("SELL signal on " + _Symbol);

if (alert) SendFTP("SELL signal on " + _Symbol);

if(!SendFTP("report.txt"))

You can use FileOpen() to read/write a file.
To add comments, please log in or register