通达信贺礼 迎将 更上层楼势RSI副图源码+图示
RRS1:=SMA(MAX((C+L)/2-REF(C,1),0),3,1)*50;
RS1:=SMA(MAX((C+H)/2-REF(C,1),0),3,1)*50;
RS2:=SMA(ABS(C-REF(C,1)),3,1)*50;
RS3:=SMA(MAX(C-REF(C,1),0),3,1)*50;
RSI1:(RRS1*4)-(RS2),COLORWHITE;
RSI2:(RS3*4)-(RS2),COLORBLUE;
RSI3:IF((RS2/4)-(RS1)>RSI1,(RS2/4)-(RS1),DRAWNULL),COLOR0055FF;
DRAWBAND(RSI3,RGB(250,90,0),RSI1,RGB(250,90,0));
DRAWBAND(RSI1,RGB(250,250,250),RSI1,RGB(250,250,250));
DRAWBAND(RSI2,RGB(0,0,250),RSI2,RGB(0,0,250));
RSI4:(RS2/4)-(RS1),COLORFFFF00;
556511999.jpg
|