大家好,今天想跟大家聊聊AutoTStop EA,它主要是为交易者提供智能跟踪止损功能,而不是直接开仓。
这个自动跟踪止损的功能会在价格达到你设定的止损值的一半时开始工作,非常实用哦!
为了让EA在每次订单关闭或盈利时发出提醒音效,你需要把
我一般在M5时间框架上使用AutoTStop_EA,配合模板AutoTS6-MMA-RVI60-CS.tpl(可以从
更新 01 (2014-12-05):
1. 增加了一些专家属性的选项。
2. 增加了CalcSTP()的功能。
3. 增加了系统跟踪止损功能。
更新 02 (2015-01-05):
1. 修复了一些代码中的拼写错误。
更新 03 (2015-03-27):
1. 更改了TP和SL的计算系统。
2. 简化了代码以提高EA的性能。
更新 04 (2015-06-16):
1. 修正了整体程序脚本中的错误。
2. 在跟踪止损中增加了BEP功能。
更新 05 (2015-07-03):
1. 专家属性没有变化,仍然按照更新4进行。
2. 在void StartAction()和void TpSlTrlS()函数中进行了小幅修改。
//--- 用户输入 // 更新_4 (16-06-2015) input string AutoTStop = "Copyright © 2014 3RJ ~ created by Roy Philips-Jacobs"; extern bool FridayTrade = True; // 如果为True,EA将在周五继续交易 extern bool UseTrailingStop = True; // 使用跟踪止损,True(是)或False(否) extern bool AutoTrailingStop = True; // 默认跟踪止损值 = 24.0 extern double TrailingStop = 24.0; // 如果自动跟踪止损为False,请输入跟踪止损值 extern double TrailingStopStep = 1.0; // 输入跟踪止损步长(默认为1.0) input string AutomaticSystemTP = "设置AutomaticTakeProfit=True或False"; extern bool OptimizationTakeProfit = True; // 由EA计算TP,自动TP由EA处理 extern bool NoMinimumTakeProfit = True; // True或False -> 如果设置为True,EA将100%不使用最低TP。 input string MinimumSystemTP = "如果设置NoMinimumTakeProfit=False"; // EA的TP在最低TP值上 extern double MinimumTP = 12; // EA在AutomaticTakeProfit=True功能下的最低TP,默认值为12 input string ManualSystemTP = "如果设置AutomaticTakeProfit=False"; // 由MT4终端设置的TP(与手动交易相同) extern double TakeProfit = 20; // 系统TP,可以由用户调整,默认20 input string AutomaticSystemSL = "设置AutomaticStopLoss=True或False"; extern bool AutomaticStopLoss = True; // SL将由EA计算 input string ManualSystemSL = "如果设置AutomaticStopLoss=False"; // SL值可以由用户调整 extern double StopLoss = 108; // 用户调整的SL,默认108 //---