股票-通达信鬼眼鬼指买卖指标公式.docx
通达信鬼眼鬼指买卖指标公式_正点财经VAR1:=IF(YEAR=2334ANDMONTH0,0,1);VAR2:=(CLOSE-LLV(LOW,80)/(HHV(HIGH,80)-LLV(LOW,80)*200;VAR3:=SMA(VAR2,3,1);VAR4:=SMA(VAR3,3,1);VAR5:=3*VAR3-2*VAR4;VAR6:=LLV(LOW,5);VAR7:=HHV(HIGH,5);VAR8:=EMA(CLOSE-VAR6)/(VAR7-VAR6)*100,4)*2;VAR9:=EMA(0.667*REF(VAR8,1)+0.333*VAR8,2);VARA:=3*VAR8-2*VAR9;VARB:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);VARC:=POW(MA(LOW,5),2)+MA(LOW,5);VARD:=POW(MA(HIGH,5),2)+MA(HIGH,5);VARE:=(VARB-LLV(VARC,64)/(HHV(VARD,64)-LLV(VARC,64)*150+65-10;VARF:=SMA(VARE,3,1)*1.5-100;VAR10:=SMA(VARF,3,1);VAR11:=3*VARF-2*VAR10;VAR12:=(HIGH+LOW+CLOSE*2)/4;VAR13:=EMA(VAR12,13);VAR14:=STD(VAR12,13);VAR15:=(VAR12-VAR13)*100/VAR14;VAR16:=EMA(VAR15,5);VAR17:=EMA(VAR16,13);VAR18:=EMA(VAR16,13)+200-100;VAR19:=EMA(VAR18,10);VAR1A:=3*VAR18-2*VAR19;VAR1B:=VAR3+VAR8+VARF+VAR18;VAR1C:=VAR4+VAR9+VAR10+VAR19;VAR1D:=VAR5+VARA+VAR11+VAR1A;VAR1E:=(HIGH+LOW+CLOSE)/3;VAR1F:=AMOUNT/VOL/100;VAR20:=SUM(AMOUNT,5)/SUM(VOL,5)/100;VAR21:=(VAR1E-MA(VAR1E,34)/(0.015*AVEDEV(VAR1E,34);VAR22:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);VAR23:=(HIGH+LOW+CLOSE+VAR1E)/4;VAR24:=EMA(VAR23,24);VAR25:=STD(VAR23,24);VAR26:=(VAR23-VAR24)/VAR25*100;VAR27:=(VAR1E-MA(VAR1E,24)/(0.015*AVEDEV(VAR1E,24);VAR28:=EMA(VAR26,5);VAR29:=(VAR1F-MA(VAR1F,21)/(0.015*AVEDEV(VAR1F,21);VAR2A:=(VAR20-MA(VAR20,90)/(0.015*AVEDEV(VAR20,90);VAR2B:=(VAR28+VAR27+VAR21)/3+165)/4;VAR2C:=(EMA(EMA(EMA(VAR2B,15),10),5)-25)*2+VAR22;VAR2D:=(VAR1B+VAR1C+VAR1D*30)/32/5-15;VAR2E:=EMA(VAR2D,13);VAR2F:=(VAR2B+VAR2D)/2/1.1;VAR30:=VAR2F*VAR1;短A:EMA(VAR30,1),COLORRED;短B:EMA(短A,5),COLORFFCC66;趋势线:EMA(VAR2C+VAR2E)/2,2),COLOR0099FF;生死线:EMA(趋势线,40),COLORGREEN,LINETHICK2;VAR31:=(CLOSE-MA(CLOSE,6)/MA(CLOSE,6)*100;VAR32:=(CLOSE-MA(CLOSE,12)/MA(CLOSE,12)*100;VAR33:=(CLOSE-MA(CLOSE,24)/MA(CLOSE,24)*100;VAR34:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);VAR35:=(CLOSE-VAR34)/VAR34*100;VAR36:=REF(VAR35,1)-40ANDVAR35REF(VAR35,1)ANDREF(VAR35,1)REF(VAR35,2)ANDVAR35-REF(VAR35,1)VAR37:=(MA(AMOUNT,5)/MA(VOL,5)/100-MA(AMOUNT,110)/MA(VOL,110)/100)/(MA(AMOUNT,5)/MA(VOL,5)/100)-0.273;VAR38:=(CLOSE-MA(CLOSE,30)/MA(CLOSE,30)-0.125;VAR39:=VAR37ANDVAR38;VAR3A:=VAR31=-45ANDVAR31=-10ANDVAR32=-15ANDVAR33=-20;VAR3B:=COUNT(VAR3A,1)VAR3C:=1;VAR3D:=VAR39ANDVAR3B;VAR3E:=(MA(AMOUNT,5)*VAR3C/MA(VOL,5)/100-MA(AMOUNT,125)/MA(VOL,125)/100)/(MA(AMOUNT,5)/MA(VOL,5)/100)(-0.4)*VAR3C;VAR3F:=HHV(HIGH,500);VAR40:=LLV(LOW,500);VAR41:=HHV(HIGH,250);VAR42:=LLV(LOW,250);VAR43:=EMA(CLOSE,34);VAR44:=MA(VAR43*0.82,5);VAR45:=CLOSE-REF(MA(CLOSE,20),11)VAR46:=LLV(LOW,125);VAR47:=MA(VAR3F*0.45+VAR41*0.5+VAR40+VAR42+VAR46)/5,35);VAR48:=VAR47;VAR49:=SMA(AMOUNT/VOL/100,13,1)*0.85;VAR4A:=CLOSE-REF(MA(CLOSE,20),11);VAR4B:=CLOSEVAR44ANDVAR3EANDCLOSEVAR49ORCLOSEVAR44ANDVAR45ANDVAR3EORCLOSEVAR44ANDCLOSEVAR49ORCLOSEVAR44ANDVAR3EANDCLOSEVAR49ORVAR3EANDCLOSEVAR48ORVAR3EANDVAR45ANDVAR4A-1.5ORVAR3EANDCLOSEVAR44ORVAR3EANDVAR4A-1.5ORVAR45ANDCLOSEVAR49ORCLOSEVAR48ANDVAR4A-1.5ORCLOSEVAR44ANDVAR45;VAR4C:=VAR37ANDVAR38;VAR4D:=VAR31=-45ANDVAR31=-7ANDVAR32=-11ANDVAR33=-14;VAR4E:=COUNT(VAR4D,1)VAR4F:=VAR4CANDVAR4E;VAR50:=VAR3EANDCLOSEVAR44ANDVAR45ANDCLOSEVAR48ANDVAR4BANDVAR4F;VAR51:=(CLOSE-MA(CLOSE,6)/MA(CLOSE,6)*100;VAR52:=(CLOSE-MA(CLOSE,12)/MA(CLOSE,12)*100;VAR53:=(CLOSE-MA(CLOSE,24)/MA(CLOSE,24)*100;VAR54:=REF(CLOSE,1);VAR55:=SMA(MAX(CLOSE-VAR54,0),5,1)/SMA(ABS(CLOSE-VAR54),5,1)*100;VAR56:=(HIGH+LOW+CLOSE)/3;VAR57:=(VAR56-MA(VAR56,14)/(0.015*AVEDEV(VAR56,14);VAR58:=REF(CLOSE,2)*0.865;VAR59:=REF(CLOSE,13)*0.772;VAR5A:=MIN(VAR58,VAR59);VAR5B:=100*VOL/CAPITAL;VAR5C:=VAR51=-15.8ANDVAR51=-12.2ANDVAR52=-20.8ANDVAR53=-27.5ANDVAR55=11.7ANDVAR57=-145;鬼指:IF(VAR36ORVAR3DORVAR50ORVAR5COR(CLOSE-VAR5A)/CLOSE0.03ANDSUM(VAR5B,5)/51.8,100,-32),COLORYELLOW;风险区:STICKLINE(趋势线105,140,130,10,1),COLORRED;鬼顶:STICKLINE(趋势线135,140,130,10,0),COLORBLUE;鬼道:STICKLINE(BETWEEN(趋势线,CROSS(趋势线,150),140),-40,-30,0,0),COLORFFCC66;安全区:STICKLINE(趋势线-15,-41,-31,10,1),COLOR0099FF;鬼底:STICKLINE(趋势线-26,-41,-31,4,0),COLORWHITE;鬼眼:IF(CROSS(100,短A)ORCROSS(80,短A),105,120),COLORFFCCCC;DRAWTEXT(CROSS(趋势线,130)ORCROSS(趋势线,135)ORCROSS(135,趋势线)ORCROSS(132,趋势线)ORCROSS(130,趋势线)ORCROSS(128,趋势线)ORCROSS(126,趋势线)ORCROSS(124,趋势线),140,),COLORYELLOW;DRAWICON(CROSS(短B,趋势线)AND趋势线=-17ORCROSS(趋势线,生死线)AND生死线=5,-150,1);通达信鬼眼鬼指买卖指标公式实例图解:通达信鬼眼鬼指买卖指标公式