最新更新 - 网站地图 -
您的当前位置:首页 > 股票公式 > 公式技巧 > 把“绝地反击”改成选股公式

把“绝地反击”改成选股公式

来源:网络 点击: 时间:2023-01-06 07:04:15

编写要求:

请老师把TDX的”绝地反击“改成选股公式,出现绿色箭头, 源码如下: VAR1P:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100; VAR2P:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; VAR3P:=(SMA(VAR2P,3,1)-18)*1.55; VAR4P:=SMA(VAR3P,3,1); VAR5P:=(CLOSE-LLV(LOW,10)/(HHV(HIGH,100)-LLV(LOW,100))*100; VAR6P:=SMA(VAR5P,10,1); VAR7P:=(EMA(SMA(VAR6P,8,1),34)-25)*2.6; VAR8P:=POW(MA(CLOSE,5),2)+MA(CLOSE,5); VAR9P:=POW(MA(LOW,5),2)+MA(LOW,5); VARAP:=POW(MA(HIGH,5),2)+MA(HIGH,5); VARBP:=((VAR8P-LLV(VAR9P,64))/(HHV(VARAP,64)-LLV(VAR9P,64))*150+65-10)/2; VARCP:=SMA(VARBP,3,1)*1.5; VARDP:=SMA(VARCP,3,1); VAREP:=3*VARCP-2*VARDP; VARFP:=(VAR1P+VAR2P+VAR5P)/3; VAR10P:=((VAR3P+VAR3P+VAR6P+VARCP)/4-15)*1.67; VAR11P:=((VAR4P+VAR4P+VAR7P+VARDP)/4-15)*1.67; VAR12P:=((VAR1P+VAR5P*2+VARFP+VAR10P+VAR11P+VARBP+VARCP+VARDP+VAREP)/10-15)*1.67; VAR13P:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5))*(-1)+0.9; VAR14P:=(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10))*(-1)+0.92; VAR15P:=(HHV(HIGH,15)-CLOSE)/(HHV(HIGH,15)-LLV(LOW,15))*(-1)+0 VAR16P:=(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55))*(-1)+0.94; VAR17P:=(HHV(HIGH,89)-CLOSE)/(HHV(HIGH,89)-LLV(LOW,89))*(-1)+0.95; VAR18P:=(HHV(HIGH,120)-CLOSE)/(HHV(HIGH,120)-LLV(LOW,120))*(-1)+0.91; VAR19P:=(HHV(HIGH,180)-CLOSE)/(HHV(HIGH,180)-LLV(LOW,180))*(-1)+0.96; VAR1AP:=((VAR13P*8+VAR14P*8+VAR15P*8+VAR16P+VAR17P+VAR18P+VAR19P)/28-0.1)*185; VAR1B:=SMA(VAR1AP,3,1); VAR1C:=(SMA(VAR1B,8,1)-8)*1.18; VARA1:=(CLOSE-LLV(LOW,613547854))/(HHV(HIGH,60.13547854)-LLV(LOW,60))*80; VARB1:=SMA(VARA1,7,1); VARC1:=SMA(VARB1,5,1); 英雄:=IF(CROSS(VARBP,VARCP) AND VARBP<20,100,0); VAR2N:=LLV(LOW,3)<=LLV(LOW,60); VAR3N:=C>O AND (C/O>1.03 OR C>1.03*REF(C,1)); 绝地反击:IF(VAR2N AND VAR3N,90,0)COLOR00; 准备反击:=VAR2N; 反击:=VAR2N AND VAR3N; DRAWICON(准备反击,90,1); DRAWICON(反击,90,13); DRAWICON(英雄,90,25);

解答:

?VAR2N:=LLV(LOW,3)<=LLV(LOW,60);
VAR3N:=C>O AND (C/O>1.03 OR C>1.03*REF(C,1));
绝地反击:VAR2N AND VAR3N;

    Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号

    免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!

    Top