『壹』 求通達信廣通紅綠燈公式
{紅綠燈}
A:=MAX(MA(C,60),MA(C,120));
B:=MIN(MA(C,60),MA(C,120));
綠燈行:C>A,COLORGREEN;
紅燈停:C<B,COLORRED;
黃燈觀望:A>=C AND C>=B,COLORYELLOW ;
STICKLINE(C>A,0,2,8,0),COLORGREEN,LINETHICK2;
STICKLINE(C<B,0,2,8,0),COLORRED,LINETHICK2;
STICKLINE(A>=C AND C>=B,0,2,8,0),COLORYELLOW,LINETHICK2;