buycond:=c>ma(c,5);
sellcond:=c<ma(c,5);
if holding>0 and sellcond then sell(1,1,market);
if holding<0 and buycond then sell(1,1,market);
if holding=0 and buycond then buy(1,1,market);
if holding=0 and sellcond then buyshort(1,1,market);
如题,上面的模型在K线走完模式下运行。
问题是:
if holding>0 and l<enterprice-10 then sell(1,1,stop,enterprice-10);
该停损语句在K线走完模式下运行,是当K线走完后才发出停损信号还是盘中价格跌破指令价格时就直接发发出止损信号?
明白了,谢谢~