RSV1:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
GG:MA(RSV1,3);
RSV2:=(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34))*100;
DP:MA(RSV2,3);
0,colorred,POINTDOT,LINETHICK2;
20,colorred,POINTDOT,LINETHICK2;
50,colorred,POINTDOT,LINETHICK2;
80,colorred,POINTDOT,LINETHICK2;
100,colorred,POINTDOT,LINETHICK2;
A1:=COUNT(GG REF(GG,1),2)=2;
A2:=COUNT(DP REF(DP,1),2)=2;
A3:=COUNT(GG REF(GG,1),2)=2;
A4:=COUNT(DP REF(DP,1),2)=2;
逆势上涨:IF(A1 AND A2,25,0),LINETHICK0;
DRAWTEXT(逆势上涨,10,'涨'),colorred;
逆势下跌:IF(A3 AND A4,10,0),LINETHICK0;
DRAWTEXT(逆势下跌,10,'跌'),colorgreen;