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;

 


声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。