擒妖,和谐通达信公式源码分享 副图
{擒妖参数1: 流通盘小于亿, 最小: 1, 最大: 5000, 缺省: 20参数2: 震荡过滤, 最小: 0, 最大: 1, 缺省: 0}VAR1:=20;VAR2:=0;VAR3:=(EMA(CLOSE,12)/EMA(CLOSE,26)-1)*1000;VAR4:=EMA(VAR3,5);VAR5:=(EMA(INDEXC,12)/EMA(INDEXC,26)-1)*1000;VAR6:=EMA(VAR5,5);VAR7:=VAR4-REF(VAR4,1);VAR8:=VAR6-REF(VAR6,1);VAR9:=IF(VAR7-VAR8>0,(VAR7-VAR8)*5,0);VAR10:=VAR9-REF(VAR9,1);VAR11:=SMA((CLOSE-REF(CLOSE,1))*VOL,3,1)/10000;VAR12:=1;VAR13:=EMA(VAR11,12)-EMA(VAR11,26);VAR14:=EMA(VAR13,9);VAR15:=(VAR13-VAR14)*2;VAR16:=HHVBARS(VAR15,BARSLAST(VAR15<0)+1);VAR17:=CROSS(BACKSET(CROSS(0,VAR15),REF(VAR16,1)+2),0.5);VAR18:=DRAWLINE(VAR17,VAR15,REF(VAR17,1),REF(VAR15,1),1);VAR19:=VAR15>VAR18 AND VAR15>=REF(VAR15,1);VAR20:=CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND LOW=HIGH;VAR21:=BARSSINCE(CLOSE)<1 OR BARSSINCE(CLOSE)<34 AND CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND LOW=HIGH;VAR22:=CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND LOW<HIGH;VAR23:=HIGH>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE<HIGH;VAR24:=1+3*VAR22+1*VAR20+0.2*VAR23;VAR25:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;VAR26:=VAR25*VAR24;VAR27:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));VAR28:=IF(CLOSE>OPEN,VAR27*(HIGH-LOW),IF(CLOSE<OPEN,VAR27*(HIGH-OPEN+(CLOSE-LOW)),IF(CLOSE=OPEN AND CLOSE>REF(CLOSE,1),VOL*0.7,VOL*0.3)));VAR29:=IF(CLOSE>OPEN,VAR27*(HIGH-CLOSE+(OPEN-LOW)),IF(CLOSE<OPEN,VAR27*(HIGH-LOW),IF(CLOSE=OPEN AND CLOSE<REF(CLOSE,1),VOL*0.7,VOL*0.3)));VAR30:=IF(VAR12!=1,0,SUM((VAR28-VAR29)/CAPITAL,1)*1000);VAR31:=VOL/10000;VAR32:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));VAR33:=MOD(FROMOPEN,VAR32);VAR34:=IF(VAR33<0.5,VAR32,VAR33);VAR35:=IF(CURRBARSCOUNT=1 AND PERIOD<=5 AND DYNAINFO(8)>1,VOL*VAR32/VAR34/10000,DRAWNULL);VAR36:=IF(CURRBARSCOUNT=1 AND PERIOD<=5,VAR35,VAR31);VAR37:=VAR36/REF(MA(VAR36,5),1);VAR38:=IF(CLOSE>=REF(CLOSE,1) AND VAR37>3,33,IF(CLOSE<REF(CLOSE,1) AND VAR37>3,0,IF(CLOSE>=REF(CLOSE,1) AND VAR37<=3,VAR37*10,VAR37)));VAR39:=IF(CLOSE>0,EMA(MAX(CLOSE-REF(CLOSE,1),0),83)/EMA(ABS(CLOSE-REF(CLOSE,1)),83)*101,0);VAR40:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);VAR41:=VAR15-REF(VAR15,1);VAR42:=DYNAINFO(4)>0;VAR43:=EXIST(ABS(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.052,20) AND EXIST(CLOSE/REF(CLOSE,1)>1.15,2)!=1;VAR44:=FINANCE(40)<300*100000000 AND FINANCE(7)<=VAR1*100000000;VAR45:=VAR43 AND VAR42 AND VAR21=0 AND AMOUNT/10000>1000;VAR46:=COUNT(HIGH/REF(CLOSE,1)>=1.081,5)>=2 AND CLOSE>=OPEN;VAR47:=INDEXADV/(INDEXADV+INDEXDEC);VAR48:=VAR12;VAR49:=IF(VAR48=1,VAR47*100,0);VAR50:=VAR49>85 OR REF(VAR49,1)>85;VAR51:=IF(VAR2=1,VAR50,0);VAR52:=VAR39>53 AND CLOSE>=OPEN;VAR53:=(CLOSE-VAR40)/VAR40*200;VAR54:=IF(VAR51=0 AND VAR45 AND VAR44 AND VAR46 AND VAR52 AND VAR19=1,(VAR30+VAR10*3+VAR26+VAR38+VAR41*5+VAR53)*1.1,0);擒妖:CROSS(VAR54,5),NODRAW,COLORLIBLUE;
STICKLINE(擒妖,1,2,2,0),COLORLIBLUE;