N:=4;M:=10;LC:=REF((O+H+L+2*C)/5,1);RSI:SMA(MAX(C-LC,0),N,1)/SMA(ABS(C-LC),N,1)*10,LINETHICK1;关注M顶:RSI,COLORWHITE,LINETHICK0;安全度:SMA(MAX(C-LC,0),M,1)/SMA(ABS(C-LC),M,1)*10,COLORFF00FF;超买:8,COLORRED,POINTDOT;牛市:7.1,COLOR00FFFF,POINTDOT;STICKLINE(C,牛市,牛市,6,2),COLOR00FFFF,linethick1;平衡:5,COLORWHITE,POINTDOT;熊市:2.5,COLORCYAN;超卖:2,COLOR00FF00,POINTDOT;PARTLINE(RSI,RSI>8,RGB(255,0,0),RSI8,RGB(255,0,0),安全度8,LINETHICK0;周期:IF(XG,BARSLAST(CROSS(XG,0.1))+1,0),COLORFF00FF,POINTDOT,LINETHICK0; XG2:RSI0 ,LINETHICK0;CXH:=STRTONUM(STRRIGHT(DATESTR(CURRENTDATE),1));WARNING('',CURRENTTIME>180000 and (CXH=1 OR CXH=6)); DRAWTEXTREL(10 ,10 ,'');