MARE5.1:轻松使用的MetaTrader 5专家顾问

Mike 2017.03.02 20:50 50 0 0
附件

创意作者CollectorMQL5代码作者barabashkakvn

MARE5.1专家顾问使用非常简单。它基于两个移动平均线(SMA)的值,分别在0、2和5根K线的收盘价上进行计算。此EA专为M1时间框架设计,适合快速交易。

输入参数:

  • Lots — 进场仓位大小
  • TakeProfit — 止盈水平
  • StopLoss — 止损水平
  • MAFastPeriod — 第一个移动平均线的计算周期
  • MASlowPeriod — 第二个移动平均线的计算周期
  • MovingShift — 移动平均线的偏移量(两个移动平均线相同)
  • HourTimeOpen 和 HourTimeClose — 允许开仓的时间(小时)区间
OnInit()块中包含了安全时间验证:
   if((HourTimeOpen<0 || HourTimeClose<0) || (HourTimeOpen>23 || HourTimeClose>23))
     {
      return(INIT_PARAMETERS_INCORRECT);
     }
   if(HourTimeOpen==HourTimeClose)
     {
      return(INIT_PARAMETERS_INCORRECT);
     }
   if(HourTimeOpen>HourTimeClose)
     {
      return(INIT_PARAMETERS_INCORRECT);
     }

这意味着小时数不能小于“0”或大于“23”,并且时间段不能重叠。

MARE5.1 tester 

列表
评论 0