VAR1:=1;
VAR2:=((((2*CLOSE)+HIGH)+LOW) / 4);
低位:20;
高位:90,COLORFFFF00;
VAR4:=LLV(LOW,5);
VAR5:=HHV(HIGH,4);
C1:(EMA((((VAR2-VAR4)/(VAR5-VAR4))*100),4)*VAR1),colorred,LINETHICK1;
C2:(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR1),COLORFFFFFF,LINETHICK1;
AA:=CROSS(C1,C2) ;
BB:=CROSS(C2,C1) ;
DRAWICON(AA,C1,1);
DRAWICON(BB,C2,2);
DRAWTEXT(CROSS(C1,C2),REF(C2,1),'种金'),colorred;
DRAWTEXT(CROSS(C2,C1),REF(C1,1),'收获'),colorgreen;
DRAWTEXT(CROSS(C1,75),70,'开始冲顶'),colorwhite;
条件:=CROSS(C1,C2) AND C1<40;
条件0:=CROSS(C2,C1) AND C1>90;
DRAWTEXT(条件,20,'买'),colorwhite;
DRAWTEXT(条件0,85,'卖'),coloryellow;
DRAWTEXT(CROSS(C1,75),70,'开始冲顶'),colorwhite;
N:=9;M1:=3;M2:=2;P:=9;100,colorgray;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);
D:=SMA(K,M2,1);
J:=3 * K - 2 * D;
MAIRU:= CROSS(K,D) AND K<20;
MAICHU:= CROSS(D,K) AND D>80;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,30);
VAR6:=HHV(VAR4,30);