RSV1:=100*(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27));
K1:=REF(MA(RSV1,3),1)+(RSV1-REF(MA(RSV1,3),1))/3;
D1:=REF(MA(K1,3),1)+(K1-REF(MA(K1,3),1))/3;
J1:=3*K1-2*D1;
AA1:=EMA(J1,5);
AA2:=REF(AA1,1);
J27:AA1,COLORRED,LINETHICK2;
RSV2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K2:=REF(MA(RSV2,3),1)+(RSV2-REF(MA(RSV2,3),1))/3;
D2:=REF(MA(K2,3),1)+(K2-REF(MA(K2,3),1))/3;
J2:=3*K2-2*D2;
BB1:=EMA(J2,5);
BB2:=REF(BB1,1);
J9:BB1;
DD:=AA1>AA2 AND BB1>BB2;
注意买入D AND NOT(REF(DD,1)) AND (AA1<50 OR BB1<50) ,COLORRED;
DRAWICON(注意买入,-5,4);
注意卖出:REF(DD,1)=1 AND NOT(DD),COLORGREEN;
DRAWTEXT(注意卖出,105,'S'),COLORGREEN;
VAR1:=J27>REF(J27,1);
VAR2:=J9>REF(J9,1);
XG:=VAR1>0 AND VAR2>0 AND (REF(VAR1,1)=0 OR REF(J9,1)=0) AND J9<35 AND J27<35;
底部共振:15*XG; |