工作線:(EMA(C,17)); VARS1:=(HIGH+LOW+OPEN+2*CLOSE)/5; VARS2:=REF(VARS1,1); VARS3:=SMA((CLOSE-VARS2),6,1)/SMA(ABS(CLOSE-VARS2),6,1)*100; VARS4:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100; VARS5:=EMA(0.667*REF(VARS4,1)+0.333*VARS4,5); VARS6:=IF(VOL>=1.3*MA(VOL,5) AND COUNT(VARS4>=VARS5 AND VARS4<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0); VARS7:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100; VARS8:=SMA(MAX(VARS1-VARS2,0),10,1)/SMA(ABS(VARS1-VARS2),10,1)*100; VARS9:=IF(COUNT(VARS8<20,5)>=1 AND COUNT(VARS1=LLV(VARS1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0); DRAWTEXT(FILTER(REF(VARS3,1)>81 AND VARS3<80 OR CROSS(82,VARS7),5),HIGH+0.1,'↓賣'),COLORGREEN; DRAWTEXT(FILTER(VARS9 OR VARS6,5),LOW-0.2,'↑買'),COLORRED; A7:=C-REF(C,1)*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.1,'↖回調(diào)'),COLORYELLOW; STICKLINE(買,H,L,2,1),COLOR00CCFF; STICKLINE(買,O,C,6,1),LINETHICK2,COLOR00CCFF; STICKLINE(((C >= 工作線) AND (C >= O) AND FILTER(買=1,5)),H,L,0.5,0),COLORYELLOW; STICKLINE((C >= 工作線) AND (C >= O) AND OPEN<CLOSE AND OPEN < 工作線 ,OPEN ,CLOSE,5,0 ),COLORRED; VL:=REF(LOW,1); VAR12:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100; VAR14:=MA(VAR12,13); VAR15:=LLV(LOW,34); VAR18:=EMA(IF(LOW<=VAR15,VAR14,0),3); VAR110:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1); VAR111:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-VAR110*10.9; T:=FILTER(IF(VAR111<=VAR110 AND VAR18>REF(VAR18,1),VAR18*8,0),20); TT:=IF(T ,50 ,0 ); DRAWTEXT(TT,LOW-0.2,'←洗盤結(jié)束'),COLORFF00FF; VAR21:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100; VAR22:=SMA(VAR21,3,1); VAR23:=SMA(VAR22,3,1); VAR24:=SMA(VAR23,3,1); VAR25:=CROSS(VAR23,VAR24) AND VAR23<20; DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.2,'←抄底'),COLORRED; VVVAR8:=3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1); VVVAR9:=IF(VVVAR8>90,50,100); VVVAR10:=FILTER(CROSS(VVVAR9,VVVAR8),4); DRAWTEXT (VVVAR10,HIGH+0.2,'落袋'),COLORWHITE; STICKLINE(FILTER(CROSS(VVVAR9,VVVAR8),4) ,OPEN ,CLOSE,3,0 ),COLORGREEN; VAR11:=3; VAR222:=((3 * SMA((((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) * 100),5,1)) - (2 * SMA(SMA((((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) * 100),5,1),3,1))); 大賺小賠:=IF(CROSS(VAR222,VAR11),1,0); DRAWTEXT(大賺小賠,LOW-0.35,'大賺小賠'),COLORFFFFFF; |
|