SHORT:=6;LONG:=13;M:=5;DIF:(EMA(CLOSE,SHORT)-EMA(CLOSE,LONG))*100;DEA:EMA(DIF,M);:(DIF-DEA)*2,COLORSTICK;DRAWICON(OSS(DIF,DEA),DEA,1);DRAWICON(CROSS(DEA,DIF),DEA,2);IF(DIF
REF(C,1) AND REF(C> REF(C,1),1)=1;:=(DD AND EE AND DEA< HHV DEA,180))*DEA;A2:=BARSLAST(REF(CROSS(DEA,DIF),1));{清仓:>DIF AND CROSS(DEA,DIF);}DRAWLINE(A2=0,DEA,清仓,DEA,0),COLORBROWN,LINETHICK2;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:SMA(RSV,9