日天A4 通达信主图指标 源码 贴图
AP1:=MA(C,1);BP1:=SMA(SMA(SMA(AP1,2,1),2,1),2,1);
CP1:=MA(BP1,3);
DRAWBAND(BP1,RGB(255,0,0),CP1,RGB(0,255,0));
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9));
K:=SMA(RSV,9,3);
D:=SMA(K,9,3);
J:=3*K-2*D;
{www.9m8.cn 九毛八公式指标网}
AA1:=(3*C+H+L+O)/6;
VAR1:=(8*AA1+7*REF(AA1,1)+6*REF(AA1,2)+5*REF(AA1,3)+4*REF(AA1,4)+3*REF(AA1,5)+2*REF(AA1,6)+REF(AA1,8))/36;
VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;
P2:EMA(CLOSE,50),COLORGREEN,LINETHICK1;
BDGD:=C=HHV(C,M);
GDSJ:=BARSLAST(FILTER(CROSS(0.08,BDGD),M1))+1;
GD:REF(H,GDSJ),COLOR00FF00,POINTDOT,LINETHICK1;
TPP:=CROSS(C,REF(GD,1)),COLOR0000FF,POINTDOT,LINETHICK0;
STICKLINE(GDSJ =6,GD,GD,8,0),COLOR0000FF;
BDDD:=C=LLV(C,N);
DDSJ:=BARSLAST(FILTER(CROSS(0.08,BDDD),N1))+1;
DD1:REF(L,DDSJ),COLORYELLOW,POINTDOT,LINETHICK1;
STICKLINE(DDSJ =6,DD1,DD1,8,0),COLORYELLOW;
DRAWICON(DDSJ,L,1);
LC:=REF(CLOSE,1);
WRSI:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;
XG10:=CROSS(20,WRSI);
XGT4:=BARSLAST(XG10);
AD4:=REF(L,REF(XGT4,1)+1);
XG11:=REF(XGT4,1) 20 AND XG10 ;
DRAWICON(XG11,L,38);
ZS:=REF(CLOSE,1); {www.9m8.cn 九毛八公式指标网}
QS:=SMA(MAX(CLOSE-ZS,0),8,1)/SMA(ABS(CLOSE-ZS),8,1)*100,COLOR0080FF,LINETHICK2;
XX:=20;
SS:=80;
ZZ:=50;
XG1:=CROSS(80,QS) ;
XG2:=CROSS(QS,15);
XG3:=CROSS(QS,19);
D1:=FILTER(XG1,10);
D2:=FILTER(XG2,10);
D3:=FILTER(XG3,10);
STICKLINE(D1 AND C O,C,O,3.6,0 ),COLOR00FFFF;
STICKLINE(D3 AND C O,C,O,3.6,0 ),COLORFF00FF;
DRAWICON(D2,L*0.999,25);
XGT2:=BARSLAST(XG1);
AD2:=REF(L,REF(XGT2,1)+1);
XG6:= REF(XGT2,1) 10 AND XG1 ;
XGT3:=BARSLAST(XG2);
AD3:=REF(L,REF(XGT3,1)+1);
XG8:= REF(XGT3,1) 20 AND XG2;
BB32: IF(BARSLAST(XG6) =30
AND (REF(H,BARSLAST(XG6)))=REF(REF(H,BARSLAST(XG6)),1)
,REF(H,BARSLAST(XG6)),DRAWNULL)DOTLINE,COLORMAGENTA;
DRAWICON(XG6,H*1.001,2);
DRAWICON(XG8,L,1);