通达信棒棒糖及选股指标公式
通达信顶底买卖指标公式
通达信棒棒糖及选股指标公式:
LC:=REF(CLOSE,1);
rsi1:SMA(MAX(CLOSE-LC,0),6,1)/SMA(Abs(CLOSE-LC),6,1)*100,LINETHICK1,COLORFFFFFF;
RSI2:SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,LINETHICK1,COLORYELLOW;
RSI3:SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100,LINETHICK1,COLORMAGENTA;
wr:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
WR反向:(0-WR)-100,COLORRED;
A2:-3,COLOR0099FF,DOTLINE;
A3:20,COLOR0099FF,DOTLINE;
A4:80,COLORGRAY;
A5:-95,COLORGRAY;
TJ:= crOSS(RSI1,20);
DRAWICON(TJ,RSI1,1);
TJX:=CROSS(RSI1,80);
DRAWICON(TJX,RSI1,2);
RSI买入:stICKLINE(CROSS(RSI1,8),0,50,0,1),COLORMAGENTA;
TJ2:=WR反向<A2 AND REF(WR反向,1)>A2;
DRAWICON(TJ2,WR反向,1);
TJ2X:=WR反向<A5 AND REF(WR反向,1)>A5;
DRAWICON(TJ2X,A5,2);
TJ3:=TJ AND TJ2;
RW买入:STICKLINE(TJ3,0,40,0,1),COLORYELLOW;
DRAWICON(RW买入,50,41);
通达信福气冲天选股指标公式