通达信指标公式--擒庄利器MSD

MSD指标的公式及其源码:
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;

(0)

相关推荐