【黑马形态主图】强势股公式|精准捕捉起涨点,均线+KDJ+价格通道多信号共振
#一、核心功能解析
“黑马形态主图指标” 通过多维度技术共振,精准识别强势股启动信号:
✅ 均线系统——趋势判断基石
- 5日/10日短期均线金叉,确认短线爆发力
- 20日/60日中期均线多头排列,过滤假突破
- 股价站稳均线之上,黑马形态初步确认
✅ 价格通道——波动区间定位
- 自动绘制动态支撑/压力线,突破上轨即启动信号
- 结合成交量放大,有效识别真突破
✅ KDJ指标——超买超卖辅助
- K线突破D线+J值低位回升,增强买点可靠性
- 规避KDJ高位钝化个股,降低回调风险
GHCZS1:=(SMA(HIGH,21,2) * 1.05);DRAWTEXT(FILTER(((((C< REF(C,1)) AND (C< REF(C,1))) AND (H>GHCZS1)) AND (C< GHCZS1)),5),(H+0.05),'-减仓'),COLORFFFFFF;下轨道:(SMA(LOW,21,2) * 0.969),POINTDOT,COLOR00FFFF;GHCZS2:=MA(CLOSE,118);GHCZS3:=(SMA(HIGH,21,2)*1.05);GHCZS4:=(((C-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))) * 100);K:=SMA(GHCZS4,3,1);D:=SMA(K,3,1);J:=((3*K)-(2*D));GHCZS5:=(((C-LLV(L,34))/(HHV(H,34)-LLV(L,34))) * 100);K12:=SMA(GHCZS5,3,1);D12:=SMA(K12,3,1);J12:=((3 * K12) - (2 * D12));GHCZS6:=(((C-LLV(L,55)) / (HHV(H,55) - LLV(L,55))) * 100);K24:=SMA(GHCZS6,3,1);D24:=SMA(K24,3,1);J24:=((3 * K24) - (2 * D24));支撑位:=IF(CROSS(J,J24),L,REF(L,BARSLAST(CROSS(J,J24))));压力位:IF(CROSS(J24,J),H,REF(H,BARSLAST(CROSS(J24,J)))),COLOR00FF00;CB:=((AMOUNT / VOL) / 100);CD:=((CB > HIGH) OR (CB < LOW));黑马趋势:=MA(CLOSE,3);MAP:=MA(CLOSE,8);AA5:=MA(CLOSE,21);AA10:MA(CLOSE,8),COLOR0000FF;AA12:MA(CLOSE,12),COLOR0000FF;BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);MA13:=MA(CLOSE,13);DRAWTEXT(FILTER(((((((CLOSE / OPEN) > 1.04) AND ((CLOSE - REF(CLOSE,1)) > 0)) AND (CLOSE > 下轨道)) AND ((AA10 - REF(AA10,1)) > 0)) AND (CLOSE < GHCZS1)),3),(LOW - 0.07),'追击'),COLORD1E768;GSCHWD:=((((OPEN + LOW) + HIGH) + CLOSE) / 4);支撑:=EMA(GSCHWD,5);短期底部:=LLV(OPEN,30);X1:=(((((3 * CLOSE) + HIGH) + LOW) + OPEN) / 6);X2:=EMA(X1,10);X3:=REF(X2,1);X4:=((REF(HIGH,1) + REF(LOW,1)) / 2);X5:=(MA(CLOSE,21) + (2 * STD(CLOSE,21)));X6:=REF(CLOSE,1);X7:=((SMA(MAX((CLOSE - X6),0),7,1) / SMA(ABS((CLOSE - X6)),7,1)) * 100);X8:=CROSS(79,X7);X9:=FILTER(X8,4);MAP1:=MA(CLOSE,60);均线30:=MA(CLOSE,30);均线89:=MA(CLOSE,89);均线:=MA(CLOSE,16);均线34:=MA(CLOSE,34);均线55:=MA(CLOSE,55);GSCHW1:=EMA(CLOSE,8);GSCHW2:=EMA(GSCHW1,20);GSCHW3:=CROSS(GSCHW1,GSCHW2);GSCHW4:=(GSCHW1 < MA(CLOSE,60));GSCHW5:=(((HHV(HIGH,36) - CLOSE) / (HHV(HIGH,36) - LLV(LOW,36))) * 100);GSCHW6:=SMA(GSCHW5,5,1);GSCHW7:=SMA(GSCHW6,8,1);GSCHW8:=(CROSS(GSCHW6,GSCHW7) AND (GSCHW7 < 16));GSCHW9:=((CLOSE > (LLV(CLOSE,60) + (0.3 * LLV(CLOSE,60)))) AND GSCHW8);GSCHWA:=IF((CLOSE > 1000),GSCHW8,GSCHW9);黑马起步:=(GSCHW3 AND GSCHW4);逃遁:=GSCHWA;均线20:=MA(CLOSE,20);均线120:=MA(CLOSE,120);牛熊线:=MA(CLOSE,250);VA:=CROSS(MA(CLOSE,19),MA(CLOSE,120));VB:=(MA(CLOSE,20) > MA(CLOSE,120));VC:=CROSS(MA(CLOSE,120),MA(CLOSE,89));VD:=(MA(CLOSE,20) < MA(CLOSE,120));VE:=CROSS(MA(CLOSE,20),MA(CLOSE,250));VF:=(MA(CLOSE,20) > MA(CLOSE,250));VG:=CROSS(MA(CLOSE,250),MA(CLOSE,20));DRAWTEXT((((((均线 - REF(均线,1)) > 0) AND CROSS(均线20,均线120)) AND (LOW <= 均线120)) AND (CLOSE >= 均线120)),LOW,'三线开花'),COLORFFFFFF;短期底部2:LLV(HIGH,30),LINETHICK2,COLOR0000FF;上轨:(SMA(HIGH,21,2) * 1.092),POINTDOT,COLORFFFFFF;中轨道:(SMA(HIGH,21,2) * 1.017),POINTDOT,COLORFFFFFF;DRAWTEXT(FILTER(((((LOW < 下轨道) AND (CLOSE > MA(CLOSE,15))) AND (CLOSE > 短期底部2)) AND (HIGH < 压力位)),10),LOW,'★短线5%'),COLOR9DC522;DRAWTEXT(((((((HIGH >= 均线120) AND (CLOSE < REF(CLOSE,1))) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > GHCZS1)) AND (CLOSE < GHCZS1)) AND (CLOSE < 均线120)),(HIGH + 0.05),'减仓'),COLOR00FF00;DRAWTEXT(FILTER(((HIGH > GHCZS3) AND (CLOSE < GHCZS3)),5),(HIGH + 0.15),'←逃命');DRAWTEXT(((VE > VG) AND (HIGH < GHCZS3)),(LOW - 0.65),'★黑马短线'),COLOR00FFFF;DRAWTEXT(FILTER(((((((((((OPEN < X2) AND (CLOSE > X2)) AND ((支撑 - REF(支撑,1)) > 0)) AND ((支撑 - REF(支撑,1)) > 0)) AND (CLOSE < GHCZS3)) AND ((均线 - REF(均线,1)) > 0)) AND (CLOSE >= 均线)) AND (HIGH < GHCZS3)) AND ((AA10 - REF(AA10,1)) > 0)) AND ((GHCZS3 - REF(GHCZS3,2)) > 0)),11),(LOW - 0.11),'★快马加鞭'),COLOR0000FF;DRAWTEXT(FILTER(((((((OPEN < X2) AND (WINNER(CLOSE) < 0.2)) AND (CLOSE > X2)) AND ((X2 - REF(X2,1)) > 0)) AND (HIGH < GHCZS3)) AND ((CLOSE - REF(CLOSE,1)) > 0.35)),4),(LOW - 0.05),'★黑马狂奔'),COLORD18073;DRAWTEXT((((((((CROSS(支撑,均线) AND (HIGH < 中轨道)) AND (WINNER(CLOSE) < 0.2)) AND (CLOSE < GHCZS3)) AND (CLOSE > OPEN)) AND (LOW <= X2)) AND (CLOSE >= X2)) AND CROSS(支撑,X2)),LOW,'★黑马起步'),COLOR00FFFF;DRAWTEXT(CROSS(X4,X5),HIGH,'●减仓'),COLOR00B4FF;DRAWTEXT(X9,(HIGH * 1.03),'出货'),COLOR9000F5;DRAWTEXT((((黑马起步 > 0) AND (LOW <= X2)) AND ((均线 - REF(均线,1)) > 0)),(LOW - 0.11),'★黑马起步'),COLOR00FF00;DRAWTEXT((逃遁 > 0),(HIGH * 1.14),'●逃命'),COLOR0000FF;RDV:=SMA(LOW,8,1);DRAWTEXT(((((CROSS(K,D) AND (CLOSE >= OPEN)) AND ((X2 - REF(X2,1)) > 0)) AND ((RDV - REF(RDV,1))>0)) AND (K<=33)),(L-0.08),'★黑马初现'),COLOR8500DE;DRAWTEXT(FILTER((((((((LOW <= 短期底部) AND (WINNER(CLOSE) < 0.2)) AND (CLOSE < 牛熊线)) AND (H< GHCZS3)) AND ((X2 - REF(X2,1)) > 0)) AND (CLOSE > OPEN)) AND (HIGH >= X3)),5),(LOW - 0.03),'←黑马筑底'),COLOR85B256;RCK:=(SMA(LOW,21,2) * 0.95);趋势线:=SMA(LOW,5,1);大胆买入:DRAWTEXT(((CROSS(趋势线,RCK) AND (LOW <= X2)) AND ((X2 - REF(X2,1)) > 0)),LOW,'←★大胆买入'),COLORE50000;B1:=(((HIGH + LOW) + CLOSE) / 3);B6:=HHV(B1,(4*15));B7:=LLV(B1,(4*15));B8:=(B6-B7);飞龙顶底线:=(MA(((B1-B7)/B8),2)* 80);DRAWTEXT(FILTER(((((((飞龙顶底线<=1) AND (WINNER(CLOSE)< 0.02)) AND (HIGH< 趋势线)) AND (CLOSE > OPEN)) AND (LOW <= 短期底部)) AND (CLOSE > 短期底部)),8),(LOW - 0.02),'←黑马寻底'),COLORE7DD1F;DRAWTEXT(FILTER((((((((LOW<=短期底部) AND (WINNER(CLOSE)< 0.015)) AND ((OPEN/CLOSE) > 0.99)) AND ((J - REF(J,1)) > 0)) AND (CLOSE > OPEN)) AND (HIGH < 支撑位)) AND (CLOSE > 短期底部)),25),(LOW - 0.09),'←开始建仓'),COLOR00FFFF;DRAWTEXT(FILTER((((((((LOW<=均线30) AND ((AA10-REF(AA10,1))>0)) AND ((均线-REF(均线20,1)) > 0)) AND ((趋势线 - REF(趋势线,1)) > 0)) AND (CLOSE >= 均线30)) AND (WINNER(CLOSE) < 0.15)) AND ((CLOSE / OPEN) > 1.01)),3),LOW,'★黑马奔月'),COLOR76B0FC;DRAWTEXT((((((OPEN<=均线) AND ((均线30-REF(均线30,1))>0)) AND (CLOSE>均线89)) AND (BB10 > 1)) AND ((CLOSE / OPEN) > 1.04)),LOW*0.99,'★黑马过桥'),COLORCC99FF;