開倉---ma5大于布林中軌 -----這中間最高價都小于上軌-----當前ma5下穿ma10
是要按照這樣的順序嗎,包括當前也是 最高價小于上軌嗎
upper:=stkindi('','boll.upper',0,datatype);
mid:=stkindi('','boll.mid',0,datatype);
ma5:=ma(c,5);
ma10:=ma(c,10);
nn:=barslast(ma5>boll);
if holding>0 and enterbars>0 and nn<enterbars and all(h>upper,nn=1) and cross(ma10,ma5) then sell(1,0,market);