CC1:=(2*CLOSE+HIGH+LOW+OPEN)/5;CC2:=(2*INDEXC+INDEXH+INDEXL+INDEXO)/5;C1:=CC1/CC2;O1:=(C)/(INDEXC);O2:=(O)/(INDEXO);ZLDX:MA(C1,5)COLORRED,LINETHICK2;IF((ZLDX>REF(ZLDX,1))-1,ZLDX,DRAWNULL),COLORGREEN,LINETHICK2;STICKLINE(C1>=O1 AND C1>ZLDX,C1,ZLDX,2,0),COLORRED;STICKLINE(C1>=O2 AND C1>ZLDX,C1,ZLDX,2,1),COLORFF00FF;STICKLINE(C1编写条件: