LC := REF(CLOSE,1);
RSI$1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,coloryellow,LINETHICK1;
RSI$2:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100,colorwhite,LINETHICK1;
RSI$3:SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100,colorgreen,LINETHICK1;
a:L1,colorred,LINETHICK1;
b:L2,colorgreen,LINETHICK1;
开盘:=INDEXO,NODRAW;
收盘:=INDEXC,NODRAW;
最高:=INDEXH,NODRAW;
最低:=INDEXL,NODRAW;
分:=CONST(LLV(最低,90));百:=CONST(HHV(最高,90))-分;
基点:=CONST(LLV(RSI,90)); 基:=CONST(HHV(RSI,90))-基点;
C比:=(收盘-分)/百;
N:=40;
N1:=20;
VAR1:=((3 * SMA((((CLOSE - LLV(LOW,N)) / (HHV(HIGH,N) - LLV(LOW,N))) * 100),5,1)) - (2 * SMA(SMA((((CLOSE - LLV(LOW,N)) / (HHV(HIGH,N) - LLV(LOW,N))) * 100),5,1),3,1)));
VAR2:=((3 * SMA((((CLOSE - LLV(LOW,N1)) / (HHV(HIGH,N1) - LLV(LOW,N1))) * 100),5,1)) - (2 * SMA(SMA((((CLOSE - LLV(LOW,N1)) / (HHV(HIGH,N1) - LLV(LOW,N1))) * 100),5,1),3,1)));
秘密买点:IF((VAR2 <= 3),55,0),colorwhite;
绝密买点:IF((VAR2 <= 0),55,0),colorred;
LC:=REF(CLOSE,1);
RSI:SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100,COLORFF00FF,LINETHICK2;
STICKLINE(RSI>80,80,RSI,2,0),colorgreen;
STICKLINE(RSI<20,20,RSI,2,0),colorred;
RSV14:=(CLOSE - LLV(LOW,14))/(HHV(HIGH,14) - LLV(LOW,14))-0.5;
K14:=EMA(RSV14,3);
D14:=EMA(K14,3);
J14:=3*K14-2*D14;
kdjXG:=REF(COUNT(J14<REF(J14,1),5)>=3,1) AND REF(J14,1)<-0.4 AND J14>REF(J14,1);