RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2,COLORSTICK;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),9,1)/SMA(ABS(CLOSE-LC),9,1)*100;
日K:="KDJ.K#DAY";
日D:="KDJ.D#DAY";
日DIF:="MACD.DIF#DAY";
日DEA:="MACD.DEA#DAY";
日RSI:="RSI.RSI1#DAY";
周K:="KDJ.K#WEEK";
周D:="KDJ.D#WEEK";
周DIF:="MACD.DIF#WEEK";
周DEA:="MACD.DEA#WEEK";
周RSI:="RSI.RSI2#WEEK";
月K:="KDJ.K#MONTH";
月D:="KDJ.D#MONTH";
月DIF:="MACD.DIF#MONTH";
月DEA:="MACD.DEA#MONTH";
月RSI:="RSI.RSI2#MONTH";
X1:=日K>日D;
X2:=日DIF>日DEA;
X3:=日RSI>50;
X4:=周K>周D;
X5:=周DIF>周DEA;
X6:=周RSI>50;
X7:=月K>月D;
X8:=月DIF>月DEA;
X9:=月RSI>50;
黑马初显:X1 AND X2 AND X3 AND X4 AND X5 AND X6 AND X7 AND X8 AND X9;
|