通达信XSTD指标,主图,通用源码
均价:=(2*C+(C+H+L+O)/4+O)/4;
R:=(3*L+2*均价)/5;R1:=(3*H+2*均价)/5;
kX:=(R+R1)/2;
HL:=SQRT(r1-r)+(r1=r);
JFC:=IF(CAPITAL>0,HL,SQRT(kx));
SF:=JFC;zl:=1/JFC;
HL:=SQRT(r1-r)+(r1=r);
JFC:=IF(CAPITAL>0,HL,SQRT(kx));
SF:=JFC;zl:=1/JFC;
M5:ema(MA(R*zl,3)/MA(zl,3),2);
a:=eMA(SUM(KX*V,3)/SUM(V,3),13);
CCC:=ABS(kx-eMA(a,13))/eMA(a,13);
aj:=DMA(kx,CCC);
b:=(EMA(COST(75),13)+A)/2;
CC:=ABS(a-MA(b,13))/MA(b,13);
xS:=DMA(A,CC),COLORMAGENTA;
sm:(1*AJ+2*xs)/3,COLORFFC0FF;
XSh:SM*(1+7/100),COLORYELLOW;
XSl:SM*(1-7/100),COLORYELLOW;
XST:SM*(1+14/100),COLORRED;
XSD:SM*(1-14/100),COLORRED;