智能交易网,程序化交易,自动交易,量化交易

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

参加MT4智能交易编程培训,7课免费在线试听MT4指标,EA代写,或EA指标加密账户远程验证服务 最完善商业MT4跟单系统(0.1秒极速响应不漏单)
为论坛做贡献有奖学金,奖学金可直接换真钱 扫本站微信公 众号部分视频课程指标EA免费得智能交易网MT4操盘神器,扫公众号免费得
查看: 841|回复: 0

第24课 独家下单,挂单,修改订单 获取订单法宝函数

  [复制链接]
发表于 2017-2-9 09:15:44 | 显示全部楼层 |阅读模式
课程安排及收费标准:
全套MT5指标EA开发课程预计要上40趟课,收费500元人民币。
直播课程:每周一 三 五 晚上19:30到20:30,预计要连续上3个多月的课。
录播课程:每次直播后都会有高清录像,第二天就会上传。供学员反复观看。

课程报名付款地址:https://ke.qq.com/course/182460#tuin=cd9e844
MT5的下单 修改止损止盈的方式比MT4复杂好几倍啊。
为了减轻大家的工作量。
我特地给大家封装了一个jiaoyi.mqh类
在这个类里。我给大家封装了非常多的 订单函数法宝。
利用这些法宝函数,以后你下单讲变得无比简单。
封装的函数大概有:
  int buy(string symbol,double lots,int slpoint,int tppoint,string com,int magic);
  int buyplus(string symbol,double lots,int slpoint,int tppoint,string com,int magic);
  int buygua(double guaprice,string symbol,double lots,int slpoint,int tppoint,string com,int magic);
  int buyguaplus(double guaprice,string symbol,double lots,int slpoint,int tppoint,string com,int magic);
  int buystoplimit(double stopprice,double limitprice,string symbol,double lots,int slpoint,int tppoint,string com,int magic);
  int buystoplimitplus(double stopprice,double limitprice,string symbol,double lots,int slpoint,int tppoint,string com,int magic);
  int sell(string symbol,double lots,int slpoint,int tppoint,string com,int magic);
  int sellplus(string symbol,double lots,int slpoint,int tppoint,string com,int magic);
  int sellgua(double guaprice,string symbol,double lots,int slpoint,int tppoint,string com,int magic);
  int sellguaplus(double guaprice,string symbol,double lots,int slpoint,int tppoint,string com,int magic);
  int sellstoplimit(double stopprice,double limitprice,string symbol,double lots,int slpoint,int tppoint,string com,int magic);
  int sellstoplimitplus(double stopprice,double limitprice,string symbol,double lots,int slpoint,int tppoint,string com,int magic);
  void closeallbuy(string symbol,int magic);
  void closeallsell(string symbol,int magic);
  void closeall(string symbol,int magic);
  void modifysltp(string symbol,ENUM_POSITION_TYPE type,double sl,double tp,int magic);
  void delorders(string symbol,int magic);
  void guamodify(string symbol,ENUM_ORDER_TYPE type,double guaprice,double limitprice,double sl,double tp,int magic);
  int danshu(string symbol,ENUM_POSITION_TYPE type,int magic);
  int danshuall(string symbol,int magic);
  double profit(string symbol,ENUM_POSITION_TYPE type,int magic);
  double profitall(string symbol,int magic);
  double formatlots(string symbol,double lots);
  double baifenbiLots(ENUM_ORDER_TYPE action,string symbol,int baifenbi);
  double profit0price(string symbol,ENUM_POSITION_TYPE type,int magic);
  int zuijindan(string symbol,ENUM_POSITION_TYPE type,double &openprice,datetime &opentime,double &openlots,double &opensl,double &opentp,int magic);





回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|sitemap|智能交易网,程序化交易,自动交易,量化交易 ( 苏ICP备08108698号

GMT+8, 2018-5-22 16:20 , Processed in 0.040563 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表