-- 作者:jydnsh
-- 发布时间:2021/4/28 15:11:27
-- 白盘收盘前10秒平仓,图表出了信号,可是仓位不会平。
此主题相关图片如下:不会平.png
 abb:=timetot0(CLOSETIME(0))-time0,NODRAW;//当前K线时间距离收盘K线结束倒计时 abb3:=timetot0(CLOSETIME(0))-timetot0(dynainfo(207)),NODRAW;//当前时间距离收盘K时间 cd:(abb<=10 and abb>=0 and (not(ISLASTBAR))) or (ISLASTBAR and abb3>=0 and abb3<=10);
if cd then begin sell(holding>0,holding,market); sellshort(holding<0,holding,market); end
|