最强打板主图指标公式
发布日期: 2025-08-29 | 阅读量:28

指标公式逻辑介绍
DRAWKLINE(H,O,L,C);
{ 回调线:5日均线 }
回调线: MA(CLOSE,5), COLOR88AABB, LINETHICK5;
{ 主趋势线:双重EMA }
主趋势线: EMA(EMA(C,10),10), COLORRED, LINETHICK3;
趋势向上 := 主趋势线 > REF(主趋势线,1);
IF(趋势向上-1, 主趋势线, DRAWNULL), COLORBLUE, LINETHICK3;
平衡线: MA(CLOSE,100), COLORLIGRAY, LINETHICK2;
EMA3 := EMA(C,3);
EMA8 := EMA(C,8);
EMA21 := EMA(C,21);
多头 := EMA3 > EMA21;
空头 := EMA3 < EMA21;
短强 := EMA3 > EMA8;
短弱 := EMA3 < EMA8;
阴线 := C < O;
{ K线着色 }
STICKLINE(多头, H, L, 0, 0), COLOR007FFF;
STICKLINE(多头, O, C, 3, 1), COLOR007FFF;
STICKLINE(多头 AND 阴线, O, C, 3, 0), COLOR007FFF;
STICKLINE(空头, H, L, 0, 0), COLORGREEN;
STICKLINE(空头, O, C, 3, 1), COLORGREEN;
STICKLINE(空头 AND 阴线, O, C, 3, 0), COLORGREEN;
STICKLINE(空头 AND 短强, H, L, 0, 1), COLORF00FF0;
STICKLINE(空头 AND 短强, O, C, 3, 1), COLORF00FF0;
STICKLINE(空头 AND 短强 AND 阴线, O, C, 3, 0), COLORF00FF0;
STICKLINE(多头 AND 短弱, H, L, 0, 0), COLORBLUE;
STICKLINE(多头 AND 短弱, O, C, 3, 1), COLORBLUE;
STICKLINE(多头 AND 短弱 AND 阴线, O, C, 3, 0), COLORBLUE;
{ 起爆点 }
最低10 := LLV(L,10);
起爆幅 := (C - REF(C,1))/REF(C,1)*100;
XG01 := CROSS(起爆幅,18);
L3 := IF(XG01, O, 最低10*0.999), LINETHICK5, COLORYELLOW;
STICKLINE(XG01, L3, L3, 20, 0), COLORGRAY, LINETHICK5;
DRAWTEXT(XG01, L*0.99, '☆启爆'), COLORRED;
{ 反转预警 }
AQ3 := V / REF(V,1);
LNX := AQ3 - REF(AQ3,1);
E3 := (V - REF(C,1)) / REF(C,1) * 100;
QMX := E3 - REF(E3,1);
反转预警 := CROSS(LNX,4) AND CROSS(QMX,4);
STICKLINE(反转预警, C, O, 3.5, -1), COLOR00AAFF;
STICKLINE(反转预警, C, O, 3.1, 0), COLOR999922;
STICKLINE(反转预警, C, O, 2.6, 0), COLORBBBB33;
STICKLINE(反转预警, C, O, 1.9, 0), COLORDDDD44;
STICKLINE(反转预警, C, O, 1.1, 0), COLORFFFF55;
STICKLINE(反转预警, C, O, 0.3, 0), COLOR44FFFF;
DRAWTEXT(反转预警, L*0.99, '反转预警'), COLORMAGENTA;
{ 启动点 }
止跌见底 := VOL*(O+C+H+L)/4;
启动点: EMA(止跌见底,21)/EMA(VOL,21), COLORWHITE;
首次站上 := BARSLASTCOUNT(C > 启动点) = 1;
STICKLINE(首次站上, C, O, 3.5, -1), COLOR00AAFF;
STICKLINE(首次站上, C, O, 2.9, 0), COLOR330044;
STICKLINE(首次站上, C, O, 1.8, 0), COLOR770077;
STICKLINE(首次站上, C, O, 0.9, 0), COLORBB00AA;
STICKLINE(首次站上, C, O, 0.1, 0), COLORFF00FF;
STICKLINE(首次站上, H, L, 0, 0), COLORLIMAGENTA;
DRAWTEXT(首次站上, L*0.98, '↑低买'), COLORYELLOW;
{ 涨停 }
涨停 := C/REF(C,1) > 1.095;
{ 压力线 }
VAR4 := EMA(CLOSE,9);
压力线 := EMA(VAR4*1.14,5);
强势线 := MA(CLOSE,25)*1.06;
支撑线 := (MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
飞狐线 := MA(CLOSE,25)*1.20;
盈损线 := LLV(REF(LOW,1),2) + (HHV(REF(HIGH,1),2)-LLV(REF(LOW,1),2))/2;
{ 小妖识别 }
QD := (C>强势线) AND (C>支撑线) AND (C>盈损线);
小妖 := COUNT(QD,10)=1 AND QD;
XY周期 := BARSLAST(小妖);
{ 妖股启动 }
JS := CROSS(C,压力线);
妖狐 := COUNT(JS,XY周期)<=1 AND JS;
狐仙前世 := 小妖 AND 妖狐;
HX1 := REF(妖狐,1) AND (O>压力线) AND (C>压力线);
HX2 := REF(妖狐,1) AND CROSS(C,飞狐线) AND (C>压力线);
狐仙金身 := HX1 OR HX2;
妖狐王 := REF(涨停,1) AND (O>压力线) AND (O>REF(H,1)) AND (REF(H,1)=压力线);
条件 := BARSLASTCOUNT((狐仙前世 OR 狐仙金身 OR 妖狐王) AND C>REF(C,1)*1.05)=1;
STICKLINE(条件, C, O, 3.2, 0), COLOR0088FF;
STICKLINE(条件, C, O, 2.5, 0), COLOR0099FF;
STICKLINE(条件, C, O, 1.9, 0), COLOR00BBFF;
STICKLINE(条件, C, O, 1.2, 0), COLOR00DDFF;
STICKLINE(条件, C, O, 0.3, 0), COLOR00EEFF;
STICKLINE(条件, C, O, 0.1, 0), COLORWHITE;
DRAWICON(条件, L, 9);
DRAWICON(条件, L*0.99, 11);
DRAWTEXT(条件, H*0.96, '金板预警'), COLORMAGENTA;
MA10_P := MA(C,5);
MA60_P := MA(C,60);
偏离率 := ((C-MA60_P)/MA60_P < 0.1) AND ((C-MA10_P)/MA10_P < 0.3);
平台期 := COUNT(偏离率,10) = 10;
平台突破 := REF(平台期,1) AND (平台期=0) AND REF(偏离率,1) AND NOT(偏离率);
妖股突破 := 平台突破;
ABC8 := (REF(C,3)-C)/REF(C,3)*100 > 5;
ABC9 := FILTER(ABC8,10);
ABC10 := BARSLAST(ABC9);
ABC11 := REF(H,ABC10+2);
ABC12 := REF(H,ABC10+1);
ABC13 := REF(H,ABC10);
ABC14 := MAX(ABC11,ABC12);
ABC15 := MAX(ABC14,ABC13);
ABC16 := (C-REF(C,1))/REF(C,1)*100 > 5;
ABC17 := ABC10 < 150;
ABC18 := (O-ABC15)/ABC15*100 < 30;
ABC19 := (C-LLV(L,ABC10))/LLV(L,ABC10)*100 < 50;
ABC20 := (C-REF(O,5))/REF(O,5)*100 < 30;
ABC21 := VOL/MA(VOL,5) < 3.5;
ABC22 := (C-REF(C,89))/REF(C,89)*100 < 80;
暴利信号 := ABC16 AND ABC17 AND ABC18 AND ABC19 AND ABC20 AND ABC21 AND ABC22;
暴利 := FILTER(暴利信号,15);
AAC := DMA(AMOUNT/VOL/100,VOL/V);
AACA := V/REF(C,1)>1.05 AND V/O>1.05;
KK := (VOL/REF(VOL,1)>1.2 AND COUNT(C>O,1)) OR (LOW>REF(H,1) AND COUNT(O>C,1) AND VOL/REF(VOL,1)>1.2);
打板启动 := (暴利 OR 妖股突破) AND 涨停 AND KK AND AACA;
STICKLINE(打板启动, C, (O+C)/2, 3.2, -1), COLOR00AAFF;
STICKLINE(打板启动, C, (O+C)/2, 3.1, 0), COLOR999999;
STICKLINE(打板启动, C, (O+C)/2, 2, 0), COLORBBAABB;
STICKLINE(打板启动, C, (O+C)/2, 0.2, 0), COLORFFBBFF;
DRAWICON(打板启动, L, 9){程序化指标 打板启动 };
DRAWTEXT(打板启动, L*0.95, '-打板启动'), COLORYELLOW;
{ 程序化指标共振信号 }
共振 := C/REF(C,1)>1.05 AND VOL/AMO*100<10 AND C<17 AND HIGH/C<1.01 AND IF(C AND MA(VOL,5)/240 AND C>REF(C,1)*1.0,88,0)>0;
STICKLINE(共振>90, L*0.99, L*0.98, 2, 0), COLOR11DDDD;
STICKLINE(共振>90, L*0.99, L*0.97, 1.5, 0), COLORYELLOW;
STICKLINE(共振>90, L*0.99, L*0.96, 1, 0), COLOR11DDDD;
STICKLINE(共振>90, L*0.99, L*0.95, 0.5, 0), COLORRED;
DRAWTEXT(共振>90, L*0.93, '庄股'), COLORYELLOW;
{ 均线多头 }
F0 := BARSLAST(CROSS(MA(C,5),MA(C,85)));
F1 := F0 AND BARSLAST(CROSS(MA(C,20),MA(C,90)));
AC := F1 AND CROSS(MA(C,5),MA(C,20)) AND MA(C,20)>MA(C,90);
STICKLINE(AC, H, L, 0, 0), COLOR0000FF;
STICKLINE(AC, O, C, 3, 0), COLOR000099;
STICKLINE(AC, O, C, 2, 0), COLOR0000BB;
STICKLINE(AC, O, C, 1, 0), COLOR0000DD;
STICKLINE(AC, O, C, 0.3, 0), COLOR0000FF;
DRAWICON(AC, L-0.10, 1);
DRAWTEXT(AC, L, '↑明天出'), COLORYELLOW;
{ 砸盘信号 }
BB01 := MA(H,5)*1.05;
砸盘 := CROSS(BB01,C);
STICKLINE(砸盘, C, O, 2.7, 0), COLOR333300;
STICKLINE(砸盘, C, O, 1.8, 0), COLOR555500;
STICKLINE(砸盘, C, O, 0.9, 0), COLOR777700;
STICKLINE(砸盘, C, O, 0.1, 0), COLOR999900;
STICKLINE(砸盘, H, L, 0, 0), COLOR999900;
DRAWTEXT(砸盘, H*1.01, '砸盘'), COLORWHITE;