源码
N:=34;M1:=3;M2:=3;
个股RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
个股MSD:EMA(个股RSV,M1);
大盘RSV:=(INDEXC-LLV(INDEXL,N))/(HHV(INDEXH,N)-LLV(INDEXL,N))*100;
大盘MSD:EMA(大盘RSV,M1);
a1:if(CROSS(个股MSD,大盘MSD),1,0)*20,COLORGREEN;
a2:if(CROSS(大盘MSD,个股MSD),-1,0)*20,COLORRED;
20,POINTDOT;
50,POINTDOT;
80,POINTDOT;