MT4 EA源码:Breakthrough volatility 波动率突破几分钟快进快出|星钻会员尊享 - 资源合集论坛 - Meta Trade 4 - BBTrading

MT4 EA源码:Breakthrough volatility 波动率突破几分钟快进快出|星钻会员尊享

此资源为星钻会员专享,每日更新,收录于《大白EA宝库:星钻会员专属合集》。

这个 EA 是波动率突破剥头皮 EA,突破前一周期(周/日/4H 等)的波动幅度(非高低点)后进场,持仓常在几分钟内结束。本帖文件为 MT4 源码,在 MetaEditor 里编译使用,参数与文件开头见下方源码预览。

源码预览(先看代码,再决定下不下)

本帖是源码 EA:G2_Breakthrough_Volatility.mq4,全文共 845 行。下面是它的全部可调参数与文件开头,完整源码在上方下载区,星钻会员可见。

可调参数(13 个)

  • double _Lots = 0.01;
  • int _SL = 20;
  • int _TP = 10;
  • int _MagicNumber = 6789;
  • int _TrailingStop = 25;(Trailing Stop)
  • int _TrailingStep = 5;(Trailing Step)
  • string _Comment = "Breakthrough vol ";(Comments)
  • int _Slippage = 3;
  • bool _OnlyOneOpenedPos = true;(Only one pos per bar)
  • bool _AutoDigits = true;(Autodigits)
  • bool return_order = true;(Reverse position after SL)
  • int return_orders_max = 2;(Number of reverses)
  • double return_tp_add = 100;(TP increase by X points)
//+------------------------------------------------------------------+
//|                                      Breakthrough volatility.mq4 |
//|                                Copyright 2019, Baskakov Vladimir |
//|                        https://www.b123.com/ |
//+------------------------------------------------------------------+
#property copyright "Copyright 2019, Baskakov Vladimir"
#property link      "https://www.b123.com/"
#property version   "1.0"
#property strict

input double _Lots = 0.01;// Lot
input int _SL = 20;//SL
input int _TP = 10;//TP
input int _MagicNumber = 6789;//Magic
input int _TrailingStop = 25;//Trailing Stop
input int _TrailingStep = 5;//Trailing Step
input string _Comment = "Breakthrough vol ";//Comments
input int _Slippage = 3;//Slippage
input bool _OnlyOneOpenedPos = true;//Only one pos per bar
input bool _AutoDigits = true;// Autodigits
input bool return_order = true;//Reverse position after SL
input int  return_orders_max = 2;//Number of reverses
input double return_tp_add = 100;//TP increase by X points

int history_total_last = 0;

//>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

double OP_LOTS = 0.0;
// autodetect class for decimal places of current tool
class CKDig
{
   public:
      CKDig(const bool useAutoDigits)
      {

风险提示:EA 交易有风险,过往与参数表现不代表未来。正式使用前先在模拟盘跑够样本,确认在自己的点差、滑点环境下仍符合预期,再决定是否上实盘。

版本说明:资源随 MT4/MT5 版本迭代可能失效,如遇失效请在本帖留言反馈。

请登录后发表评论