量紅綠燈 A:=MAX(MA(VOL,30),MA(VOL,60)); B:=MIN(MA(VOL,30),MA(VOL,60)); 綠燈行:VOL>A,COLORGREEN,LINETHICK0,PRECIS0; 紅燈停:VOL<B,COLORRED,LINETHICK0,PRECIS0; 黃燈等:A>=VOL AND VOL>=B,COLORYELLOW,LINETHICK0,PRECIS0 ; STICKLINE(VOL>A,0,1,10,0),COLORGREEN,LINETHICK2; STICKLINE(VOL<B,0,1,10,0),COLORRED,LINETHICK2; STICKLINE(A>=VOL AND VOL>=B,0,1,10,0),COLORYELLOW,LINETHICK2; 長短綠燈 A:=MAX(MA(C,5),MA(C,10)); B:=MIN(MA(C,5),MA(C,10)); 綠燈行F5:C>A,COLORGREEN; 紅燈停F5:=C<B; 黃燈觀望F5:=C>=B AND C<=A; STICKLINE(C>A,3.3,4,10,0),COLORGREEN,LINETHICK2; STICKLINE(C<B,3.3,4,10,0),COLORRED,LINETHICK2; STICKLINE(C>=B AND C<=A,3.3,4,10,0),COLORYELLOW,LINETHICK2; F20A:=MAX(MA(C,10),MA(C,20)); F20B:=MIN(MA(C,10),MA(C,20)); 綠燈行F20:C>F20A,COLORGREEN; 紅燈停F20:=C<F20B; 黃燈觀望F20:=C>=F20B AND C<=F20A; STICKLINE(C>F20A,2.3,3,10,0),COLORGREEN,LINETHICK2; STICKLINE(C<F20B,2.3,3,10,0),COLORRED,LINETHICK2; STICKLINE(C>=F20B AND C<=F20A,2.3,3,10,0),COLORYELLOW,LINETHICK2; F30A:=MAX(MA(C,20),MA(C,30)); F30B:=MIN(MA(C,20),MA(C,30)); 綠燈行F30:C>F30A,COLORGREEN; 紅燈停F30:=C<F30B; 黃燈觀望F30:=C>=F30B AND C<=F30A; STICKLINE(C>F30A,1.3,2,10,0),COLORGREEN,LINETHICK2; STICKLINE(C<F30B,1.3,2,10,0),COLORRED,LINETHICK2; STICKLINE(C>=F30B AND C<=F30A,1.3,2,10,0),COLORYELLOW,LINETHICK2; F60A:=MAX(MA(C,60),MA(C,120)); F60B:=MIN(MA(C,60),MA(C,120)); 綠燈行F60:C>F60A,COLORGREEN; 紅燈停F60:=C<F60B; 黃燈觀望F60:=C>=F60B AND C<=F60A; STICKLINE(C>F60A,0,1,10,0),COLORGREEN,LINETHICK2; STICKLINE(C<F60B,0,1,10,0),COLORRED,LINETHICK2; STICKLINE(C>=F60B AND C<=F60A,0,1,10,0),COLORYELLOW,LINETHICK2; 大盤A:=MAX(MA(INDEXC,60),MA(INDEXC,120)); 大盤B:=MIN(MA(INDEXC,60),MA(INDEXC,120)); 綠燈行大盤:INDEXC>大盤A,COLORGREEN; 紅燈停大盤:INDEXC<大盤B,COLORRED; 黃燈觀望大盤:INDEXC>=大盤B AND INDEXC<=大盤A,COLORYELLOW; STICKLINE(INDEXC>大盤A,4.3,5,10,0),COLORGREEN,LINETHICK2; STICKLINE(INDEXC<大盤B,4.3,5,10,0),COLORRED,LINETHICK2; STICKLINE(INDEXC>=大盤B AND INDEXC<=大盤A,4.3,5,10,0),COLORYELLOW,LINETHICK2; XG:( 綠燈行F5 AND 綠燈行F20AND 綠燈行F30 AND 綠燈行F60) =1; DRAWTEXTREL(10,3,'★綠燈行:大盤'),colorwhite,linethick1; DRAWTEXTREL(10,203,'★綠燈行:F5'),colorwhite,linethick1; DRAWTEXTREL(10,403,'★綠燈行:F20'),colorwhite,linethick1; DRAWTEXTREL(10,603,'★綠燈行:F30'),colorwhite,linethick1; DRAWTEXTREL(10,803,'★綠燈行:F60'),colorwhite,linethick1; |
|