//佛系能量/
IF(CODETYPE==0)
{
RETURN;
}
猎:(46.18*EMA(CLOSE,3)-31.82*EMA(CLOSE,9))/14.36,COLORFF00FF,LINETHICK2;
D : MA(CLOSE,N),COLOR4400FF,LINETHICK2;
U: D + P*STD(CLOSE,N),LINETHICK2;
High1:=IF(ISNULL(HIGH),CLOSE,HIGH);
LOW1:=IF(ISNULL(LOW),CLOSE,LOW);
open1:=IF(ISNULL(OPEN),CLOSE,OPEN);
VAR1:=SMA(MAX(MAX(HIGH1-LOW1,ABS(HIGH1-REF(CLOSE,1))),ABS(LOW1-REF(CLOSE,1))),14,1);
VAR2:=HIGH1-REF(HIGH1,1);
VAR3:=REF(LOW1,1)-LOW1;
VAR4:=SMA(IF(VAR2>0 AND VAR2>VAR3,VAR2,0),12,1);
VAR5:=SMA(IF(VAR3>0 AND VAR3>VAR2,VAR3,0),12,1);
VAR6:=VAR4*100/VAR1;
VAR7:=VAR5*100/VAR1;
VAR8:=SMA(ABS(VAR7-VAR6)/(VAR7+VAR6)*100,12,1);
VAR9:=(VAR8+REF(VAR8,5))/2;
VARA:=SUM(HIGH1-OPEN1,12)/SUM(OPEN1-LOW1,12)*100;
VARB:=SUM(MAX(0,HIGH1-REF(CLOSE,1)),12)/SUM(MAX(0,REF(CLOSE,1)-LOW1),12)*10;
MO:=MONEY;
VO:=VOL;
IF(VOL==0) VO:=VO[1];
VARD:=(3*HIGH1+LOW1+OPEN1+2*CLOSE)/7;
IF(MO==0)
{
VARC:=VARD;
MO:=VARC*VO/100;
}
ELSE
VARC:=MO/VO/100;
IF(ISNULL(VARC)==1 OR VARC==0) VARC:=VARC[1]; //加上这句就好了
VARG:=SUM(MO,5)/VARC/100;
VARH:=SUM(MO,13)/VARC/100;
VARJ:=SUM(MO,65)/VARC/100;
VARE:=SUM(MO,120)/VARC/100;
VARF:=SUM(MO,250)/VARC/100;
VAR10:=SUM(MO,34)/VARC/100;
VAR12:=REF(VO,1)+REF(VO,2)+REF(VO,3)+REF(VO,4);
shares:=SHGZG;
IF(shares==0) shares:=shares[1];
VAR13:=VAR12/(shares/100);
VAR14:=VO/(shares/100)*VARD+VAR13*REF(VARC,1);
MV1: DMA_(VARD,VO/VARG);
MV2: DMA_(VARD,VO/VARH);
MV3: DMA_(VARD,VO/VARF);
DRAWICON(CROSS(MV1,MV3),MV1,1);
STICKLINE(C>=MV1,L,H,0,0),Color0000ff;
STICKLINE(C>=MV2,O,C,8,0),Color0000ff;
STICKLINE(C<MV1,L,H,0,0),Color00ff00;
STICKLINE(C<MV2,O,C,8,0),Color00ff00;
STICKLINE(C>MV1 AND C<MV2,L,H,0,3),Colorff00ff,LINETHICK3;
STICKLINE(C>MV1 AND C<MV2,O,C,8,3),Colorff00ff,LINETHICK3;
STICKLINE(C<MV1 AND C>MV2,L,H,0,2),Color00ffff;
STICKLINE(C<MV1 AND C>MV2,O,C,8,2),Color00ffff;
MA1:EMA(CLOSE,P1);
机构区间:=SUM(JGCC,30);
机构区间变化:JGCC-REF(JGCC,60),NODRAW;
DRAWTEXT_FIX(1,0.015,0.025,0,'板块:'),colormagenta;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.04,0.025,0,BLOCK(3,0)),colormagenta;
DRAWTEXT_FIX(1,0.015,0.13,0,'概念:'),coloryellow;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.04,0.13,0,BLOCK(0,0)),coloryellow;
STICKLINE(CROSS(猎,U),U,MV1,5,80), Colorff22ff,LINETHICK3;
DRAWICON(CROSS(U,猎),U,8);
DRAWICON(CROSS(猎,U),U,7);
DRAWICON(CROSS(MV1,C),MV1+0.005,0);