虎头蛇尾源码
VAR1:=EMA(CLOSE,13);
VAR2:=EMA(CLOSE,34);
VAR3:=EMA(CLOSE,55);
VAR4:=EMA(CLOSE,120);
VAR5:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>0.5;
VAR6:=VOL>MA(VOL,5)*0.6;
VAR7:=COUNT(CROSS(VAR1,VAR3),3)=1;
VAR8:=ABS(VAR2-VAR3)/VAR3<0.03;
VAR9:=VAR3<=VAR4 AND VAR3>=REF(VAR3,1);
VAR10:=FILTER(VAR5 AND VAR6 AND VAR7 AND VAR8 AND VAR9,2);
VAR11:=ABS(CLOSE-REF(CLOSE,25));
VAR12:=SUM(ABS(CLOSE-REF(CLOSE,1)),25);
VAR13:=VAR11/VAR12;
VAR14:=VAR13*(2/3-2/31)+2/31;
VAR15:=VAR14*VAR14;
VAR16:=EMA(DMA(CLOSE,VAR15),2);
VAR17:=IF(VAR16/REF(VAR16,1)>1.00115,VAR16,DRAWNULL);
VAR18:=VAR10 AND VAR16/REF(VAR16,1)>1.00115;
DRAWBAND(VAR18,RGB(255,0,0),0,RGB(0,0,0));