此资源为星钻会员专享,每日更新,收录于《大白EA宝库:星钻会员专属合集》。
这个 EA 是裸 K 价格行为 EA,绘制 4 条分形趋势线(2 条主线+2 条次线)做趋势反转交易,可调双均线过滤、追踪止损、保本与按权益止损,支持多周期、主要外汇对与股票。本帖文件为 MT4 源码,打包成 zip 下载,解压后在 MetaEditor 里编译使用,参数与文件开头见下方源码预览。
源码预览(先看代码,再决定下不下)
本帖是源码 EA:G2_Trend_Reversal.mq4,全文共 1892 行。下面是它的全部可调参数与文件开头,完整源码在上方下载区,星钻会员可见。
可调参数(32 个)
int Max_Trades_Per_Day = 1bool Use_TP_In_Money=falsedouble TP_In_Money=10bool Use_TP_In_percent=falsedouble TP_In_Percent=10string txt32 = "------------[Money Trailing Stop]---------------"bool Enable_Trailing = true;double Take_Profit_Money = 40.0;(Take Profit In Money (in current currency))double Stop_Loss_Money = 10;(Stop Loss In Money(in current currency))double index=1.1;(Loss Index)double IncreaseFactor=0.001;int CandlesToRetrace=10;(Num.Of Candles For Divergence)double Lots=0.01;(Lots size)double LotExponent = 1.44;(Lots size Exponent)double Stop_Loss=20;(Stop Loss)int MagicNumber=1234;double Take_Profit=50;(TakeProfit)int FastMA=6;int SlowMA=85;bool UseEquityStop = true;(Use Equity Stop)double TotalEquityRisk = 1.0;(Total Equity Risk)int Max_Trades=1int FractalNum=20;(Number Of High And Low)bool USETRAILINGSTOP=true;(IF USE TRAILING STOP)int WHENTOTRAIL=40;(WHEN TO TRAIL)int TRAILAMOUNT=40;(TRAIL AMOUNT)int PADAMOUNT=10;(PAD AMOUNT)bool USECANDELTRAIL=true;(USE CANDEL TRAIL)int X=3;(NUMBER OF CANDLES)bool USEMOVETOBREAKEVEN=true;(Enable "no loss")double WHENTOMOVETOBE=30;(When to move break even)double PIPSTOMOVESL=30;(How much pips to move sl)
//+------------------------------------------------------------------+ //| ProjectName | //| Copyright 2018, CompanyName | //| https://www.b123.com/ | //+------------------------------------------------------------------+ //+------------------------------------------------------------------+ //| Trend Reversal | //| https://www.b123.com/ | //+------------------------------------------------------------------+ #property copyright "AHARON TZADIK" #property link "https://www.b123.com/" #property version "1.00" #property strict input int Max_Trades_Per_Day = 1; datetime g_trade_day = 0; int g_trades_today = 0; extern bool Use_TP_In_Money=false; extern double TP_In_Money=10; extern bool Use_TP_In_percent=false; extern double TP_In_Percent=10; //-------------------------------------------------------------------- //-------------------------------------------------------------------- ///////////////////////////////////////////////////////////////////////////////// input string txt32 = "------------[Money Trailing Stop]---------------"; input bool Enable_Trailing = true; //Enable_Trailing input double Take_Profit_Money = 40.0; //Take Profit In Money (in current currency) input double Stop_Loss_Money = 10; //Stop Loss In Money(in current currency) extern double index=1.1;//Loss Index ///////////////////////////////////////////////////////////////////////////////// //--------------------------------------------------------------------------------- //--------------------------------------------------------------------
风险提示:这类 EA 风险等级高,行情不利时回撤会来得快、来得深。上实盘前先在模拟盘跑够样本,把单笔风险、止损和最大持仓按自己能承受的上限设死,不要用默认参数直接跑。
版本说明:资源随 MT4/MT5 版本迭代可能失效,如遇失效请在本帖留言反馈。

