特別說明:廣通紅綠燈是廣通學院使用的指標,非個人原創指標,見壇友們對這個指標感興趣,所以把自己使用的廣通紅綠燈源碼公布出來了;大盤紅綠燈指標按照個股的原理寫出來的,供大家買賣股票時做參考!
{個股}
A:=MAX(MA(C,60),MA(C,120));
B:=MIN(MA(C,60),MA(C,120));
個股綠:C>A,COLORGREEN,LINETHICK0;
個股紅:C<B,COLORRED,LINETHICK0;
個股黃:A>=C AND C>=B,COLORYELLOW,LINETHICK0;
STICKLINE(C>A,0,1,4,0),COLORGREEN,LINETHICK2;
STICKLINE(C<B,0,1,4,0),COLORRED,LINETHICK2;
STICKLINE(A>=C AND C>=B,0,1,4,0),COLORYELLOW,LINETHICK2;
{大盤}
CC:="999999$CLOSE";
AA:=MAX(MA(CC,60),MA(CC,120));
BB:=MIN(MA(CC,60),MA(CC,120));
大盤綠:CC>AA,COLORGREEN,NODRAW;
大盤紅:CC<BB,COLORRED,NODRAW;m.dnaopenstudio.com
大盤黃:AA>=CC AND CC>=BB,COLORYELLOW,NODRAW;
STICKLINE(CC>AA,-2,-1,4,0),COLORGREEN,LINETHICK2;
STICKLINE(CC<BB,-2,-1,4,0),COLORRED,LINETHICK2;
STICKLINE(AA>=CC AND CC>=BB,-2,-1,4,0),COLORYELLOW,LINETHICK2;
用法:
當日收盤價大于MA(C,60)與MA(C,120)中的最大量為綠燈,當日收盤價小于MA(C,60)與MA(C,120)中的最小量為紅燈,當日收盤價介于MA(C,60)與MA(C,120)之間為黃燈;
(南方財富網SOUTHMONEY.COM)