通达信多空PK主图指标公式
通达信智策卖顶信号主图指标公式
今日保护价:(REF(C,1)+REF(C,2)+O)/3,NODRAW;
多:(SUM(((2*CLOSE+OPEN+HIGH+LOW)/5)*(vol),8))/(SUM(VOL,8)),COLOR00FFFF,LINETHICK0;
空:LLV(多,8),LINETHICK0,COLORFFFF00;
DRAWBAND(多,RGB(140,0,140),空,RGB(0,0,0));
DRAWKLINE(H,O,L,C);
DRAWICON(REF(多,1)=REF(空,1) AND 多>空,LOW*0.98,13);
DRAWTEXT(REF(多,1)=REF(空,1) AND 多>空,LOW*0.97,'*关注'),COLOR00FFFF;
C1:=C>=多;
C2:=C<多;
AA:=C1>=C2 ;
BB:=C2>C1 ;
stICKLINE(AA,C,O,3.2,0),COLORRED;
STICKLINE(AA,H,L,0,0),COLORRED;
STICKLINE(BB,C,O,3.2,0),COLORFFFF00;
STICKLINE(BB,H,L,0,0),COLORFFFF00;
{ Gupang.com 股-旁-网_通达信股票指标公式}
STICKLINE(AA,CLOSE,OPEN,3.2,0),COLOR000099;
STICKLINE(AA,CLOSE,OPEN,2.6,0),COLOR0000AA;
STICKLINE(AA,CLOSE,OPEN,2.2,0),COLOR0000CC;
STICKLINE(AA,CLOSE,OPEN,1.8,0),COLOR0000DD;
STICKLINE(AA,CLOSE,OPEN,1.3,0),COLOR0000FF;
STICKLINE(AA,CLOSE,OPEN,0.5,0),COLORCC66FF;
STICKLINE(BB,CLOSE,OPEN,3.2,0),COLOR777700;
STICKLINE(BB,CLOSE,OPEN,2.6,0),COLORAAAA00;
STICKLINE(BB,CLOSE,OPEN,2.2,0),COLORBBBB00;
STICKLINE(BB,CLOSE,OPEN,1.8,0),COLORDDDD00;
STICKLINE(BB,CLOSE,OPEN,1.3,0),COLOREEFF00;
STICKLINE(BB,CLOSE,OPEN,0.5,0),COLORCYAN;
SJ:=WMA((C-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,2);
ZJ:=WMA(0.667*REF(SJ,1)+0.333*SJ,2);
DRAWTEXT(crOSS(SJ,ZJ) AND SJ<30,L-0.05,'←买入'),COLOR00FF00;
DRAWTEXT(CROSS(ZJ,SJ) AND SJ>70,H+0.05,'←卖出'),COLORFFFF00;
RC:=DYNAINFO(3);
SA:=SMA(C,3,1);
SB:=SMA(C,5,1);
DK:=2*(SA-SB);
STICKLINE(DK>0 AND DK>=REF(DK,1),RC,RC+DK,0.1,0),COLOR0000BB;
STICKLINE(DK>0 AND DK<REF(DK,1),RC,RC+DK,0.1,0),COLOR00BBBB;
STICKLINE(DK<0 AND DK>=REF(DK,1),RC,RC+DK,0.1,0),COLORBB00BB;
STICKLINE(DK<0 AND DK<REF(DK,1),RC,RC+DK,0.1,0),COLORBBBB00;
通达信强势选股指标公式