? DIFF : EMA(CLOSE,12) - EMA(CLOSE,26),colorred; DEA : EMA(DIFF,9),colorgreen; MACD :4*(DIFF-DEA), COLORSTICK; D1:=EMA(C,3)-EMA(C,8); D3:=EMA(H,3)-EMA(H,8); D4:=EMA(L,3)-EMA(L,8); DRAWICON(cross(d1,diff) and diff\u003C-0.05 ,d4,9); DRAWICON(cross(diff,d1) and diff>0.1 ,d3,10); Var1:=REF(MA(C,20),10); 開:=O-Var1; 高:=H-Var1; 低:=L-Var1; 收:=C-Var1; MID:=MA(C,20); UPPER:=MID+2*STD(C,20); LOWER:=MID-2*STD(C,20); V1:=(C-LOWER)/(UPPER-LOWER)*100; V2:=V1-EMA(V1,5); K1:=SUM(LLV(V2,4),4)/4; V3:=EMA(V2,64)*10; V4:=EMA(0.4*V2*(-1),3); V5:=-1*EMA(V2,39)*10; A:=V3>10; B:=V2>V4; D:=V5>10; E:=V3\u003C=10 OR V2\u003C=V4 OR V5\u003C=10; STICKLINE(C,0,0,6,0),coloryellow; STICKLINE(收>=開 AND E,高,低,0,0), COLORred; STICKLINE(收>=開 AND E,收,開,8,0) ,COLORred; STICKLINE(收\u003C 開 AND E,高,低,0,0) ,COLORgreen; STICKLINE(收\u003C 開 AND E,收,開,8,0) ,COLORgreen; STICKLINE(開> 收 AND A,低,高,0,0),COLORYELLOW; STICKLINE(開> 收 AND A,收,開,8,0),COLORYELLOW; STICKLINE(開\u003C=收 AND A,低,高,0,0),COLORYELLOW; STICKLINE(開\u003C=收 AND A,收,開,8,1),COLORYELLOW; STICKLINE(開> 收 AND B,低,高,0,0),COLORRED; STICKLINE(開> 收 AND B,收,開,8,0),COLORRED; STICKLINE(開\u003C=收 AND B,低,高,0,0),COLORRED; STICKLINE(開\u003C=收 AND B,收,開,8,1),COLORRED; STICKLINE(開> 收 AND D,低,高,0,0),COLORGREEN; STICKLINE(開> 收 AND D,收,開,8,0),COLORGREEN; STICKLINE(開\u003C=收 AND D,低,高,0,0),COLORGREEN; STICKLINE(開\u003C=收 AND D,收,開,8,1),COLORGREEN; KS:=(C-SMA(C,13,1))/SMA(C,13,1)*(-100); RKS:=REF(KS,1); MLS:=RKS/KS>1.23 AND RKS>13 AND C/REF(C,1)>1.03; 超跌:STICKLINE(KS>13,高,低,0,1),colorwhite,linethick2; 反彈:STICKLINE(MLS=1,高,低,0,1),colormagenta,linethick2; STICKLINE(KS>13,開,收,8,1),colorwhite,linethick2; STICKLINE(MLS=1,開,收,8,1),colormagenta,linethick2; 開盤價:c,linethick0,precis2,coloryellow; 最高價:h,linethick0,precis2,colorred; 最低價:L,linethick0,precis2,colorcyan; 即時價:c,linethick0,precis2,colorgreen; |
|