一、指标源码
{镇妖神符主图}
TOP_0 := SUM(MAX(MAX(HIGH - LOW,ABS(HIGH - REF(C,1))),ABS(LOW - REF(C,1))),12);
TOP_1 := HIGH - REF(HIGH,1);
TOP_2 := REF(LOW,1) - LOW;
TOP_3 := SUM(IF((TOP_1 > 0) AND (TOP_1 > TOP_2),TOP_1,0),12);
TOP_4 := SUM(IF((TOP_2 > 0) AND (TOP_2 > TOP_1),TOP_2,0),12);
TOP_5 := (TOP_3 * 55) / TOP_0;
TOP_6 := ((100 * (1 - (WINNER(0.9 * C)))) / 4) * 0.819;
TOP_7 := ((C - MA(C,12)) / MA(C,12)) * 100;
TOP_8 := REF(C,1);
TOP_9 := ((((SMA(MAX(C - TOP_8,0),6,1)) / (SMA(ABS(C - TOP_8),6,1))) * 100) - 50) / 2;
TOP_10 := (30 * (C - LLV(LOW,3))) / (HHV(C,3) - LLV(LOW,3));
TOP_11 := (30 * (C - LLV(LOW,5))) / (HHV(C,5) - LLV(LOW,5));
TOP_12 := (30 * (C - LLV(LOW,8))) / (HHV(C,8) - LLV(LOW,8));
TOP_13 := (30 * (C - LLV(LOW,13))) / (HHV(C,13) - LLV(LOW,13));
TOP_14 := (30 * (C - LLV(LOW,21))) / (HHV(C,21) - LLV(LOW,21));
TOP_15 := (30 * (C - LLV(LOW,34))) / (HHV(C,34) - LLV(LOW,34));
TOP_16 := (((TOP_10 > 29.95) AND (TOP_11 > 29.95)) AND (TOP_12 >= TOP_6)) * 1;
TOP_17 := (((SMA(MAX(C - REF(C,1),0),13,1)) / (SMA(ABS(C - REF(C,1)),13,1))) * 100) / 5;
TOP_18 := ((((TOP_10 > 29.5) AND (TOP_11 > 29.5)) AND (TOP_12 >= 29.5)) AND (TOP_12 >= TOP_6)) * 2;
TOP_19 := (TOP_18 AND (TOP_17 >= TOP_6)) * 3;
TOP_20 := (TOP_18 AND (TOP_17 >= TOP_6)) * 4;
TOP_21 := ((((((((TOP_10 > TOP_6) AND (TOP_11 > TOP_6)) AND (TOP_12 >= TOP_6)) AND (TOP_12 >= TOP_6)) AND (TOP_13 >= TOP_6)) AND (TOP_14 >= TOP_6)) AND (TOP_15 >= TOP_6)) AND (TOP_17 >= TOP_6)) * 5;
TOP_22 := MAX(MAX(MAX(TOP_16,TOP_18),MAX(TOP_19,TOP_20)),TOP_21);
TOP_23 := 100 * ((C / REF(C,10)) - 1);
TOP_24 := (((-1 * (100 * (HHV(HIGH,85) - C))) / (HHV(HIGH,85) - LLV(LOW,85))) + 100) / 5;
TOP_25 := IF(TOP_24 > 21,21,IF(TOP_24 < 0,0,TOP_24));
TOP_26 := (((-1 * (100 * (HHV(HIGH,6) - C))) / (HHV(HIGH,6) - LLV(LOW,6))) + 100) / 5;
TOP_27 := IF(TOP_26 > 21,21,IF(TOP_26 < 0,0,TOP_26));
龙年好运:=(((((((TOP_5 > TOP_6) AND (TOP_7 > TOP_6)) AND (TOP_9 > TOP_6)) AND (TOP_17 > TOP_6)) AND (TOP_23 > TOP_6)) AND (TOP_25 > TOP_6)) AND (TOP_27 > TOP_6)) AND TOP_22;
STICKLINE(龙年好运 = 1,HIGH * 1,C * 1,0.1,0),COLORMAGENTA;
STICKLINE(龙年好运 = 1,OPEN * 1,LOW * 1,0.1,0),COLORMAGENTA;
STICKLINE(龙年好运 = 1,OPEN * 1,C * 1,3,0),COLORMAGENTA;
STICKLINE(龙年好运 = 0,HIGH * 1,C * 1,0.1,0),COLORRED;
STICKLINE(龙年好运 = 0,OPEN * 1,LOW * 1,0.1,0),COLORRED;
STICKLINE(龙年好运 = 0,OPEN * 1,C * 1,3,0),COLORRED;
C2:=REF(C,1);
涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(涨停,OPEN,C,3,0),COLORYELLOW;
A1:=MA(C,5);
A2:=MA(C,10);
A3:=MA(C,20);
A4:=MA(C,30);
A5:=MA(C,45);
中线趋势:MA(C,60) COLORLIBLUE LINETHICK2;
DT:=C>A1 AND A1>A2 AND A2>A3 AND A3>A4 AND A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Q17:=EMA(0.667*REF(ZBXQ16,1)+0.333*ZBXQ16,2);
WWWD:=ZBXQ16-ZBXQ17>1 AND ZBXQ16<30 AND ZBXQ17<30;
WWWL:=ZBXQ16-ZBXQ17<0 AND ZBXQ16>80 AND ZBXQ17>80 AND REF(ZBXQ16-ZBXQ17,1)>0;
WWWQ:=COUNT(ZBXQ16-ZBXQ17>0,2)=2;
KKAL:=(ZBXQ16-ZBXQ17)<0;
生命线:MA(CLOSE,20),COLORYELLOW;
操盘线:MA(CLOSE,10);
DRAWTEXT(FILTER(WWWD,30),L,'买入时机'),COLOR00FFFF;
DRAWTEXT(FILTER(WWWL,30),H,'卖出时机'),COLORFFFF00;
DRAWTEXT(FILTER(WWWQ,30),C,'持仓区'),COLOR00FF00;
DRAWTEXT(FILTER(KKAL,30),H,'空仓区'),COLORFF8080;
DRAWTEXT(FILTER(CLOSE/REF(CLOSE,1)>INDEXC/REF(INDEXC,1),30),L*0.95,'该股强于大盘'),COLORFF00FF;
DRAWTEXT(CROSS(MA(CLOSE,5),MA(CLOSE,10)),L*0.92,'出手'),COLORFF00FF;
DRAWTEXT(CROSS(MA(CLOSE,10),MA(CLOSE,5)),H*1.08,'收手'),COLORFF0000;
DRAWTEXT(FILTER(WWW>EMA(WWW,4) AND WWW>REF(WWW,1),30),L*0.98,'快速介入');
DRAWTEXT(FILTER(WWW<EMA(WWW,4) AND WWW<REF(WWW,1),30),H*1.02,'风险较大');
DRAWTEXT(FILTER(WWW>EMA(WWW,4) AND WWW<REF(WWW,1),30),H,'休息观望~'),COLORLIRED;
DRAWTEXT(FILTER(WWW<EMA(WWW,4) AND WWW>REF(WWW,1),30),L,'有防御能力'),COLORAA00AA;
{镇妖神符副图}
A1:=MA(C,5);
A2:=MA(C,10);
A3:=MA(C,20);
A4:=MA(C,30);
A5:=MA(C,45);
A6:=MA(C,60);
DT:=C>A1 AND A1>A2 AND A2>A3 AND A3>A4 AND A4>A5 AND A5>A6;
DIF:=EMA(C,12)-EMA(C,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
红柱:=MACD>=REF(MACD,1)AND MACD>=0 AND REF(MACD,1)<REF(MACD,2);
ZT:=C=ZTPRICE(REF(C,1),0.1);
KF:=O>REF(C,1) AND L>REF(C,1)*0.97 AND H<>L;
TYP:=(HIGH+LOW+C)/3;
CCI:=(TYP-MA(TYP,50))/(0.015*AVEDEV(TYP,50));
TOP1:=COUNT(ZT,3)>=1 AND KF AND ( CROSS(CCI,88) OR CROSS(CCI,188) OR CROSS(CCI,288)OR CROSS(CCI,388))AND L/EMA(C,3)<1.08 AND L/MA(C,18)<1.30;
TOP:=FILTER(TOP1,9);
STICKLINE(IF(TOP,-120,0),+0.5,0,1,0),COLOR000088;
STICKLINE(IF(TOP,-120,0),+0.8,0,1,0),COLOR0000AA;
STICKLINE(IF(TOP,-120,0),+0.8,0,1,0),COLOR0000CC;
STICKLINE(IF(TOP,-120,0),+0.8,0,1,0),COLOR0000EE;
STICKLINE(IF(TOP,-120,0),+0.8,0,1,0),COLOR0000EE;
STICKLINE(IF(TOP,-120,0),+0.8,0,1,0),COLORLIMAGENTA;
STICKLINE(IF(TOP,-120,0),+0.6,0,1,0),COLOR770077;
STICKLINE(IF(TOP,-120,0),+0.6,0,1,0),COLOR990099;
STICKLINE(IF(TOP,-120,0),+0.6,0,1,0),COLORBB00BB;
STICKLINE(IF(TOP,-120,0),+0.6,0,1,0),COLORDD00DD;
STICKLINE(IF(TOP,-120,0),+0.6,0,1,0),COLORFF00FF;
STICKLINE(IF(TOP,-120,0),+0.6,0,1,0),COLORDD00DD;
STICKLINE(IF(TOP,-120,0),+0.4,0,1,0),COLOR003300;
STICKLINE(IF(TOP,-120,0),+0.4,0,1,0),COLOR005500;
STICKLINE(IF(TOP,-120,0),+0.4,0,1,0),COLOR007700;
STICKLINE(IF(TOP,-120,0),+0.4,0,1,0),COLOR009900;
STICKLINE(IF(TOP,-120,0),+0.4,0,1,0),COLOR00CC00;
STICKLINE(IF(TOP,-120,0),+0.2,0,1,0),COLOR666666;
STICKLINE(IF(TOP,-120,0),+0.2,0,1,0),COLOR777777;
STICKLINE(TOP,0,0.1,2,0),COLOR008888;
STICKLINE(TOP,0,0.1,2,0),COLOR00AAAA;
STICKLINE(TOP,0,0.1,2,0),COLOR00CCCC;
STICKLINE(TOP,0,0.1,2,0),COLOR00FFFF;
DRAWTEXT(TOP,9,' ★ 镇'),COLORWHITE,LINETHICK2;
DRAWTEXT(TOP,7,' ★ 妖'),COLORWHITE,LINETHICK2;
DRAWTEXT(TOP,5,' ★ 神'),COLORWHITE,LINETHICK2;
DRAWTEXT(TOP,3,' ★ 符'),COLORWHITE,LINETHICK2;
STICKLINE(TOP, 0,10, 1,0),COLORRED;
STICKLINE(TOP, 5,8, 1,0),COLORWHITE;
STICKLINE(TOP, 2.5,5, 2,0),COLORBLUE;
DRAWICON(TOP,1,9);
DRAWICON(TOP,2,2);
DRAWICON(TOP,4,25);
DRAWICON(TOP,7,28);
DRAWICON(TOP,8,25);
DRAWICON(TOP,11,25);
{妖神符选股}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
ZT:=C=ZTPRICE(REF(C,1),0.1);KF:=O>REF(C,1) AND L>REF(C,1)*0.97 AND H<>L;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,50))/(0.015*AVEDEV(TYP,50));
TOP1:=COUNT(ZT,3)>=1 AND KF AND ( CROSS(CCI,88) OR CROSS(CCI,188) OR CROSS(CCI,288)OR CROSS(CCI,388))AND L/EMA(C,3)<1.08 AND L/MA(C,18)<1.30;
镇妖神符:FILTER(TOP1,9);
二、指标简介
本指标含1主图1副图1选股
1、通达信《2025 镇妖神符》是一款专为通达信软件设计的捉妖股指标。
2、本套指标包含主图,副图和选股3个指标,源码开放,永久使用!
3、2025镇妖神符选股+主图操盘信号,天下无敌,提供完美操盘解决方案!
4、该指标通过复杂的算法和多维度数据分析,旨在精准识别具有妖股潜力的股票。
5、主图指标信号丰富,当指标出现特定的捉妖信号时,可能预示着股票即将出现。
6、操盘线上穿红生命线开始关注,何时买卖,何时空仓,个股强度,一目了然,不含未来,短线操作稳准狠。
7、选股时间:盘中,盘后都可以,最好盘后选股,次日介入,有利润随时可以卖出。
8、本套指标对与新手小白特别友好,也是本指标一大亮点
9、 指标仅供参考学习使用,不能作为单一的投资依据, 市场变化莫测,指标信号仅供参考,据此实盘操作盈亏自负。
三、指标图示