金矿:=MA(C,15)*0.78,COLOR00FFFF;

银矿:=MA(C,15)*0.84,COLORCCCCCC;

铁矿:=MA(C,15)*0.9,COLOR999966;

玉石矿:=MA(C,15)*1.1,COLORCCCC00;

翡翠矿:=MA(C,15)*1.16,COLOR00FF00;

钻石矿:=MA(C,15)*1.22,COLORFFFFFF;

翡翠:IF(H>翡翠矿 AND C>H*0.94 AND (C=HHV(C,10) OR H=HHV(H,10)) AND C<REF(C,1)*

1.0985,H*1.1,DRAWNULL),LINETHICK9,POINTDOT,COLOR00FF00;

通达信指标公式:SMA(MAX(CLOSE-C,0),7,1)/SMA(ABS(CLOSE-C),7,1)*100,NODRAW;

钻石:IF(H>钻石矿 AND C>H*0.94 AND (C=HHV(C,10) OR H=HHV(H,10)) AND C<REF(C,1)*

1.0985,H*1.1,DRAWNULL),LINETHICK7,CROSSDOT,COLORFFFFFF;

金币:IF(L<MA(C,15)*0.84 AND C<L*1.07 AND (C=LLV(C,10) OR L=LLV(L,10)) AND C>REF(C,1)*

0.9015,L*0.9,DRAWNULL),LINETHICK9,POINTDOT,COLORCCCC99;

银币:IF(L<MA(C,15)*0.78 AND C<L*1.07 AND (C=LLV(C,10) OR L=LLV(L,10)) AND C>REF(C,1)*

0.9015,L*0.9,DRAWNULL),LINETHICK9,POINTDOT,COLOR00CCFF;

DRAWTEXT_FIX(1,0.980,20,1,'缠论君'),COLOR666666;

{DRAWKLINE(H,O,L,C);}

AA:=(C*2+H+L+O)/5;

A0:=MA(C,5);

A1:=(EMA(AA,4)+MA(AA,8)+MA(AA,16))/3;

A2:=(EMA(AA,9)+MA(AA,18)+MA(AA,36))/3;

A3:=(EMA(AA,13)+MA(AA,26)+MA(AA,52))/3;

A4:=(EMA(AA,24)+MA(AA,48)+MA(AA,96))/3;

A5:=EMA(100*(C-LLV(L,100))/(HHV(H,100)-LLV(L,100)),5);

A6:=A5/4;

A7:=MAX(MAX(A1,A2),MAX(A3,A4));

A8:=MIN(MIN(A1,A2),MIN(A3,A4));

A9:=MIN(MIN(A1,A2),A3);

A10:=MAX(MAX(A1,A2),A3);

DRAWICON(CROSS(A2,A4) AND TIME<=0935 AND A3>REF(A3,1)AND A0>REF(A0,2)AND (A1-A4)/A4<0.02,A2,9);

DRAWICON(CROSS(A1,A4)AND TIME<=0935 AND CROSS(A2,A3),A1*0.98,1);

{}

GDRSLXZJFX:=IF(FINONE(242,0,0)<FINONE(242,0,1) AND FINONE(242,0,1)<FINONE(242,0,2) AND FINONE(242,0,2)<FINONE(242,0,3),'连续三季度减少',IF(FINVALUE(242)>FINONE(242,0,1) AND FINONE(242,0,1)>FINONE(242,0,2) AND FINONE(242,0,2)>FINONE(242,0,3),'连续三季度增加',''));

DRAWTEXT_FIX(ISLASTBAR AND ((FINVALUE(242)-FINONE(242,0,1))/FINONE(242,0,1))<=0,0.03,0.24,0,STRCAT('本期股东人数较上期减: ',STRCAT(CON2STR((FINVALUE(242)-FINONE(242,0,1))/FINONE(242,0,1)*100,2),STRCAT(' %',GDRSLXZJFX)))),COLORLIRED;

{DRAWTEXT_FIX(ISLASTBAR AND ((FINVALUE(242)-FINONE(242,0,1))/FINONE(242,0,1))> 0,0.03,0.24,0,STRCAT(': ',STRCAT(CON2STR((FINVALUE(242)-FINONE(242,0,1))/FINONE(242,0,1)*100,2),STRCAT(' %',GDRSLXZJFX)))),COLORLIRED;};