N 1.00 200.00 10.00 STEP 1.00 200.00 2.00 MAXP 5.00 100.00 20.00 {AZQ} {主圖指標}
VAR0:=(SAR(N,STEP,MAXP)); STICKLINE((C >= (VAR0)) AND (C < O),C,O,2.9,1),COLORRED; STICKLINE((C >= (VAR0)) AND (C < O),C,O,2.5,0),COLORRED; STICKLINE((C >= (VAR0)) AND (C < O),C,L,0,0),COLORRED; STICKLINE((C >= (VAR0)) AND (C < O),H,O,0,0),COLORRED; STICKLINE((C >= (VAR0)) AND (C > O),C,H,0,0),COLORRED; STICKLINE((C >= (VAR0)) AND (C > O),L,O,0,0),COLORRED; STICKLINE((C >= (VAR0)) AND (C = O),L,H,0,0),COLORRED; STICKLINE((C < (VAR0)) AND (C > O),C,O,2.9,1),COLORGREEN; STICKLINE((C < (VAR0)) AND (C > O),C,H,0,0),COLORGREEN; STICKLINE((C < (VAR0)) AND (C > O),L,O,0,0),COLORGREEN; STICKLINE((C < (VAR0)) AND (C < O),C,L,0,0),COLORGREEN; STICKLINE((C < (VAR0)) AND (C < O),H,O,0,0),COLORGREEN; VAR1:=(BACKSET((REF(H,1)) = (HHV(H,3)),2)); VAR2:=(CROSS(VAR1,0.9)); VAR3:=(BACKSET((REF(L,1)) = (LLV(L,3)),2)); VAR4:=(CROSS(VAR3,0.9)); STICKLINE(C,REF(H,BARSLAST(VAR2)),REF(H,BARSLAST(VAR2)),2,0),COLORRED; STICKLINE(C,REF(L,BARSLAST(VAR4)),REF(L,BARSLAST(VAR4)),2,0),COLORGREEN; DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.98,38) ; DRAWTEXT((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.94,''),COLORBROWN; DRAWICON((ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),HIGH*1.01,39); PL5:=ZIG(3,5); EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3); EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3); PL10:=ZIG(3,10); EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3); EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3); PL20:=ZIG(3,20); EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3); EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3); PL40:=ZIG(3,40); 走強1:=BARSLAST(PL5<REF(PL5,1)); 走弱1:=BARSLAST(PL5>REF(PL5,1)); 走強2:=BARSLAST(PL10<REF(PL10,1)); 走弱2:=BARSLAST(PL10>REF(PL10,1)); 走強3:=BARSLAST(PL20<REF(PL20,1)); 走弱3:=BARSLAST(PL20>REF(PL20,1)); ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走強2),0); ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走強2),0); DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0); DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0); ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走強3),0); ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走強3),0); DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0); DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0); DRAWTEXT(EN3 AND ZTJZ10=1,L*0.93,'★ 神買點'),COLORBROWN; M31:MA(CLOSE,N),LINETHICK2,COLORBROWN; 下降:IF(COUNT(M31<REF(M31,1),3)>=3,M31,DRAWNULL),LINETHICK2,COLORGREEN; 上升:IF(COUNT(M31>REF(M31,1),3)>=3,M31,DRAWNULL),LINETHICK2,COLORRED; DRAWICON(CURRBARSCOUNT=31,H*1.03,35),LINETHICK6; STICKLINE(ISLASTBAR,HHV(C,5),HHV(C,5),218,1)COLORBLUE; STICKLINE(ISLASTBAR,HHV(C,5)*0.95,HHV(C,5)*0.95,218,1)COLORRED; |
|