SG1:EMA(HIGH,N);
XG1:EMA(LOW,N);
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1),LINETHICK0;
SC:=CROSS(K,70);
XC:=CROSS(30,K);
SCT:=BARSLAST(SC);
XCT:=BARSLAST(XC);
ZDCC:=SCT<XCT;
ZKCC:=XCT<SCT;
PARTLINE(ZDCC,SG1),COLORRED,LINETHICK2;
PARTLINE(ZDCC,XG1),COLORRED,LINETHICK2;
PARTLINE(ZKCC,SG1),COLORGREEN,LINETHICK2;
PARTLINE(ZKCC,XG1),COLORGREEN,LINETHICK2;
DRAWTEXT(CROSS(XCT,SCT),XG1,'多'),COLORRED;
DRAWTEXT(CROSS(SCT,XCT),SG1,'空'),COLORGREEN;
|