期市華爾茲
TMP:=CLOSE-EMA(CLOSE,21); STICKLINE(TMP>0,C,H,0.1,0),COLORRED; STICKLINE(TMP>0,L,O,0.1,0),COLORRED; STICKLINE(TMP<=0,C,H,0.1,0),COLORCYAN; STICKLINE(TMP<=0,L,O,0.1,0),COLORCYAN; STICKLINE(TMP>0,OPEN,CLOSE,4,1),COLORRED; STICKLINE(TMP<=0,OPEN,CLOSE,4,0),COLORCYAN;
VAR2:=(2*CLOSE+HIGH+LOW)/4; VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1); VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4); S:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3; Z:=EMA(0.667*REF(S,1)+0.333*S,2)*VAR3; DRAWICON(CROSS(S,Z) AND S<30,L-0.05,1); DRAWICON(CROSS(Z,S) AND S>70,H+0.05,2);
效果如下:
|