MA5:MA(C,5);
MA10:MA(C,10);
JC:=CROSS(MA5,MA10);
SC:=CROSS(MA10,MA5);
X:=BARSLAST(TIME=90000||DAYBARPOS=1)+1;
Q:=REFX(TIME=900,1)||ISLASTBAR (TIME =210000||TIME 150000);//晚上秒
T1:=IF(JC,C,1000000);
T2:=IF(SC,C,0);
DRAWSL(Q EXIST(SC,X),HHV(T2,X),0,-DAYBARPOS,0,COLORYELLOW);
DRAWNUMBER(Q EXIST(SC,X),HHV(T2,X),HHV(T2,X),0,COLORYELLOW);
DRAWSL(Q EXIST(JC,X),LLV(T1,X),0,-DAYBARPOS,0,COLORMAGENTA);
DRAWNUMBER(Q EXIST(JC,X),LLV(T1,X),LLV(T1,X),0,COLORMAGENTA);
DRAWSL(CROSS(BACKSET(Q,BARSLAST(JC)+1),0.5),MA5,0,-DAYBARPOS,0,COLORRED);
DRAWSL(CROSS(BACKSET(Q,BARSLAST(SC)+1),0.5),MA5,0,-DAYBARPOS,0,COLORGREEN);
DRAWNUMBER(CROSS(BACKSET(Q,BARSLAST(JC)+1),0.5),MA5,MA5,0,COLORRED);
DRAWNUMBER(CROSS(BACKSET(Q,BARSLAST(SC)+1),0.5),MA5,MA5,0,COLORGREEN);