金银山周期
S1:=DMA(C,0.15);
S2:=100*SLOPE(S1,5);
S3:=EMA((S1/MA(S1,9)-1)*100,9);
SB:IF(PERIOD>4,S2,IF(PERIOD=3,S3,DRAWNULL));
SCC:EMA(SB,2);
STICKLINE(PERIOD>4 AND SB>=0,SB,0,2,0),COLORRED;
STICKLINE(PERIOD>4 AND SB<=0,SB,0,2,0),COLORGREEN;
STICKLINE(PERIOD=3 AND S3>=REF(S3,1),S3,0,2,0),COLORRED;
STICKLINE(PERIOD=3 AND S3<=REF(S3,1),S3,0,2,0),COLORGREEN;
X3:=S2-REF(S2,1);
HA:=REF(C/REF(C,1),1)<1.02 AND LONGCROSS(S2,REF(S2,1),3) AND IF(S2>0,S2<C*0.5,S1/C>1.05);
HB:=S2>C AND LONGCROSS(REF(X3,1),X3,3);
DRAWICON(PERIOD>4 AND HA,0,18);
DRAWTEXT(PERIOD>4 AND HB,0,'压');