把两个选股公式改成一个
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个
选股票看什么指标最好 >股票指标网
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个
编写要求:
条件是:两个选股公式同时有信号才出现的选股公式。抓牛股源码: VAR1:=999; VAR2:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1); VAR3:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1); VAR4:=IF(VAR2>0.01,0.9,IF(VAR2>0.01,1,1.2)); VAR5:=VAR4*(VAR3-VAR2)*100; VAR6:=SUM(VAR5,25)+SUM(VAR5,10)+SUM(VAR5,5); XG:VAR6>50 AND COUNT(VAR6>50,10)=1;超牛股源码: BARSLAST(NOT((H-L)/REF(C,1)<0.1)) AND VOL>REF(VOL,1)*2 AND C>REF(C,1)*1.03 AND "DMI.PDI">"DMI.MDI" AND CROSS("DMI.ADX","DMI.ADXR") AND"DMI.ADXR">"DMI.MDI" AND "DMI.PDI">"DMI.ADX" AND"KDJ.D">REF("KDJ.D",1);
解答:
VAR1:=999;
VAR2:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1);
VAR3:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1);
VAR4:=IF(VAR2>0.01,0.9,IF(VAR2>0.01,1,1.2));
VAR5:=VAR4*(VAR3-VAR2)*100;
VAR6:=SUM(VAR5,25)+SUM(VAR5,10)+SUM(VAR5,5);
XG1:=VAR6>50 AND COUNT(VAR6>50,10)=1;
XG2:=BARSLAST(NOT((H-L)/REF(C,1)<0.1)) AND VOL>REF(VOL,1)*2 AND C>REF(C,1)*1.03
AND "DMI.PDI">"DMI.MDI" AND CROSS("DMI.ADX","DMI.ADXR")
AND"DMI.ADXR">"DMI.MDI" AND "DMI.PDI">"DMI.ADX" AND"KDJ.D">REF("KDJ.D",1);
XG1 AND XG2;
选股票看什么指标最好 >股票指标网
精彩评论