14赞

3008评论

113收藏

【教与交易】不错的核心EA(含源码),谁懂易经荣誉出品!

 

评论|共 3008 个

167888

发表于 2020-1-10 03:43:13 | 显示全部楼层

我就是我666

发表于 2020-1-10 08:25:49 | 显示全部楼层

很靠谱的帖子,想试试

77588625

发表于 2020-1-10 10:41:44 | 显示全部楼层

5612121232332

TaolishenEA

发表于 2020-1-11 01:05:42 | 显示全部楼层

真的假的呀,真是EA源码?

TaolishenEA

发表于 2020-1-11 01:10:11 | 显示全部楼层

绝对害人的EA程序,什么易经

//+------------------------------------------------------------------+
//|                                                       开单机.mq4 |
//|                                            www.shuidongyijing.cn |
//+------------------------------------------------------------------+
#property copyright "谁懂易经 www.shuidongyijing.cn Q614771879"
#property link      "http://www.shuidongyijing.cn"
//---- 输入
extern int    min_gapsize = 1;
extern double lotsize_gap = 0.1;
//----
datetime order_time = 0;
//+------------------------------------------------------------------+
//| 基本                                                             |
//+------------------------------------------------------------------+
int init()
  {
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| 初始化                                                           |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| 开始功能                                                         |
//+------------------------------------------------------------------+
int start()
  {
/*
使之有效率的方式:
   1. 利用交易数量的;
   2. 抓住K线缺口.
波浪要注意事项:
   1. 点差;
   2. 执行时间要几秒内执行.
*/
// Defining the variables to decide.
   Print("order time", order_time);
   double current_openprice = iOpen(Symbol(), PERIOD_M15, 0);
   double previous_highprice = iHigh(Symbol(), PERIOD_M15, 1);
   double previous_lowprice = iLow(Symbol(), PERIOD_M15, 1);
   double point_gap = MarketInfo(Symbol(), MODE_POINT);
   int spread_gap = MarketInfo(Symbol(), MODE_SPREAD);
   datetime current_time = iTime(Symbol(), PERIOD_M15, 0);
// catching the gap on sell upper gap
   if(current_openprice > previous_highprice + (min_gapsize + spread_gap)*point_gap &&
      current_time != order_time)
     {
       int ticket = OrderSend(Symbol(), OP_SELL, lotsize_gap, Bid, 0, 0,
                              previous_highprice + spread_gap*point_gap,
                              "", 4, 0, Red);
       order_time = iTime(Symbol(), PERIOD_M15, 0);
       Print("I am inside (sell) :-)", order_time);
       //----
       if(ticket < 0)
         {
           Print("OrderSend failed with error #", GetLastError());
         }
     }
//抓住缺口
   if(current_openprice < previous_lowprice - (min_gapsize + spread_gap)*point_gap &&
      current_time != order_time)
     {
       ticket = OrderSend(Symbol(), OP_BUY, lotsize_gap, Ask, 0, 0,
                          previous_lowprice - spread_gap*point_gap,
                          "", 5, 0, Green);
       order_time = iTime(Symbol(), PERIOD_M15, 0);
       Print("I am inside (buy) :-)", order_time);
       if(ticket < 0)
         {
           Print("OrderSend failed with error #", GetLastError());
         }
     }
//----
   return(0);
  }
//+------------------------------------------------------------------+

thtryretdsa

发表于 2020-1-26 14:22:33 | 显示全部楼层

1111111111111111111111111111

sanso5

发表于 2020-1-28 16:08:48 | 显示全部楼层

不错,112345

colin.hong

发表于 2020-1-29 13:53:47 | 显示全部楼层

本帖隐藏内容请回复

V519989

发表于 2020-1-29 21:51:12 | 显示全部楼层

写得非常中肯,有110的跟单上去吗?

zzxxcc

发表于 2020-1-30 00:40:51 | 显示全部楼层

{:1_185:}

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

EA之家评论守则