发现又一个bug:就是if00的日K线的指标查看器12月31及之前的m1:145900,m2:145000。
m1:= t0totime(timetot0(closetime(0))-60); //收盘前60秒平仓
m2:= t0totime(timetot0(closetime(0))-10*60); //收盘前10*60秒
金字塔好多次升级后,都出现原先正常的却变了出错了!为什么?
过年后股指的交易时间改了,所以closetime也被改了,所以要坐下适当的修改:
m1:=if(date<=1151231,151400,t0totime(timetot0(closetime(0))-60)); //收盘前60秒平仓
m2:=if(date<=1151231,150500,t0totime(timetot0(closetime(0))-10*60)); //收盘前10*60秒
夜盘如果只做白天交易,那么要加上在有夜盘交易之后加上time>closetime(1)这个条件 ,