N1:=7;N2:=250;N3:=21;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,COLORFF901E;
RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100,COLOR00FFFF;
RSI3:=SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100,COLORDA70D6;
{ 爱约股_通达信股票指标公式}
DRAWBAND(RSI1,RGB(255,143,143),50,RGB(136,136,238));
DRAWBAND(RSI2,RGB(200,50,150),50,RGB(10,100,80));
DRAWBAND(RSI3,RGB(204,0,0),50,RGB(102,204,102));
快线:RSI1,COLOR8F8FFF,LINETHICK1;
中:RSI2,COLORDA70D6;
强弱:RSI3,COLOR0000CC,LINETHICK1;
高抛:75,DOTLINE,COLORRED;
持有:50,DOTLINE,COLORYELLOW;
低吸:25,DOTLINE,COLORGREEN;

 

通达信RSI彩带指标公式