TCCI with Alert EA
这是基于自定义算法的类均线指标为基础编写的EA,根据波段按颜色标识上行和下行,可开启或关闭弹框提示当前应该挂买或卖单。
参数列表描述:
extern double lotSize=0.01; 下单手数
extern int magic=20201124; Magic标识,一般无需更改
extern int sL=150; 止损
extern int tP=300; 止盈
extern bool USE_Lock_in_profit=false; 开启移动止盈
extern double Unrealized_profit_attained = 50; 移动止盈触发盈利点1
extern double Lock_in_profit = 20; 移动止盈盈利点1
extern double Unrealized_profit_attained1 = 120; 移动止盈触发盈利点2
extern double Lock_in_profit1 = 100; 移动止盈盈利点2
extern Ordertype orderType=MarketOrder; //MarketOrder 市价订单 // LimitOrder限价订单 // StopOrder追加订单
extern int LimitOrderGap=40; // 限价订单或 追加订单距离点
extern int Price = 0; //指标初始计算均价
extern int Length = 20; //指标计算平均周期,相当于MA的平均周期。
extern int Displace = 0;
extern int Filter = 0; //过滤柱数
extern int Color = 1; //上行颜色
extern int ColorBarBack = 0; //下行颜色
extern double Deviation = 0.0; //偏离
extern int BarsToDraw=2000; //计算柱子数
extern bool AlertsOn=true; //开启或关闭弹框提示
extern int RemindFrequency=60; //弹框频率,默认一分钟弹框一次
当前默认参数是挂载EURUSD 1H 周期上,其它周期请自行优化参数。
Hello Wenfei, I bought the EA "TCCI with alert EA". when I set the indicator as follows: DAX 30 5min-- length = 40, Displace = -1, Filter = 3, Color = 4, Color Back = 4, Devi = 0, Bars = 1000 good signals for orders are generated. But the orders are not executed in the appropriate values and also not in the appropriate time! This means that the EA cannot be used!
extern int Price = 0; //指标初始计算均价
extern int Length = 20; //指标计算平均周期,相当于MA的平均周期。
extern int Displace = 0;
extern int Filter = 0; //过滤柱数
extern int Color = 1; //上行颜色
extern int ColorBarBack = 0; //下行颜色
extern double Deviation = 0.0; //偏离
extern int BarsToDraw=2000; //计算柱子数 \n
You'd better use the default parameters instead of changing them.