通达信指标公式【主力妖股突破】 的详细解析与公式源码,结合主力资金动向、量价突破信号及筹码集中度设计,适用于捕捉妖股主升浪启动点。
{主图源码如下}
DRAWKLINE(H,O,L,C);
AA := (3*C + H + L + O) / 6;
CTA1 := (8*AA + 7*REF(AA,1) + 6*REF(AA,2) + 5*REF(AA,3) + 4*REF(AA,4) + 3*REF(AA,5) + 2*REF(AA,6) + REF(AA,8)) / 36;
H1 := (REF(C,3) - C)/REF(C,3)*100 > 5;
H2 := FILTER(H1,10);
H3 := BARSLAST(H2);
H5 := REF(H,H3+2);
H6 := REF(H,H3+1);
H7 := REF(H,H3);
H8 := MAX(H5,H6);
H9 := MAX(H8,H7);
H10 := (C-REF(C,1))/REF(C,1)*100 > 5;
H11 := H3 < 150;
H12 := (O-H9)/H9 * 100 < 30;
H13 := (C-LLV(L,H3))/LLV(L,H3)*100 < 50;
H15 := (C-REF(O,5))/REF(O,5)*100 < 30;
H16 := V/MA(V,5) < 3.5;
H17 := (C-REF(C,89))/REF(C,89)*100 < 80;
H18 := H10 AND H11 AND H12 AND H13 AND H15 AND H16 AND H17;
暴利 := FILTER(H18,15);
MA54A := MA(C,54);
MA10A := MA(C,10);
P1 := ((C-MA54A)/MA54A) < 0.1;
P2 := ((C-MA10A)/MA10A) < 0.3;
P3 := (P1 AND P2)*0.2;
突破 := ((P3=0 AND REF(P3,1)=0.2) AND REF(COUNT(P3=0.2,10)=10,1)=1)*-0.1;
小妖 := 突破 = -0.1;
XDF := (暴利 OR 小妖);
CTAAA := DYNAINFO(7)/REF(C,1)>1.05 AND (DYNAINFO(7)/O>1.05);
FLIGA := (V/REF(V,1)>1.2 AND COUNT(C>O,1)) OR (L>REF(H,1) AND COUNT(O>C,1) AND V/REF(V,1)>1.2);
妖股信号 := XDF AND C/REF(C,1)>1.095 AND FLIGA AND CTAAA;
信号强度 := (V/MA(V,20))*(C/REF(C,1)-1)*100;
DRAWICON(妖股信号, L*0.98, 1);
DRAWICON(暴利, L*0.95, 2);
DRAWICON(小妖, L*0.92, 3);
价线:=(3*C+O+L+H)/6,COLORYELLOW,LINETHICK2;
强弱线:(20*价线+19*REF(价线,1)+18*REF(价线,2)+17*REF(价线,3)+16*REF(价线,4)+ 15*REF(价线,5)+14*REF(价线,6)+13*REF(价线,7)+12*REF(价线,8)+11*REF(价线,9)+ 10*REF(价线,10)+9*REF(价线,11)+8*REF(价线,12)+7*REF(价线,13)+6*REF(价线,14)+ 5*REF(价线,15)+4*REF(价线,16)+3*REF(价线,17)+2*REF(价线,18)+REF(价线,20))/210,COLORWHITE;
DRAWTEXT(妖股信号, L*0.97, '妖股'),COLORMAGENTA;
DRAWTEXT(暴利, L*0.94, '暴利'),COLORRED;
DRAWTEXT(小妖, L*0.91, '小妖'),COLORYELLOW;
STICKLINE(妖股信号, C, C*1.03, 0, 0), COLORMAGENTA;
STICKLINE(暴利, C, C*1.05, 0, 0), COLORRED;
STICKLINE(小妖, C, C*1.02, 0, 0), COLORYELLOW;
{副图源码如下}
AA := (3*CLOSE + HIGH + LOW + OPEN) / 6;
CTA1 := (8*AA + 7*REF(AA,1) + 6*REF(AA,2) + 5*REF(AA,3) + 4*REF(AA,4) + 3*REF(AA,5) + 2*REF(AA,6) + REF(AA,8)) / 36;
H1 := (REF(CLOSE,3) - CLOSE) / REF(CLOSE,3) * 100 > 5;
H2 := FILTER(H1,10);
H3 := BARSLAST(H2);
H5 := REF(HIGH,H3+2);
H6 := REF(HIGH,H3+1);
H7 := REF(HIGH,H3);
H8 := MAX(H5,H6);
H9 := MAX(H8,H7);
H10 := (CLOSE - REF(CLOSE,1)) / REF(CLOSE,1) * 100 > 5;
H11 := H3 < 150;
H12 := (OPEN - H9) / H9 * 100 < 30;
H13 := (CLOSE - LLV(LOW,H3)) / LLV(LOW,H3) * 100 < 50;
H15 := (CLOSE - REF(OPEN,5)) / REF(OPEN,5) * 100 < 30;
H16 := VOL / MA(VOL,5) < 3.5;
H17 := (CLOSE - REF(CLOSE,89)) / REF(CLOSE,89) * 100 < 80;
H18 := H10 AND H11 AND H12 AND H13 AND H15 AND H16 AND H17;
暴利 := FILTER(H18,15);
MA54A := MA(CLOSE,54);
MA10A := MA(CLOSE,10);
P1 := ((CLOSE - MA54A) / MA54A) < 0.1;
P2 := ((CLOSE - MA10A) / MA10A) < 0.3;
P3 := (P1 AND P2) * 0.2;
突破 := ((P3 = 0 AND REF(P3,1) = 0.2) AND REF(COUNT(P3 = 0.2,10) = 10,1) = 1) * -0.1;
小妖 := 突破 = -0.1;
XDF := (暴利 OR 小妖);
CTAAA := DYNAINFO(7) / REF(CLOSE,1) > 1.05 AND (DYNAINFO(7) / OPEN > 1.05);
FLIGA := (VOL / REF(VOL,1) > 1.2 AND COUNT(CLOSE > OPEN,1)) OR (LOW > REF(HIGH,1) AND COUNT(OPEN > CLOSE,1) AND VOL / REF(VOL,1) > 1.2);
妖股信号 := XDF AND CLOSE / REF(CLOSE,1) > 1.095 AND FLIGA AND CTAAA;
信号强度 := (VOL/MA(VOL,20)) * (CLOSE/REF(CLOSE,1)-1)*100;
STICKLINE(妖股信号, 0, 信号强度, 3, 0), COLORRED;
STICKLINE(暴利, 0, 信号强度*1.2, 3, 0), COLORMAGENTA;
STICKLINE(小妖, 0, 信号强度*0.8, 3, 0), COLORYELLOW;
DRAWTEXT(妖股信号, 信号强度*1.1, '妖股'), COLORWHITE;
DRAWTEXT(暴利, 信号强度*1.3, '暴利'), COLORCYAN;
DRAWTEXT(小妖, 信号强度*0.9, '小妖'), COLORYELLOW;
DRAWKLINE(0,0,0,0);