通达信公式名称: 涨停淘金A
VAR1:=MA(CLOSE,1);
VAR2:=SMA(SMA(SMA(VAR1,2,1),2,1),2,1);
VAR3:=MA(VAR2,3);
VAR4:=(3*CLOSE+LOW+OPEN+HIGH)/6;
VAR5:=(20*VAR4+19*REF(VAR4,1)+18*REF(VAR4,2)+17*REF(VAR4,3)+16*REF(VAR4,4)+15*REF(VAR4,5)+14*REF(VAR4,6)+13*REF(VAR4,7)+12*REF(VAR4,8)+11*REF(VAR4,9)+10*REF(VAR4,10)+9*REF(VAR4,11)+8*REF(VAR4,12)+7*REF(VAR4,13)+6*REF(VAR4,14)+5*REF(VAR4,15)+4*REF(VAR4,16)+3*REF(VAR4,17)+2*REF(VAR4,18)+REF(VAR4,20))/210;
VAR6:=MA(VAR5,5);
VAR7:=ATAN((MA(CLOSE,3)/REF(MA(CLOSE,3),1)-1)*100)*180/3.141159;
VAR8:=MA(VAR7,3);
VAR9:=PLOYLINE(CROSS(VAR7,VAR8),VAR8);
VAR10:=PLOYLINE(CROSS(VAR8,VAR7),VAR7);
涨停淘金:COUNT(CROSS(VAR7,VAR8),VAR9<REF(VAR9,3) AND VAR10>REF(VAR10,3)) AND COUNT(CLOSE>REF(CLOSE,1)*1.096,55)>0 AND (CROSS(CLOSE,VAR2) AND CROSS(CLOSE,VAR3) AND CROSS(CLOSE,VAR5) AND CROSS(CLOSE,VAR6) OR (CROSS(CLOSE,VAR2) AND CROSS(CLOSE,VAR3) AND VAR5>REF(VAR5,1) AND VAR3>VAR6) OR (CROSS(CLOSE,VAR5) AND CROSS(CLOSE,VAR6) AND VAR5>REF(VAR5,1))),COLORRED;
STICKLINE(涨停淘金,0,0.75,3,0),COLORRED;
DRAWTEXT(涨停淘金,涨停淘金*0.6,19),COLORWHITE;
DRAWTEXT(涨停淘金,涨停淘金*0.45,20),COLORWHITE;
DRAWTEXT(涨停淘金,涨停淘金*0.3,21),COLORWHITE;
DRAWTEXT(涨停淘金,涨停淘金*0.15,22),COLORWHITE;
DRAWTEXT_FIX(1,0.001,0.05,0,23),COLORRED;