交易危机

 找回密码
 快捷注册(禁q号)

QQ登录

只需一步,快速开始

搜索
广告位
查看: 8062|回复: 9

[其他] 点一下出现无数个挂单脚本

[复制链接]

29

主题

1223

积分

1

精华

初级操盘手

金钱
1223 美元
权重
14
发表于 2014-3-10 17:03 | 显示全部楼层 |阅读模式
指标可自行修改成交价位、单子数量、相隔距离及赢损设置,谨慎重仓之首选
粗糙式代码:

  1. //-------------------------------sell limit.mq4
  2. extern double JG=0;
  3. extern double ZY=500;
  4. extern double ZS=200;
  5. int start()
  6. {  
  7.    double DJ=JG-1;
  8.    double lot=0.1;
  9.    double dpoint=Point*MathPow(10,Digits%2);
  10.    double OpenPos=Ask;
  11.    double OpenPos1=Ask+(DJ-3)*dpoint;
  12.    double OpenPos2=Ask+(DJ-6)*dpoint;
  13.    double OpenPos3=Ask+(DJ-9)*dpoint;
  14.    double OpenPos4=Ask+(DJ-12)*dpoint;
  15.    double OpenPos5=Ask+(DJ-15)*dpoint;
  16.    double OpenPos6=Ask+(DJ-18)*dpoint;
  17.    double OpenPos7=Ask+(DJ-21)*dpoint;
  18.    double OpenPos8=Ask+(DJ-24)*dpoint;   
  19.    double OpenPos9=Ask+(DJ-27)*dpoint;
  20.    double OpenPos10=Ask+(DJ-30)*dpoint;
  21.    double OpenPos11=Ask+(DJ-33)*dpoint;
  22.    double OpenPos12=Ask+(DJ-36)*dpoint;
  23.    double OpenPos13=Ask+(DJ-39)*dpoint;
  24.    double OpenPos14=Ask+(DJ-42)*dpoint;
  25.    double OpenPos15=Ask+(DJ-45)*dpoint;
  26.    double OpenTP=Ask-ZY*dpoint;
  27.    double OpenSL=Ask+ZS*dpoint;
  28.    
  29.    int ticket=OrderSend(Symbol(),5,lot,OpenPos,3,OpenSL,OpenTP,"Sell",1234,0,Lime);
  30.    int ticket1=OrderSend(Symbol(),5,lot,OpenPos1,3,OpenSL,OpenTP,"Sell",1234,0,Lime);
  31.    int ticket2=OrderSend(Symbol(),5,lot,OpenPos2,3,OpenSL,OpenTP,"Sell",1234,0,Lime);
  32.    int ticket3=OrderSend(Symbol(),5,lot,OpenPos3,3,OpenSL,OpenTP,"Sell",1234,0,Lime);
  33.    int ticket4=OrderSend(Symbol(),5,lot,OpenPos4,3,OpenSL,OpenTP,"Sell",1234,0,Lime);
  34.    int ticket5=OrderSend(Symbol(),5,lot,OpenPos5,3,OpenSL,OpenTP,"Sell",1234,0,Lime);
  35.    int ticket6=OrderSend(Symbol(),5,lot,OpenPos6,3,OpenSL,OpenTP,"Sell",1234,0,Lime);
  36.    int ticket7=OrderSend(Symbol(),5,lot,OpenPos7,3,OpenSL,OpenTP,"Sell",1234,0,Lime);
  37.    int ticket8=OrderSend(Symbol(),5,lot,OpenPos8,3,OpenSL,OpenTP,"Sell",1234,0,Lime);
  38.    int ticket9=OrderSend(Symbol(),5,lot,OpenPos9,3,OpenSL,OpenTP,"Sell",1234,0,Lime);
  39.    int ticket10=OrderSend(Symbol(),5,lot,OpenPos10,3,OpenSL,OpenTP,"Sell",1234,0,Lime);
  40.    int ticket11=OrderSend(Symbol(),5,lot,OpenPos11,3,OpenSL,OpenTP,"Sell",1234,0,Lime);
  41.    int ticket12=OrderSend(Symbol(),5,lot,OpenPos12,3,OpenSL,OpenTP,"Sell",1234,0,Lime);
  42.    int ticket13=OrderSend(Symbol(),5,lot,OpenPos13,3,OpenSL,OpenTP,"Sell",1234,0,Lime);
  43.    int ticket14=OrderSend(Symbol(),5,lot,OpenPos14,3,OpenSL,OpenTP,"Sell",1234,0,Lime);
  44.    int ticket15=OrderSend(Symbol(),5,lot,OpenPos15,3,OpenSL,OpenTP,"Sell",1234,0,Lime);

  45.    if(ticket<0)
  46.    {
  47.         Print("OrderSend 失败错误 #",GetLastError());
  48.         return(0);
  49.    }
  50.    return(0);
  51. }
复制代码


点一下出现15个挂单.zip

658 Bytes, 下载次数: 43, 下载积分: 金钱 -8

9

主题

212

积分

0

精华

见习操盘手

金钱
212 美元
权重
6
发表于 2014-3-24 06:08 | 显示全部楼层
本帖最后由 wccmcd 于 2015-12-4 12:03 编辑

好东西          好东西

0

主题

327

积分

0

精华

见习操盘手

金钱
327 美元
权重
0
发表于 2015-5-9 20:36 | 显示全部楼层
本帖最后由 wccmcd 于 2015-12-4 12:03 编辑

谢谢分享谢谢分享

3

主题

49

积分

0

精华

外汇入门

金钱
49 美元
权重
0
发表于 2019-11-7 22:23 | 显示全部楼层
谢谢 试一下看看行不行

0

主题

60

积分

0

精华

外汇入门

金钱
60 美元
权重
0
发表于 2021-9-22 08:38 | 显示全部楼层
谢谢分享

0

主题

274

积分

0

精华

见习操盘手

金钱
274 美元
权重
0
发表于 2021-10-2 04:42 | 显示全部楼层
谢谢分享

0

主题

33

积分

0

精华

外汇入门

金钱
33 美元
权重
0
发表于 2024-11-14 21:32 | 显示全部楼层

谢谢分享
您需要登录后才可以回帖 登录 | 快捷注册(禁q号)

本版积分规则

QQ|黄金吧|黄金论坛|手机版|指标下载|非农|目录|交易危机

版权所有: ©2014-2021 fx3q.com Powered by Discuz! X3
皖ICP备: 2024050410号-2

风险提示:杠杆风险高,交易要谨慎 声明:坛友发言和回复均为个人观点,不代表论坛立场。
若有侵权请联系fx3q@qq.com删除

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