通达信十字共震指标公式
N:=5;
N2:=3;
LC:=REF(CLOSE,1);
RSI1:=(SMA(MAX(CLOSE-LC,0),N2,1))/(SMA(ABS(CLOSE-LC),N2,1))*100;
RSI2:=(SMA(MAX(CLOSE-LC,0),N4,1))/(SMA(ABS(CLOSE-LC),N4,1))*100;
DRAWICON(RSI1》RSI2,3,1);
DRAWICON(RSI1《RSI2,3,2);
DRAWTEXT(ISLASTBAR=1,3,‘.RSI’),COLORFFFFFF;
A3:=RSI1》RSI2;
RSV:=-(HHV(HIGH,N4)-CLOSE)/(HHV(HIGH,N4)-LLV(LOW,N4))*100;
LWR1:=SMA(RSV,N1,1);
LWR2:=SMA(LWR1,N1,1);
DRAWICON(LWR1》LWR2,4,1);
DRAWICON(LWR1《LWR2,4,2);
DRAWTEXT(ISLASTBAR=1,4,‘.LW&R’),COLORFFFFFF;
A4:=LWR1》LWR2;
BBI:=(MA(CLOSE,N1)+MA(CLOSE,N2)+MA(CLOSE,N3)+MA(CLOSE,N4))/4;
DRAWICON(CLOSE》BBI,5,1);
DRAWICON(CLOSE《BBI,5,2);
DRAWTEXT(ISLASTBAR=1,5,‘.BBI’),COLORFFFFFF;
A5:=CLOSE》BBI;
MTM:=CLOSE-REF(CLOSE,1);
MMS:=100*EMA(EMA(MTM,N2),N1)/EMA(EMA(ABS(MTM),N2),N1);
MMM:=100*EMA(EMA(MTM,N4),N3)/EMA(EMA(ABS(MTM),N4),N3);
DRAWICON(MMS》MMM,6,1);
DRAWICON(MMS《MMM,6,2);
DRAWTEXT(ISLASTBAR=1,6,‘.ZLMM’),COLORFFFFFF;
A6:=MMS》MMM;
BIAS:=(C-MA(C,N2))/MA(C,N2);
(股票知识网zhishi.southmoney.com)
要闻导读
|
||||||||||
|