N:=10;頂:LLV(L,N),COLORMAGENTA,LINETHICK1,DOTLINE;底:HHV(H,N),COLORLIGREEN,LINETHICK1,DOTLINE;
A:=HHV(HIGH,6)=HIGH AND HIGH>REF(HIGH,1);A1:=FILTER(A,5); TS1:=BARSLAST(A1); 短期壓力:REF(HIGH,TS1),COLORFF00FF,NODRAW; STICKLINE(1,短期壓力,短期壓力,7,0),COLORFF00FF; TJ0:=REF(C,1)<REF(短期壓力,1) AND C>REF(短期壓力,1); DRAWICON(TJ0,L,25); B:=HHV(HIGH,21)=HIGH AND HIGH>REF(HIGH,1);B1:=FILTER(B,20); TS2:=BARSLAST(B1); 中期壓力:REF(HIGH,TS2) ,COLORCYAN, NODRAW; STICKLINE(1,中期壓力,中期壓力,7,0),COLORCYAN; TJ:=REF(C,1)<REF(中期壓力,1) AND C>REF(中期壓力,1); DRAWICON(TJ,L,34); CC:=HHV(HIGH,61)=HIGH AND HIGH>REF(HIGH,1);C1:=FILTER(CC,60); TS3:=BARSLAST(C1); 長期壓力:REF(HIGH,TS3),COLORYELLOW,NODRAW; STICKLINE(1,長期壓力,長期壓力,7,0),COLORYELLOW; TJ1:=REF(C,1)<REF(長期壓力,1) AND C>REF(長期壓力,1); DRAWICON(TJ1,L,26);
操作:=MA(C,5); 生命線:HHV(操作,13),LINETHICK1,COLORWHITE;{破此線短逃}; MA(C,5),COLORYELLOW;
DRAWTEXT_FIX(1,0.00,0.00,0,'.'),COLOR00FFFF;回歸斜率線A:=EMA(SLOPE(C,4)*20+C,42);經(jīng)典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; 經(jīng)典K:=SMA(經(jīng)典RL,3,1); 經(jīng)典D:=SMA(經(jīng)典K,3,1); 經(jīng)典J:=3*經(jīng)典K-2*經(jīng)典D; MAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))) /(LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20)))); MAHL2:=IF(EMA(C,2)>回歸斜率線A AND MAHL1>0,EMA(C,3),LLV(EMA((H+L)/2,5),30));{A}MAHL3:=IF(EMA(C,2)>回歸斜率線A AND MAHL1>0,LLV(EMA((H+L)/2,5),30),EMA(C,5)); {A}回歸斜率帶:DRAWBAND(回歸斜率線A,RGB(235,0,230),REF(回歸斜率線A,2),RGB(0,104,154));DRAWKLINE(H,O,L,C);Y:=(MA(C,5)-MA(C,30))/MA(C,5)*100; YY1:=C>MA(C,5) AND OPEN<MA(C,5); YY3:=C>MA(C,10) AND OPEN<MA(C,10);YY5:=C>MA(C,30) AND OPEN<MA(C,30); DRAWTEXT(YY1 AND YY5 AND YY3,LOW-0.2,'←吃定彩虹'),COLORRED;
|