buy(1 and holding=0,1,market);
sell(1 and holding>0,holding,market);
我用上面的语句,在K线图上可以出现买卖信号,但是用下面的就没有信号了。请问如何才能卖开和平空?
buyshort(1 and holding=0,1,market);
sellshort(1 and holding>0,holding,market);
sellshort(1 and holding<0,holding,market);
空仓仓位时候 holding是负数。