【通达信】猎庄狐狸指标公式002455股票

ye:=(high+low+close)/3;
ye1:=if(high=low,1,HIGH-Max(OPEN,CLOSE));
ye2:=if(high=low,1,max(CLOSE,OPEN)-ye);
ye3:=if(high=low,1,Min(OPEN,CLOSE)-LOW);
ye4:=if(high=low,1,ye-min(close,open));
ye5:=vol/if(high=low,4,HIGH-LOW);
ye6:=(ye1*ye5);
ye7:=(ye2*ye5);
ye8:=(ye3*ye5);
ye9:=(ye4*ye5);
zdmc:=sum(ye6,0);
bdmc:=sum(ye7,0);
zdmr:=sum(ye8,0);
bdmr:=sum(ye9,0);
zcjl:=sum(vol,0);
zlmc:=zdmc;
shmc:=bdmc;
zlmr:=zdmr;
shmr:=bdmr;
zel:=((zlmc+shmr)-(shmc+zlmr))/100000;
狐狸:zel;
ma1:ema(zel,13);
ma2:ema(zel,21);
ma3:ema(zel,34);
ma4:ema(zel,55);