N1:=6; N2:=6; N3:=24; 趨勢(shì)1:SMA(((CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100),3,1); DRAWBAND(趨勢(shì)1,RGB(255,48,48),80,RGB(0,255,0)); STICKLINE(C>0,80,20,10,0),COLOR000000;{20~80之間不填色} 趨勢(shì):趨勢(shì)1,COLORYELLOW; 強(qiáng):IF(趨勢(shì)>50,趨勢(shì),DRAWNULL),COLORRED,LINETHICK2; 弱:IF(趨勢(shì)<50,趨勢(shì),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(趨勢(shì)1,20),20,1); DRAWTEXT(CROSS(趨勢(shì)1,20),REF(趨勢(shì)1,1),'機(jī)會(huì)'),COLORYELLOW; DRAWICON(CROSS(80,趨勢(shì)1),80,2); DRAWTEXT(CROSS(80,趨勢(shì)1),REF(趨勢(shì)1,1),'風(fēng)險(xiǎn)'),COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR,0.68,0.2,1,' ★50線分強(qiáng)弱,,背離注意,,注意短線風(fēng)險(xiǎn)和機(jī)會(huì)★ '),COLORFFFF00;
|