N:=1;
XOPEN:=(REF(O,N)+REF(C,N))/2;
XCLOSE:=CLOSE;
XHIGH:=MAX(HIGH,XOPEN);
XLOW:=MIN(LOW,XOPEN);
ALITY:=MA(XHIGH-XLOW,8);
凰线:MA(XCLOSE,5)+VOLALITY/2;
凤线:MA(XCLOSE,5)-VOLALITY/2;
凰线升:IF(凰线 REF(凰线,1),凰线,DRAWNULL),COLORRED,LINETHICK2;
凰线降:IF(凰线 REF(凰线,1),凰线,DRAWNULL),COLORGREEN,LINETHICK2;
凤线升:IF(凤线 REF(凤线,1),凤线,DRAWNULL),COLORMAGENTA,LINETHICK2;
凤线降:IF(凤线 REF(凤线,1),凤线,DRAWNULL),COLORGREEN,LINETHICK2;
BU:=CROSS(XCLOSE,凰线);
SEL:=CROSS(凤线,XCLOSE);
VAR1:=BARSLAST(BU);
VAR2:=BARSLAST(SEL);
买:DRAWICON(REF(VAR1,1) VAR2 AND VAR1=0,凤线*0.99,1);
卖:DRAWICON(REF(VAR2,1) VAR1 AND VAR2=0,凰线*1.01,2);
STICKLINE(XCLOSE XOPEN AND VAR1 VAR2,XCLOSE,XOPEN ,8,0 ),COLORRED;
STICKLINE(XCLOSE XOPEN AND VAR1 VAR2,XHIGH,XCLOSE ,0.5,0 ),COLORRED;
STICKLINE(XCLOSE XOPEN AND VAR1 VAR2,XOPEN,XLOW ,0.5,0 ),COLORRED;
STICKLINE(XCLOSE =XOPEN AND VAR1 VAR2,XCLOSE,XOPEN ,8,0 ),COLORYELLOW;
STICKLINE(XCLOSE =XOPEN AND VAR1 VAR2,XHIGH,XOPEN ,0.5,0 ),COLORYELLOW;
STICKLINE(XCLOSE =XOPEN AND VAR1 VAR2,XCLOSE,XLOW ,0.5,0 ),COLORYELLOW;
STICKLINE(XCLOSE =XOPEN AND VAR1 VAR2,XCLOSE ,XOPEN ,8,0 ),COLORGREEN;
STICKLINE(XCLOSE =XOPEN AND VAR1 VAR2,XOPEN ,XHIGH ,0.5,0 ),COLORGREEN;
STICKLINE(XCLOSE =XOPEN AND VAR1 VAR2,XCLOSE,XLOW ,0.5,0 ),COLORGREEN;
STICKLINE(XCLOSE XOPEN AND VAR1 VAR2,XCLOSE ,XOPEN ,8,0 ),COLORMAGENTA;
STICKLINE(XCLOSE XOPEN AND VAR1 VAR2,XCLOSE,XHIGH ,0.5,0 ),COLORMAGENTA;
STICKLINE(XCLOSE XOPEN AND VAR1 VAR2,XOPEN,XLOW ,0.5,0 ),COLORMAGENTA;