股票软件通达信精品指标公式-第一4灯主图指标源码通达信公式
公式源码:
DRAWBAND(MA(CLOSE,60),RGB(200,80,80),MA(CLOSE,120),RGB(0,0,115));
MA5:MA(CLOSE,5),COLORFFFFFF;
MA10:MA(CLOSE,10),COLOR00FFFF;
MA20:MA(C,20),COLORFF00FF;
MA60:MA(CLOSE,60),COLORFF9988;
MA120:MA(CLOSE,120),COLOR0000FF;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
A:=MAX(MA(C,5),MA(C,10));
B:=MIN(MA(C,5),MA(C,10));
绿灯行:=C>A,COLORGREEN;
红灯停:=C<B,COLORRED;
黄灯观望:=C>=B AND C<=A,COLORYELLOW;
F30A:=MAX(MA(C,10),MA(C,20));
F30B:=MIN(MA(C,10),MA(C,20));
绿灯行F30:=C>F30A,COLORGREEN;
红灯停F30:=C<F30B,COLORRED;
黄灯观望F30:=C>=F30B AND C<=F30A,COLORYELLOW;
F60A:=MAX(MA(C,20),MA(C,28));
F60B:=MIN(MA(C,20),MA(C,28));
绿灯行F60:=C>F60A,COLORGREEN;
红灯停F60:=C<F60B,COLORRED;
黄灯观望F60:=C>=F60B AND C<=F60A,COLORYELLOW;
FRA:=MAX(MA(C,60),MA(C,120));
FRB:=MIN(MA(C,60),MA(C,120));
绿灯行FR:=C>FRA,COLORGREEN;
红灯停FR:=C<FRB,COLORRED;
黄灯观望FR:=C>=F30B AND C<=F30A,COLORYELLOW;
DPA:=MAX(MA(INDEXC,60),MA(INDEXC,120));
DPB:=MIN(MA(INDEXC,60),MA(INDEXC,120));
绿灯行DP:=INDEXC>DPA,COLORGREEN;
红灯停DP:=INDEXC<DPB,COLORRED;
黄灯观望DP:=INDEXC>=DPB AND INDEXC<=DPA,COLORYELLOW;
XG:=(CROSS(C,A) AND 绿灯行F30 AND 绿灯行F60 AND 绿灯行FR ) =1;
DRAWICON(XG,L*0.98,11);
特别提示:
选股预警指标编写 ,不同主流行情软件间指标转换。 请联系微信:396950280