特別說明:廣通紅綠燈是廣通學(xué)院使用的指標(biāo),非個(gè)人原創(chuàng)指標(biāo),見壇友們對這個(gè)指標(biāo)感興趣,所以把自己使用的廣通紅綠燈源碼公布出來了;大盤紅綠燈指標(biāo)按照個(gè)股的原理寫出來的,供大家買賣股票時(shí)做參考!
{個(gè)股}
A:=MAX(MA(C,60),MA(C,120));
B:=MIN(MA(C,60),MA(C,120));
個(gè)股綠:C>A,COLORGREEN,LINETHICK0;
個(gè)股紅:C<B,COLORRED,LINETHICK0;
個(gè)股黃: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;emto2.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;
用法:
當(dāng)日收盤價(jià)大于MA(C,60)與MA(C,120)中的最大量為綠燈,當(dāng)日收盤價(jià)小于MA(C,60)與MA(C,120)中的最小量為紅燈,當(dāng)日收盤價(jià)介于MA(C,60)與MA(C,120)之間為黃燈;
(南方財(cái)富網(wǎng)SOUTHMONEY.COM)