通達(dá)信股票公式之廣通紅綠燈個(gè)股和大盤(pán)
特別說(shuō)明:廣通紅綠燈是廣通學(xué)院使用的指標(biāo),非個(gè)人原創(chuàng)指標(biāo),見(jiàn)壇友們對(duì)這個(gè)指標(biāo)感興趣,所以把自己使用的廣通紅綠燈源碼公布出來(lái)了;大盤(pán)紅綠燈指標(biāo)按照個(gè)股的原理寫(xiě)出來(lái)的,供大家買賣股票時(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;
{大盤(pán)}
CC:="999999$CLOSE";
AA:=MAX(MA(CC,60),MA(CC,120));
BB:=MIN(MA(CC,60),MA(CC,120));
大盤(pán)綠:CC>AA,COLORGREEN,NODRAW;
大盤(pán)紅:CC<BB,COLORRED,NODRAW;yigouw8.com
大盤(pán)黃: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)日收盤(pán)價(jià)大于MA(C,60)與MA(C,120)中的最大量為綠燈,當(dāng)日收盤(pán)價(jià)小于MA(C,60)與MA(C,120)中的最小量為紅燈,當(dāng)日收盤(pán)價(jià)介于MA(C,60)與MA(C,120)之間為黃燈;
(南方財(cái)富網(wǎng)SOUTHMONEY.COM)