abb:=(time0-timetot0(dynainfo(207))<=4) or not(islastbar);
IF (TIME >= 185930 and time<=200000) or (TIME >= 045930 and time<=110000) THEN //收盘平仓 收盘前提前4秒 平掉该节持有的单子
BEGIN
SELL(abb=1 and HOLDING>0,holding,marketr);
SELLSHORT(abb=1 and HOLDING<0,holding,marketr);
END
请问是否正确,就是当节的单子 最后4秒平掉,先谢了! 针对rb 目前两节的交易
(TIME >= 185930 and time<=200000) or (TIME >= 045930 and time<=110000)
这两段代表哪段时间?
rb的两个休息前的几秒 我需要那个窗口去平当节持仓,不隔日 交易
白天9到15点 15点前4秒跑掉 晚上 1点半收盘前跑掉 晚上9点后入场的单子
白天9到15点 15点前4秒跑掉 晚上 1点半收盘前跑掉 晚上9点后入场的单子
IF (islastbar and abb and time=190000) or (not(islastbar) and time=190000) THEN //收盘平仓 收盘前提前4秒 平掉该节持有的单子
BEGIN
SELL(HOLDING>0,holding,marketr);
SELLSHORT( HOLDING<0,holding,marketr);
END
IF (islastbar and abb and time=063000) or (not(islastbar) and time=063000) THEN //收盘平仓 收盘前提前4秒 平掉该节持有的单子
BEGIN
SELL(HOLDING>0,holding,marketr);
SELLSHORT( HOLDING<0,holding,marketr);
END
IF (islastbar and abb and time=190000) or (not(islastbar) and time=190000) THEN //收盘平仓 收盘前提前4秒 平掉该节持有的单子
BEGIN
SELL(HOLDING>0,holding,marketr);
SELLSHORT( HOLDING<0,holding,marketr);
END
IF (islastbar and abb and time=063000) or (not(islastbar) and time=063000) THEN //收盘平仓 收盘前提前4秒 平掉该节持有的单子 0630相当于-4 半夜2点半 这个用于y 豆油系列
BEGIN
SELL(HOLDING>0,holding,marketr);
SELLSHORT( HOLDING<0,holding,marketr);
END
IF (islastbar and abb and time=190000) or (not(islastbar) and time=190000) THEN //收盘平仓 收盘前提前4秒 平掉该节持有的单子
BEGIN
SELL(HOLDING>0,holding,marketr);
SELLSHORT( HOLDING<0,holding,marketr);
END
IF (islastbar and abb and time=063000) or (not(islastbar) and time=050000) THEN //收盘平仓 收盘前提前4秒 平掉该节持有的单子 0500相当于-4 半夜1点 这个是rb的
BEGIN
SELL(HOLDING>0,holding,marketr);
SELLSHORT( HOLDING<0,holding,marketr);
END
谢谢! 这个应该是豆油的,rb螺纹我也搞错了应该是1点结束非一点半, 你写这个是两点半 IF (islastbar and abb and time=190000) or (not(islastbar) and time=190000) THEN //收盘平仓 收盘前提前4秒 平掉该节持有的单子 IF (islastbar and abb and time=063000) or (not(islastbar) and time=063000) THEN //收盘平仓 收盘前提前4秒 平掉该节持有的单子 0630相当于-4 半夜2点半 这个用于y 豆油系列 IF (islastbar and abb and time=190000) or (not(islastbar) and time=190000) THEN //收盘平仓 收盘前提前4秒 平掉该节持有的单子 IF (islastbar and abb and time=050000) or (not(islastbar) and time=050000) THEN //收盘平仓 收盘前提前4秒 平掉该节持有的单子 0500相当于-4 半夜1点 这个是rb的 上面的有个时间我没改,贴这里,以后备用当模板了 |
谢谢! 这个应该是豆油的,rb螺纹我也搞错了应该是1点结束非一点半, 你写这个是两点半
IF (islastbar and abb and time=190000) or (not(islastbar) and time=190000) THEN //收盘平仓 收盘前提前4秒 平掉该节持有的单子 IF (islastbar and abb and time=063000) or (not(islastbar) and time=063000) THEN //收盘平仓 收盘前提前4秒 平掉该节持有的单子 0630相当于-4 半夜2点半 这个用于y 豆油系列 IF (islastbar and abb and time=190000) or (not(islastbar) and time=190000) THEN //收盘平仓 收盘前提前4秒 平掉该节持有的单子 IF (islastbar and abb and time=050000) or (not(islastbar) and time=050000) THEN //收盘平仓 收盘前提前4秒 平掉该节持有的单子 0500相当于-4 半夜1点 这个是rb的 上面的有个时间我没改,贴这里,以后备用当模板了 |