编写要求:
解答:
?网友求助:
请老师在下面的通达信公式中上、下位置同时出现向上红色箭头的时候,给写一个选股公式。谢谢了!!!
下面是源码:
N1:=6;N2:=60;D:=3;S:=30;M:=30;
LC:=REF(CLOSE,1);
RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI2:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
W1:=V*100/CAPITAL;
W1>REF(W1,1);
W2:=DYNAINFO(23)-DYNAINFO(22);
W2>REF(W2,1);
BU:=CROSS(RSI1,RSI2);
BU1:=RSI2>50;
BU2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*1000/5;
BU2>REF(RSI2,1);
STICKLINE(BU,OPEN,CLOSE,3.2,0),COLORYELLOW;
DRAWICON(CROSS(RSI1,RSI2),RSI1,1);
SM:=(OPEN+HIGH+CLOSE+LOW)/4;
SMID:=MA(SM,D);
IM:=(INDEXO+INDEXH+INDEXL+INDEXC)/4;
IMID:=MA(IM,D);
SI1:=(SMID-REF(SMID,1))/SMID;
II:=(IMID-REF(IMID,1))/IMID;
RADER1:SUM((SI1-II)*2,S)*100;
RADERMA:=SMA(RADER1,M,1);
XG:W1>REF(W1,1) AND REF(W2,1) AND REF(RSI2,1) AND BU AND BU1 ;
VAR01:=(HIGH+LOW+CLOSE)/3;
VAR02:=(VAR01-MA(VAR01,14))/(0.015*AVEDEV(VAR01,14));
BB: EMA(VAR02,2);
VAR03:=MA(VOL,5);
VAR04:=MA(VOL,10);
VAR05:=MA(VOL,60);
VAR06:=MA(CLOSE,5);
VAR07:=MA(CLOSE,8);
VAR08:=MA(CLOSE,25);
VAR09:=MA(CLOSE,60);
VARA0:=CROSS(VAR02,BB) AND VAR02>80 AND VOL>VAR03 AND VOL>VAR04 AND VOL>VAR05 AND VAR06>VAR09 AND VAR07>VAR09 AND VAR08>VAR09 AND OPEN
DRAWTEXT(VARA0,120,' 上升!'), , COLORYELLOW;
STICKLINE(VARA0,130,-100,1,0), , COLORRED;
底部:=CROSS(BB,-100);
DRAWICON(底部,-100,1);
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!