{n 2 100 20}
大顶:100,COLORBLUE;
VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;
VAR2:=SMA(VAR1,10,1);
慢速:SMA(VAR2,5,1),COLORRED;
RSV1:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
FATK:=SMA(RSV1,3,1);
形态:SMA(FATK,3,1),COLORBB24DB;
VARA:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VARB:=SMA(VARA,3,1);
VARC:=SMA(VARB,3,1);
加速: EMA(3*VARB-2*VARC,3),COLORYELLOW;
底:=6,COLOR00BF00;
大底:=-6,COLOR007300;
VAR11:=LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04;
VAR22:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;
买入:=VAR11 AND VAR22;
VAR3:=REF(CLOSE,1);
VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;
卖出:=CROSS(80,VAR4);
{波段介入点}
A1:=REF(CLOSE,2);
A2:=SMA(MAX(CLOSE-A1,0),7,1)/SMA(ABS(CLOSE-A1),7,1)*100;
介入点:IF(A2<19,45,0),COLORMAGENTA;
VAR51:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR52:=SMA(VAR51,3,1);
VAR53:=SMA(VAR52,3,1);
VAR54:=SMA(VAR53,3,1);
波:= VAR53;
段:= VAR54;
VAR5:=CROSS(VAR53,VAR54) AND VAR53<20;
DRAWTEXT(FILTER(VAR5,10)=1,40,'逢低吸纳'),COLORYELLOW;
STICKLINE(FILTER(VAR5,10)=1,0,30,3,0),COLORRED;
VAR9:=CROSS(VAR54,VAR53) AND VAR53>80;
STICKLINE(FILTER(VAR9,5)=1,80,100,3,0),COLORGREEN;
DRAWTEXT(FILTER(VAR9,5)=1,70,'减仓'),COLOR00FF00;
VAR8:=CROSS(VAR52,VAR53) AND VAR53>80 AND VAR53>VAR54;
STICKLINE(VAR8,85,100,3,0),COLOR0099FF;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1),COLORWHITE;
D:=SMA(K,3,1),COLORYELLOW;
J:=3*K-2*D,COLORMAGENTA;
TYP:=(HIGH+LOW+CLOSE)/3;
J负:IF(J<0,50,0),COLORRED,LINETHICK2;
零轴:=0,LINETHICK1,COLORWHITE;
超买:=100,LINETHICK1,COLORGREEN;
CCI14:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),COLORLIBLUE;
CCI14到位:IF(CCI14<-200,44,0),COLORWHITE,LINETHICK2;
BOLL:=MA(CLOSE,N);
UPPER:=BOLL+2*STD(CLOSE,N);
LOWER:=BOLL-2*STD(CLOSE,N);
CC:=C<=LOWER;
BOLL到位:STICKLINE(CC,40,30,2,0),COLORBLUE;
AA:=LLV(LOW,36);
BB:=HHV(HIGH,30);
DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25);
股神:=DD,COLOR0000FF,LINETHICK2;
股海:=(((DD-LLV(DD,21))/(HHV(DD,21)-LLV(DD,21)))*(4))*(25);
目标B:IF(CROSS(股海,90) AND (股神<40),70,0),COLORFFFF00;
DRAWTEXT(CROSS(股海,90) AND (股神<40),75,'目标B出现'),COLORFFFF00;
跟踪:=10,COLOR0000FF;
目标A:IF((COUNT((股神>REF(股神,1)),1)=1) AND (REF(股神,1)<REF(REF(股神,1),1)) AND (股神<跟踪),50,0),COLORF00FF0;