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),RSI<=2,RGB(241,225,22)),LINETHICK4;
PARTLINE(安全度,安全度>8,RGB(255,0,0),安全度<=2,RGB(0,255,0)),LINETHICK2;
XG:RSI>8,LINETHICK0;
周期:IF(XG,BARSLAST(CROSS(XG,0.1))+1,0),COLORFF00FF,POINTDOT,LINETHICK0;
XG2:RSI<2,LINETHICK0;
周期1:IF(XG2,BARSLAST(CROSS(XG2,0.1))+1,0),COLORFF00FF,POINTDOT,LINETHICK0;
XG3:周期1<=3 AND 周期1>0 ,LINETHICK0;