非常好用的RSI通道幅图公式 源码
特别注意白色河流的位置
M 2 100 12
N 2 50 6
以上参数,自行设置
LC:=REF(C,1);
RS1:SMA(MAX(C-LC,0),12,1)/SMA(ABS(C-LC),12,1)*100;
SM:MA(RS1,20),COLORFF00FF,NODRAW;
SU:SM+2*STD(RS1,20),COLORFFFF00,NODRAW;
SD:SM-2*STD(RS1,20),COLOR00FF00,NODRAW;
ATR:=MA(MAX(MAX((RS1-RS1),ABS(REF(RS1,1)-RS1)),ABS(REF(RS1,1)-RS1)),15);
VM:MA(RS1,6),COLORFF00FF,NODRAW;
VU:VM+2.3*ATR,COLORFFFFFF,NODRAW;
VD:VM-2.1*ATR,COLOR00FFFF,NODRAW;
DRAWBAND(SU,RGB(0,170,140),SD,RGB(0,170,140));
DRAWBAND(VU,RGB(220,220,220),VD,RGB(220,220,220));
MA1:MA(RS1,6),COLOR000000;
MA2:MA(RS1,13),COLORFF0000,LINETHICK2;
RSI:RS1,COLORRED,LINETHICK2;