N1:=6; N2:=6; N3:=24; 趨勢1:SMA(((CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100),3,1); DRAWBAND(趨勢1,RGB(255,48,48),80,RGB(0,255,0)); STICKLINE(C>0,80,20,10,0),COLOR000000;{20~80之間不填色} 趨勢:趨勢1,COLORYELLOW; 強:IF(趨勢>50,趨勢,DRAWNULL),COLORRED,LINETHICK2; 弱:IF(趨勢<50,趨勢,DRAWNULL),COLORGREEN,LINETHICK2; 超賣:20,LINETHICK2; 50,LINETHICK2; 超買:80,COLORYELLOW,LINETHICK2; LC:=REF(CLOSE,1); rsi3:SMA(MAX(CLOSE-LC,0),N3,1)/SMA(Abs(CLOSE-LC),N3,1)*100,COLORYELLOW,LINETHICK2; DRAWBAND(RSI3,RGB(155,50,50),50,RGB(0,100,50)); RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100; {RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,COLORWHITE,LINETHICK2;} DRAWICON(crOSS(趨勢1,20),20,1); DRAWTEXT(CROSS(趨勢1,20),REF(趨勢1,1),'機會'),COLORYELLOW; DRAWICON(CROSS(80,趨勢1),80,2); DRAWTEXT(CROSS(80,趨勢1),REF(趨勢1,1),'風險'),COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR,0.68,0.2,1,' ★50線分強弱,背離注意,注意短線風險和機會★ '),COLORFFFF00;
|