以下是通达信金钱魔鬼指标公式源码和使用说明
通达信金钱魔鬼指标公式源码:
均5:ma(CLOSE,5),COLOR0000FF;
均10:MA(CLOSE,10),COLOR00FF00;
均30:MA(CLOSE,30),COLORFF00FF;
均60:MA(CLOSE,60),COLORWHITE,POINTDOT,LINETHICK2;
均250:MA(CLOSE,250),COLORFF9933,LINETHICK2;
魔鬼通道上:均30+2*stD(CLOSE,60),COLOR0099FF,POINTDOT,LINETHICK2;
魔鬼通道下:均30-2*STD(CLOSE,60),COLORYELLOW,POINTDOT,LINETHICK2;
DRAWICON(crOSS(zig(3,10),REF(ZIG(3,10),1)),LOW*0.98,1);
DRAWICON(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.02,2);
DRAWTEXT(REF(CLOSE,2)/REF(OPEN,2) 0.95AND
REF(C,2) REF(C,3)ANDREF(OPEN,1) REF(CLOSE,2)AND
REF(CLOSE,1) REF(CLOSE,2)AND
REF(CLOSE,1) (REF(CLOSE,2)+REF(OPEN,2))/2AND
CLOSE REF(CLOSE,1)AND
LLV(LOW,13)=REF(LOW,1),LOW*0.96,'曙光'),COLORYELLOW;
DRAWTEXT(REF(CLOSE,2)/REF(OPEN,2) 0.95AND
REF(OPEN,1) REF(CLOSE,2)AND
Abs(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1) 0.03AND
CLOSE/OPEN 1.05ANDCLOSE REF(CLOSE,2),LOW*0.96,'早晨'),COLORYELLOW;
DRAWICON(REF(CLOSE,2)/REF(OPEN,2) 0.95AND
REF(OPEN,1) REF(CLOSE,2)AND
ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1) 0.03AND
CLOSE/OPEN 1.05ANDCLOSE REF(CLOSE,2),C,1);
VAR2:IF(EMA(CLOSE,5)/EMA(EMA(CLOSE,9),16) =0.85ANDCLOSE/REF(CLOSE,1) 0.905ANDCLOSE/REF(CLOSE,1) 1.05AND/CAPITAL*100 5,50,0);
VAR3:=(-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))+100;
VAR4:=(-100)*(HHV(HIGH,50)-CLOSE)/(HHV(HIGH,50)-LLV(LOW,50))+100;
VAR5:=(-100)*(HHV(HIGH,70)-CLOSE)/(HHV(HIGH,70)-LLV(LOW,70))+100;
VAR6:=((CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100+10)*5;
VAR7:=((CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100+10)*5;
VAR8:=((CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+10)*5;
VAR9:=(VAR3+VAR4+VAR5+VAR6+VAR7+VAR8)/6;
VARA:=EMA(VAR9,3);
VARB:=Abs(VAR6-VAR8);
VARC:=(VAR9+VARB)/2;
VARD:=(-1)*(EMA(100*(1-WINNER(CLOSE)),1)-50)+50;
VARE:=VARD+VARC;
VARF:IF(VAR2 0ANDVARE 0,200,0);
VAR10:IF(VARC 0ANDCLOSE=LLV(CLOSE,5)ANDCLOSE/REF(CLOSE,1) 0.905ANDCLOSE/REF(CLOSE,1) 1.05ANDVOL/CAPITAL*100 5,-50,0);
VAR11:IF(VARE 0ANDVAR10=-50,100,0);
VAR12:=MA(CLOSE,3);
VAR13:=REF(CLOSE,2)*0.865;
VAR14:=REF(CLOSE,13)*0.772;
VAR15:=MIN(VAR13,VAR14);
VAR16:=100*VOL/CAPITAL;
VAR17:=MA(CLOSE,13);
VAR18:IF((CLOSE-VAR15)/CLOSE 0.03ANDSUM(VAR16,5)/5 1.8,1,0);
VAR19:IF(VAR18 0AND(VAR10 0ORVAR2 0),100,0);
VAR2:IF(EMA(CLOSE,5)/EMA(EMA(CLOSE,9),16) =0.85ANDCLOSE/REF(CLOSE,1) 0.905ANDCLOSE/REF(CLOSE,1) 1.05ANDVOL/CAPITAL*100 5,50,0);
VAR3:=(-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))+100;
VAR4:=(-100)*(HHV(HIGH,50)-CLOSE)/(HHV(HIGH,50)-LLV(LOW,50))+100;
VAR5:=(-100)*(HHV(HIGH,70)-CLOSE)/(HHV(HIGH,70)-LLV(LOW,70))+100;
VAR6:=((CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100+10)*5;
VAR7:=((CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100+10)*5;
VAR8:=((CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+10)*5;
VAR9:=(VAR3+VAR4+VAR5+VAR6+VAR7+VAR8)/6;
VARA:=EMA(VAR9,3);
VARB:=ABS(VAR6-VAR8);
VARC:=(VAR9+VARB)/2;
VARD:=(-1)*(EMA(100*(1-WINNER(CLOSE)),1)-50)+50;
VARE:=VARD+VARC;
VARF:IF(VAR2 0ANDVARE 0,200,0);
VAR10:IF(VARC 0ANDCLOSE=LLV(CLOSE,5)ANDCLOSE/REF(CLOSE,1) 0.905ANDCLOSE/REF(CLOSE,1) 1.05ANDVOL/CAPITAL*100 5,-50,0);
VAR11:IF(VARE 0ANDVAR10=-50,100,0);
VAR12:=MA(CLOSE,3);
VAR13:=REF(CLOSE,2)*0.865;
VAR14:=REF(CLOSE,13)*0.772;
VAR15:=MIN(VAR13,VAR14);
VAR16:=100*VOL/CAPITAL;
VAR17:=MA(CLOSE,13);
VAR18:IF((CLOSE-VAR15)/CLOSE 0.03ANDSUM(VAR16,5)/5 1.8,1,0);
VAR19:IF(VAR18 0AND(VAR10 0ORVAR2 0),100,0);
通达信金钱魔鬼指标公式截图