INPUT: N日(9,2,90),调整(3,1,30),趋势(3,1,30);
RSV:=EMA((CLOSE-LLV(LOW,N日))/(HHV(HIGH,N日)-LLV(LOW,N日))*100,调整);
K:SMA(RSV,调整,1),LINETHICK0;
D:SMA(K,调整,1),LINETHICK1;
J:3*K-2*D,LINETHICK0;
连高:LAST(J>REF(J,1)),LINETHICK0,COLOR0030FF,PRECIS0;{天}
连低:LAST(J
金叉:LAST(K > D),LINETHICK0,COLOR0030FF,PRECIS0;{天}
死叉:LAST(K < D),LINETHICK0,COLOR00FF30,PRECIS0;{天};
FILLRGN(J,K,J>D,RGB(255,40,0),1,RGB(0,200,0));
D1:SMA(J,趋势,1){,LINETHICK0};
PARTLINE(D1,D1>REF(D1,1),RGB(200,200,0),1,RGB(0,0,200)),LINETHICK2;
PARTLINE(D1,D1>REF(D1,1),RGB(200,20,0),1,RGB(0,200,200)),LINETHICK2,POINTDOT;
DRAWTEXTREL(600,900,'证券代码: '+STKLABEL+' 证券名称: '+STKNAME+''),ColorFFAA00;