收盘前5秒平仓 和开盘后10分钟进场信号才有效 要怎么加到 KD:=多入 and 开盘后10分钟进场信号才有效; //开多条件
PD:=多出 and 收盘前5秒平仓; //平多条件
KK:=空入 and 开盘后10分钟进场信号才有效; //开空条件
PK:=空出 and 收盘前5秒平仓; //平空条件
这个里面。谢谢
当天收盘前5秒和当天开盘后10分钟。还有有夜盘的品种,写法是不是一样的
tq:=(timetot0(dynainfo(207))>=timetot0(closetime(0))-5) or not(islastbar);
KD:=多入 and todaybar>10; //开多条件
PD:=多出 and time=closetime(0) and tq; //平多条件
KK:=空入 and todaybar>10; //开空条件
PK:=空出 and time=closetime(0) and tq; //平空条件