SS:= REF(SETTLE,DAYBARPOS);
多条件:((CROSS(C,MAX(SETTLE,SS))||DAYBARPOS=1&&C>MAX(SETTLE,SS))&&PERIOD<=4)&&ISUP,WORD(1,'多'),COLORYELLOW;
空条件:((CROSSDOWN(C,MIN(SETTLE,SS))||DAYBARPOS=1&&C<MIN(SETTLE,SS))&&PERIOD<=4)&&ISDOWN,WORD(0,'空'),VALIGN0,COLORYELLOW;
(CROSSDOWN(C,MIN(SETTLE,SS))&&ISDOWN||DAYBARPOS=1&&C<MIN(SETTLE,SS)&&ISDOWN||CROSS(C,MAX(SETTLE,SS))&&ISUP||ISUP&&DAYBARPOS=1&&C>MAX(SETTLE,SS))&&PERIOD<=4,SOUND('A');
DRAWCOLORLINE(C<=MIN(SS,SETTLE), C,COLORGREEN,COLORRED),LINETHICK1;
DRAWLINE3(C>MIN(SS,SETTLE)&&C<MAX(SS,SETTLE),C,0,1,REF(C,1),1,0),COLORWHITE,LINETHICK1;
SETTLE,NODRAW;
DRAWLINE3(DAYBARPOS>1,REF(SETTLE,1),1,1,SETTLE,0,0),COLORYELLOW,LINETHICK1;//日均价线
DRAWHORIZONTALLINE(1,SS,COLORYELLOW),LINETHICK2;
AA:MOD(MINUTE,5)=0,NODRAW;
XX:=BARSLAST(AA)+1,NODRAW;
//DRAWICON(XX,H,1);
M10:=MOD(COUNT(XX=1,DAYBARPOS),2)=1&&XX=1,WORD(1,'M10');
H2:=MOD(COUNT(XX=1,DAYBARPOS),24)=1&&XX=1,WORD(1,'H2');
DD:=C>VALUEWHEN(M10&&REF(C<VALUEWHEN(M10,O),1),REF(HHV(H,BARSLAST(M10)+1),1))&&C>VALUEWHEN(H2&&REF(C<VALUEWHEN(H2,O),1),REF(VALUEWHEN(H2,O),1));
DDD:=多条件&&COUNT(多条件,BARSLASTCOUNT(DD))=1;
KK:=C<VALUEWHEN(M10&&REF(C<VALUEWHEN(M10,O),1),REF(LLV(L,BARSLAST(M10)+1),1))&&C<VALUEWHEN(H2&&REF(C<VALUEWHEN(H2,O),1),REF(C,1));
KKK:=空条件&&COUNT(空条件,BARSLASTCOUNT(KK))=1;
DDD&&COUNT(DDD,BARSLAST(KKK))=1,NOTICE;
KKK&&COUNT(KKK,BARSLAST(DDD))=1,NOTICE;
DDD&&COUNT(DDD,BARSLAST(KKK))=1,ICON(1,'ICO1');
KKK&&COUNT(KKK,BARSLAST(DDD))=1,ICON(1,'ICO2');