MetaTrader 5 / EA

e-News-Lucky - MetaTrader 5EA

Scriptor
1519
(13)

思路提供者: Scriptor

MQL5 代码开发者: Vladimir Karputov

处理 Buy Stop 和 Sell Stop 挂单。 挂单在指定时间 (分别为 Time of order placementTime of order removal) 被放置和删除,在参数中时间仅考虑小时和分钟。 只要任何挂单触发 (在 OnTradeTransaction 中监控触发时刻),剩余挂单就会被删除。


输入

  • Lots - 挂单的交易量;
  • Stop Loss (in pips) - 止损;
  • Take Profit (in pips) - 止盈;
  • Trailing Stop (in pips) - 尾随;
  • Trailing Step (in pips) - 尾随步幅;
  • Time of order placement (use only hh:mm !!!) - 时间,必须放置挂单的时刻;
  • Time of order removal (use only hh:mm !!!) - 时间,必须删除挂单的时刻 (同时持仓平仓);
  • Distance from market - 放置挂单与当前价格的距离;
  • magic number - EA 的独有标识符。

在 GBPUSD,H1 的测试示例

e-News-Lucky GBPUSD H1

由MetaQuotes Ltd译自俄语
原代码: https://www.mql5.com/ru/code/20637