Need help with SENDFTP()

 

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"))

 
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.
Reason: