通达信股票公式之广通红绿灯个股和大盘
特别说明:广通红绿灯是广通学院使用的指标,非个人原创指标,见坛友们对这个指标感兴趣,所以把自己使用的广通红绿灯源码公布出来了;大盘红绿灯指标按照个股的原理写出来的,供大家买卖股票时做参考!
{个股}
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;www.southmoney.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)
延伸阅读
|
要闻导读
|
||||||||||
|