MAA5:MA(C,5),COLORFF00FF,LINETHICK2;
MAA10:=MA(C,10),COLORRED,LINETHICK4; MAA30:MA(C,30),,COLORYELLOW,LINETHICK4; KS:IF(MAA10>MAA30,MAA10,MAA30),COLORFFFF00,LINETHICK4; A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100; A4:=SMA(A3,3,1); A5:=SMA(A4,3,1); A6:=3*A4-2*A5; A7:=C-REF(C,1); A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6); 買:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2)); DRAWTEXT(FILTER(買=1,5),LOW-0.05,'↖買進'),COLORYELLOW; STICKLINE(買,OPEN,CLOSE,2,0),COLORYELLOW; NN:=150;
高11:=REFDATE(HHV(H,NN),DATE); 低11:=REFDATE(LLV(L,NN),DATE); H11:=高11-(高11-低11)*0.191; H12:=高11-(高11-低11)*0.382; H13:=高11-(高11-低11)*0.5; H14:=高11-(高11-低11)*0.618; H15:=高11-(高11-低11)*0.809; DRAWTEXT(CURRBARSCOUNT=1,高11,'高'),COLORGREEN,LINETHICK4; DRAWTEXT(CURRBARSCOUNT=1,H11,'809'),COLORGREEN; DRAWTEXT(CURRBARSCOUNT=1,H12,'618'),COLORGREEN; DRAWTEXT(CURRBARSCOUNT=1,H13,'★中'),COLORGREEN; DRAWTEXT(CURRBARSCOUNT=1,H14,'382'),COLORGREEN; DRAWTEXT(CURRBARSCOUNT=1,H15,'191'),COLORGREEN; DRAWTEXT(CURRBARSCOUNT=1,低11,'低'),COLORGREEN,LINETHICK4; STICKLINE(CURRBARSCOUNT=13,高11,高11,100,-2),COLORGREEN,LINETHICK4; STICKLINE(CURRBARSCOUNT=13,H11,H11,100,-1),COLORGREEN,LINETHICK2; STICKLINE(CURRBARSCOUNT=13,H12,H12,100,-1),COLORGREEN,LINETHICK2; STICKLINE(CURRBARSCOUNT=13,H13,H13,100,-1),COLORGREEN,LINETHICK2; STICKLINE(CURRBARSCOUNT=13,H14,H14,100,-1),COLORGREEN,LINETHICK2; STICKLINE(CURRBARSCOUNT=13,H15,H15,100,-1),COLORGREEN,LINETHICK2; STICKLINE(CURRBARSCOUNT=13,低11,低11,100,-1),COLORGREEN,LINETHICK2; N33:=10; T1:=CONST(HHVBARS(V,N33)); T0:IF(CURRBARSCOUNT<=N33+7,CONST(IF(T1=0,C,REF(C,T1))),DRAWNULL),COLORYELLOW; IF(CURRBARSCOUNT=T1+1,T0,DRAWNULL),COLORYELLOW; DRAWTEXT(ISLASTBAR,T0,' ★平臺'),COLORYELLOW; RC:=DYNAINFO( 3); S2:=SMA(C,2,1); S6:=SMA(C,6,1); DK:=2*(S2-S6); DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.95,'★買') ,LINETHICK2,COLORRED; DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.02,'★賣'),COLORWHITE; DRAWTEXT(CROSS(ZIG(3,14),REF(ZIG(3,14),1)),LOW*1.0001,'★底 '),COLORYELLOW; DRAWTEXT(CROSS(REF(ZIG(3,13),1),ZIG(3,13)),HIGH*1.04,'★頂 '),COLORWHITE; UPQK:=LOW-REF(HIGH,1); STICKLINE(CLOSE>REF(CLOSE,1) AND UPQK>0,REF(HIGH,1),LOW,20,1),COLORFF00FF; DRAWTEXT(CLOSE>REF(CLOSE,1) AND UPQK>0,UPQK/2+REF(HIGH,1),' 向上跳空'),COLORFF00FF; DOWNQK:=REF(LOW,1)-HIGH; STICKLINE(CLOSE<REF(CLOSE,1) AND DOWNQK>0,REF(LOW,1),HIGH,20,1),COLORFFFF00; DRAWTEXT(CLOSE<REF(CLOSE,1) AND DOWNQK>0,DOWNQK/2+HIGH,' 向下跳空'),COLORFFFF00; |
|
來自: xiaoyudi169 > 《我的圖書館》