T:=TIME>=2120&&TIME<2254||TIME>=0920&&TIME<1454;
A1:IF(DAYBARPOS>N,EMA(O,N),EMA(O,DAYBARPOS));
A2:IF(DAYBARPOS>N,EMA(C,N),EMA(C,DAYBARPOS));
DRAWTEXT(CROSS(L>A1&&L>A2,0.5)&&COUNT(CROSS(L>A1&&L>A2,0.5),BARSLAST(CROSS(H<A1&&H<A2,0.5))+1)=1,L,'买'),COLORRED,FONTSIZE20,VALIGN0;
DRAWTEXT(CROSS(H<A1&&H<A2,0.5)&&COUNT(CROSS(H<A1&&H<A2,0.5),BARSLAST(CROSS(L>A1&&L>A2,0.5))+1)=1,H,'卖'),COLORGREEN,FONTSIZE20;
麻烦老师修改一下条件,连续3根K线满足条件,才显示卖或者买,并且开仓日内平仓
(来源:文华财经)