波段介入副圖公式
N:=20; RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:SMA(RSV,3,1),COLORWHITE; D:SMA(K,3,1),COLORYELLOW; J:3*K-2*D,COLORMAGENTA; 跟進(jìn):IF(CROSS(K,D) OR CROSS(REF(K,1),REF(D,1)) OR CROSS(REF(K,2),REF(D,2)),10,0),COLORYELLOW; 頂:=HHV(J,21),COLORRED,LINETHICK1; 底:=LLV(J ,21),COLORGREEN ; 轉(zhuǎn)下:IF(REF(頂,1)=REF(J,1) AND 頂>J,頂,DRAWNULL),COLORGREEN,POINTDOT,LINETHICK6; 轉(zhuǎn)上:IF(REF(底,1)=REF(J,1) AND 底<J,底,DRAWNULL),COLORRED ,POINTDOT,LINETHICK6; TYP:=(HIGH+LOW+CLOSE)/3; J負(fù):IF(J<0,50,0),COLORRED,LINETHICK2; 零軸:=0,LINETHICK1,COLORWHITE; 超買:=100,LINETHICK1,COLORGREEN; CCI14:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),COLORLIBLUE; CCI到位:IF(CCI14<-200,44,0),COLORWHITE,LINETHICK2; BOLL:=MA(CLOSE,N); UPPER:=BOLL+2*STD(CLOSE,N); LOWER:=BOLL-2*STD(CLOSE,N); CC:=C<=LOWER; BOLL到位:STICKLINE(CC,40,30,2,0),COLORBLUE; VAR11:=LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04; VAR22:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2; 買入:=VAR11 AND VAR22; VAR3:=REF(CLOSE,1); VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100; 賣出:=CROSS(80,VAR4); {波段介入點} A1:=REF(CLOSE,2); A2:=SMA(MAX(CLOSE-A1,0),7,1)/SMA(ABS(CLOSE-A1),7,1)*100; 準(zhǔn)備:IF(A2<19,45,0),COLORMAGENTA; VAR51:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100; VAR52:=SMA(VAR51,3,1); VAR53:=SMA(VAR52,3,1); VAR54:=SMA(VAR53,3,1); 波:= VAR53; 段:= VAR54; VAR5:=CROSS(VAR53,VAR54) AND VAR53<20; DRAWTEXT(FILTER(VAR5,10)=1,40,'逢低吸納'),COLORYELLOW; STICKLINE(FILTER(VAR5,10)=1,0,30,3,0),COLORRED; VAR9:=CROSS(VAR54,VAR53) AND VAR53>80; STICKLINE(FILTER(VAR9,5)=1,80,100,3,0),COLORGREEN; DRAWTEXT(FILTER(VAR9,5)=1,70,'減倉'),COLOR00FF00; VAR8:=CROSS(VAR52,VAR53) AND VAR53>80 AND VAR53>VAR54; STICKLINE(VAR8,85,100,3,0),COLOR0099FF; CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)); MA1:=MA(CLOSE,5); CCI到:=CCI<-200 AND J<0 AND CLOSE<LOWER AND CLOSE<MA1/1.1; 陽買: IF(CCI到,20,0),COLORBROWN; RSV1:=(CLOSE - LLV(LOW,18))/(HHV(HIGH,18) - LLV(LOW,18))*100; K1:=EMA(RSV1,3); D1:=EMA(K1,3); J1:=(3*K1-2*D1); KDJ1:=REF(COUNT(J1<REF(J1,1),5)>=3,1) AND REF(J1,1)<20; KDJ2:=J1>REF(J1,1); 反轉(zhuǎn):IF(FILTER(KDJ1 AND KDJ2,3),50,0),COLORRED,LINETHICK1.5; 買:IF(CROSS(J,2),30,0),COLORYELLOW,LINETHICK1.5;
|