下跌趋势:IF((VAR2 VAR3),VAR3,DRAWNULL),POINTDOT,COLORFF0000;
M1:=EMA(CLOSE,5);
M2:=EMA(CLOSE,8);
M3:=EMA(M2,10);
M4:=EMA(M2,55);
VAR4:=EMA(M3,55);
M5:=EMA(M4,81);
M6:=EMA(VAR4,144);
VAR5:=(REF(HIGH,1)+REF(LOW,1))/(2);
VAR6:=MA(CLOSE,N)+(2)*(STD(CLOSE,N));
VAR7:=REF(CLOSE,1);
VAR8:=((SMA(MAX(CLOSE-VAR7,0),N1,1))/(SMA(ABS(CLOSE-VAR7),N1,1)))*(100);
VAR9:=CROSS(N2,VAR8);
VARA:=FILTER(VAR9,4);
VARB:=((2)*(CLOSE)+HIGH+LOW)/(4);
VARC:=LLV(LOW,34);
VARD:=HHV(HIGH,34);
VARE:=EMA(((VARB-VAR4)/(VAR5-VAR4))*(100),7);
VARF:=EMA((0.667)*(REF(VARE,1))+(0.333)*(VARE),5);
{买进1:IF(IF(((COUNT((CLOSE REF(CLOSE,1)),8))/(8) 0.6) AND (VOL =(1.5)*(MA(VOL,5))) AND COUNT((VARE =VARF),3) AND (REF(LOW,1)=LLV(LOW,120)),1,0),(HIGH)*(1.02),0),COLOR00FFFF,NODRAW;
买进2:IF(IF(((COUNT((CLOSE REF(CLOSE,1)),13))/(13) 0.6) AND COUNT((VARE VARF),6) AND (REF(LOW,5)=LLV(LOW,120)) AND REF((CLOSE =OPEN),4) AND REF((CLOSE OPEN),3) AND REF((CLOSE OPEN),2) AND REF((OPEN CLOSE),1) AND (OPEN REF(CLOSE,1)),1,0),(HIGH)*(1.02),0),COLORF00FF0,NODRAW;
VAR10:=MA(CLOSE,80)-(MA(CLOSE,10))/(3);
抄底:IF(IF((CLOSE VAR10) AND ((VOL)/(240) (MA(VOL,5))/(240)) AND (CLOSE (REF(CLOSE,1))*(1.08)) AND (CLOSE (MA(CLOSE,13))*(1.3)),1,0),(HIGH)*(1.02),0),COLOR0000FF,NODRAW;}
IF((VAR2 VAR3),VAR2,DRAWNULL),POINTDOT,LINETHICK5,COLOR00FFFF;
IF((VAR2 VAR3),VAR3,DRAWNULL),POINTDOT,LINETHICK5,COLORFF0000;
公式模块:
N:=20;N1:=7;N2:=49;
VAR1:=(CLOSE+HIGH+LOW)/(3);
VAR2:=EMA(VAR1,10);
VAR3:=REF(VAR2,1);
上涨趋势:IFF((VAR2 VAR3),VAR2,DRAWNULL),ZBCIRCLEDOT,COLORYELLOW;
下跌趋势:IFF((VAR2 VAR3),VAR3,DRAWNULL),ZBCIRCLEDOT,COLORBLUE;
M1:=EMA(CLOSE,5);
M2:=EMA(CLOSE,8);
M3:=EMA(M2,10);
M4:=EMA(M2,55);
VAR4:=EMA(M3,55);
M5:=EMA(M4,81);
M6:=EMA(VAR4,144);
VAR5:=(REF(HIGH,1)+REF(LOW,1))/(2);
VAR6:=MA(CLOSE,N)+(2)*(STD(CLOSE,N));
VAR7:=REF(CLOSE,1);
VAR8:=((SMA(MAX(CLOSE-VAR7,0),N1,1))/(SMA(ABS(CLOSE-VAR7),N1,1)))*(100);
VAR9:=CROSS(N2,VAR8);
VARA:=FILTER(VAR9,4);
VARB:=((2)*(CLOSE)+HIGH+LOW)/(4);
VARC:=LLV(LOW,34);
VARD:=HHV(HIGH,34);
VARE:=EMA(((VARB-VAR4)/(VAR5-VAR4))*(100),7);
VARF:=EMA((0.667)*(REF(VARE,1))+(0.333)*(VARE),5);