此资源为星钻会员专享,每日更新,收录于《大白EA宝库:星钻会员专属合集》。
这是一个在抛物线 SAR 信号首次翻转时开仓或平仓的 EA:SAR 点从价格下方转到上方或反之即触发。本帖文件为 MT4 源码,打包成 zip 下载,解压后在 MetaEditor 里编译使用,参数与文件开头见下方源码预览。
源码预览(先看代码,再决定下不下)
本帖是源码 EA:pSAR_bug.mq4,全文共 118 行。下面是它的全部可调参数与文件开头,完整源码在上方下载区,星钻会员可见。
可调参数(3 个)
int StopLoss =40;(SL for an opened order)int TakeProfit =70;(?? for an opened order)double Lots =0.1;(Strictly set amount of lots)
//+------------------------------------------------------------------+ //| pp2.mq4 | //| Copyright © 2010, | //| | //+------------------------------------------------------------------+ #property copyright " https://www.b123.com/" #property link "https://www.b123.com/" //+------------------------------------------------------------------+ //| expert initialization function | //+------------------------------------------------------------------+ //+------------------------------------------------------------------ extern int StopLoss =40; // SL for an opened order extern int TakeProfit =70; // ?? for an opened order extern double Lots =0.1; // Strictly set amount of lots /*****************************************************-----READ THIS-------****************************************************** *******************************************************************************************************************************/ //----------------------------------------------------------------------------------------------------------------------------- /*DONATE TO SUPPORT MY FREE PROJECTS AND TO RECEIVE NON OPEN PROJECTS AND ADVANCED VERSIONS OF EXISTING PROJECTS WHEN AVAILABLE: //------------------------------------------------------------------------------------------------------------------------------ __my moneybookers email is https://www.b123.com/ anyone can easily join moneybookers and pay people via their email through numerous payment methods__*/ //------------------------------------------------------------------------------------------------------------------------------ //SUPPORT AND INQUIRIES EMAIL: https://www.b123.com/ //------------------------------------------------------------------------------------------------------------------------------ /******************************************************************************************************************************* *************************************************--------END------*************************************************************/ /* Expert designed to open and close trades at first Parabolic SAR dots. Performance depends on your custom parameters Contact me at https://www.b123.com/ */ //+------------------------------------------------------------------+ //| expert start function | //+------------------------------------------------------------------+ int start()
风险提示:EA 交易有风险,过往与参数表现不代表未来。正式使用前先在模拟盘跑够样本,确认在自己的点差、滑点环境下仍符合预期,再决定是否上实盘。
版本说明:资源随 MT4/MT5 版本迭代可能失效,如遇失效请在本帖留言反馈。

