九毛八公式指标
{RSI彩带} {N1 2 120 7;N2 2 250 14; N3 2 500 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;
公式模块:
N1:=7;N2 :=14; 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; FILLRGN(RSI1,50,RSI1>50,RGB(255,143,143),RSI1<50,RGB(136,136,238)); FILLRGN(RSI2,50,RSI2>50,RGB(200,50,150),RSI2<50,RGB(10,100,80)); FILLRGN(RSI3,50,RSI2>50,RGB(204,0,0),RSI3<50,RGB(102,204,102)); 快线:RSI1,COLOR8F8FFF,LINETHICK1; 中:RSI2,COLORDA70D6; 强弱:RSI3,COLOR0000CC,LINETHICK1; 高抛:75,DOTLINE,COLORRED; 持有:50,DOTLINE,COLORYELLOW; 低吸:25,DOTLINE,COLORGREEN;