MT4五 EA邮件通知ftp http
发布日期:2021-05-08 05:02:49 浏览次数:25 分类:原创文章

本文共 726 字,大约阅读时间需要 2 分钟。

一、发送邮件
1、设置邮箱信息
在这里插入图片描述
2、使用SendMail发送邮件
SendMail(const string subject,const string text);

二、发送通知
1、手机端安装MT4,并获取MetaQuates ID
在这里插入图片描述
2、使用SendNotification发送通知到手机端MT4
SendNotification(const string message);

三、上传文件
1、设置ftp服务器
在这里插入图片描述
2、将要上传的文件保存到file文件夹中
在这里插入图片描述
3、通过SendFTP上传文件
SendFTP(const string file_name,const string ftp_path=NULL);

四、访问网站
1、添加允许访问的站点
在这里插入图片描述
2、通过WebRequest请求网站
int WebRequest(
const string method, // HTTP method
const string url, // URL
const string cookie, // cookie
const string referer, // referer
int timeout, // timeout
const char &data[], // the array of the HTTP message body
int data_size, // data[] array size in bytes
char &result[], // an array containing server response data
string &result_headers // headers of server response
);

上一篇:网络编程一 tcp的一些信号处理
下一篇:MT4四 EA多单空单与平仓

发表评论

最新留言

很好
[***.229.124.182]2025年03月21日 17时42分27秒