BK :=CLOSE>B AND TIME<145500 AND TIME>090000;
SP :=TIME=145500 ;
BUY(tt0 and BK and holding=0,20%,market);
SELL(tt0 and SP and holding>0,holding,market); {145500分止损操作}
SELL(tt0 and holding>0,holding,Stopr,HHV(H,ENTERBARS)-NS); {从最高价回落NS,止损操作}
可是在图形上显示 ,开仓后就马上平仓,不知需要修改什么地方
BUY(tt0 and BK and holding=0,20%,market);
SELL(tt0 and SP and holding>0,holding,market); {145500分止损操作}
SELL(tt0 and holding>0,holding,Stopr,HHV(H,ENTERBARS)-NS); {从最高价回落NS,止损操作}
谢谢您的回答,可是如果我取消 Stopr,HHV(H,ENTERBARS)-NS 程序是可以正确执行的,应该还是这句话出错了
请贴出完整的公式代码,我们帮你看看