- 发布者:
- Vladimir Karputov
- 显示:
- 1558
- 等级:
- 已发布:
- 2017.03.23 08:46
- 已更新:
- 2018.02.28 10:23
-
需要基于此代码的EA交易或指标吗?请在自由职业者服务中订购 进入自由职业者服务
思路提供者 — Collector, MQL5 代码作者 — barabashkakvn。
MARE5.1 智能交易系统十分容易使用。它使用两条移动均线 (SMA) 位于 0 号, 2 号和 5 号柱线上的值。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);
}
{
return(INIT_PARAMETERS_INCORRECT);
}
if(HourTimeOpen==HourTimeClose)
{
return(INIT_PARAMETERS_INCORRECT);
}
if(HourTimeOpen>HourTimeClose)
{
return(INIT_PARAMETERS_INCORRECT);
}
它意味着以小时为单位的时间不能小于 "0" 或大于 "23", 也不允许重叠。
由MetaQuotes Ltd译自俄语
原代码: https://www.mql5.com/ru/code/17428

以下参数的最小值和最大值的直方图: SYMBOL_SESSION_BUY_ORDERS_VOLUME - "Total current volume of buy orders" 和 SYMBOL_SESSION_SELL_ORDERS_VOLUME - "Total current volume of sell orders"。

指标显示参数 "Total volume of open positions - SYMBOL_SESSION_INTEREST"。

最简单的智能交易系统, 基于 Fractal_WeightOscillator 加权振荡器。

指标 NRTR_Gator 在输入参数中有时间帧选项。