名字就是:红灯停,绿灯行. 条件叫到了六十天显绿色,破了十天显红色?
爱约股解答:
A:=MAX(MA(C,20),MA(C,60));
B:=MIN(MA(C,10),MA(C,60));
绿灯行: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;
STICKLINE(C<MA(C,20),2,1.8,2,0),COLORMAGENTA;