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);
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!