公式网 股票指标公式源码分享 登录 注册
公式指标网
未来函数检测
首页 金钻指标 通达信公式 大智慧公式 同花顺公式 文华财经公式 东财通公式 飞狐公式 操盘手公式 其他公式 公式解答 股票软件 股票池
当前位置:→ 公式网 > 公式解答 > 正文 → 正文

将“满仓买入”改为选股

发布时间:2015/6/15 7:02:20  浏览次数:

编写要求:

(102 KB) {参数描述: N(2,50,6)LH(5,100,80)} VAR1:=REF(CLOSE,1); VAR2:=SMA(MAX(CLOSE-VAR1,0),18,1)/SMA(ABS(CLOSE-VAR1),13,1)*100; VAR3:=SMA(MAX(CLOSE-VAR1,0),24,1)/SMA(ABS(CLOSE-VAR1),20,1)*100; VAR4:=BARSLAST(VAR3<48)<=3 AND CROSS(VAR2,VAR3); VAR5:=(CLOSE-MA(CLOSE,48))/MA(CLOSE,20)*100<-12.5; VAR6:=LLV(LOW,5); VAR7:=HHV(HIGH,10); VAR8:=EMA((CLOSE-VAR6)/(VAR7-VAR6)*100,4); VAR9:=EMA(0.667*REF(VAR8,1)+0.333*VAR8,2); VARA:=1011131; VARB:=IF(DATE<=VARA,VAR5,0) OR IF(DATE<=VARA,LH,0); 低吸: 0-(-1)*VAR4 AND VAR5 AND CROSS(VAR8,VAR9) AND VAR8<=25; DRAWTEXT(低吸>0,0.9,'★低吸'), , ; VARC:=REF(CLOSE,1); VARD:=SMA(MAX(CLOSE-VARC,0),7,1)/SMA(ABS(CLOSE-VARC),7,1)*100; VARE:=SMA(MAX(CLOSE-VARC,0),13,1)/SMA(ABS(CLOSE-VARC),13,1)*100; VARF:=BARSLAST(VARE<43)<=3 AND CROSS(VARD,VARE); VAR10:=(CLOSE-MA(CLOSE,43))/MA(CLOSE,20)*100<-12.5; VAR11:=LLV(LOW,5); VAR12:=HHV(HIGH,10); VAR13:=EMA((CLOSE-VAR11)/(VAR12-VAR11)*100,4); VAR14:=EMA(0.667*REF(VAR13,1)+0.333*VAR13,2); VAR15:=1011131; VAR16:=IF(DATE<=VAR15,VAR10,0) OR IF(DATE<=VAR15,LH,0); 机会难得: 0-(-1)*VARF AND VAR10 AND CROSS(VAR13,VAR14) AND VAR13<=25,COLORFFFF00; DRAWTEXT(机会难得>0,0.7,'★机会难得'), , ; VAR17:=REF(CLOSE,1); VAR18:=SMA(MAX(CLOSE-VAR17,0),7,1)/SMA(ABS(CLOSE-VAR17),7,1)*100; VAR19:=SMA(MAX(CLOSE-VAR17,0),13,1)/SMA(ABS(CLOSE-VAR17),13,1)*100; VAR1A:=BARSLAST(VAR19<33)<=3 AND CROSS(VAR18,VAR19); VAR1B:=(CLOSE-MA(CLOSE,33))/MA(CLOSE,20)*100<-12.5; VAR1C:=LLV(LOW,5); VAR1D:=HHV(HIGH,10); VAR1E:=EMA((CLOSE-VAR1C)/(VAR1D-VAR1C)*100,4); VAR1F:=EMA(0.667*REF(VAR1E,1)+0.333*VAR1E,2); VAR20:=1011131; VAR21:=IF(DATE<=VAR20,VAR1B,0) OR IF(DATE<=VAR20,LH,0); 难得一见: 0-(-1)*VAR1A AND VAR1B AND CROSS(VAR1E,VAR1F) AND VAR1E<=25,COLORMAGENTA , ; DRAWTEXT(难得一见>0,0.5,'★难得一见'), , ; VAR22:=REF(CLOSE,1); VAR23:=SMA(MAX(CLOSE-VAR22,0),7,1)/SMA(ABS(CLOSE-VAR22),7,1)*100; VAR24:=SMA(MAX(CLOSE-VAR22,0),13,1)/SMA(ABS(CLOSE-VAR22),13,1)*100; VAR25:=BARSLAST(VAR24<23)<=3 AND CROSS(VAR23,VAR24); VAR26:=(CLOSE-MA(CLOSE,23))/MA(CLOSE,20)*100<-12.5; VAR27:=LLV(LOW,5); VAR28:=HHV(HIGH,10); VAR29:=EMA((CLOSE-VAR27)/(VAR28-VAR27)*100,4); VAR2A:=EMA(0.667*REF(VAR29,1)+0.333*VAR29,2); VAR2B:=1011131; VAR2C:=IF(DATE<=VAR2B,VAR26,0) OR IF(DATE<=VAR2B,LH,0); 满仓买入: 0-(-1)*VAR25 AND VAR26 AND CROSS(VAR29,VAR2A) AND VAR29<=25,COLORGREEN ,; DRAWTEXT(满仓买入>0,0.3,'★满仓买入'), , ;

公式在线网解答:

 VAR22:=REF(CLOSE,1);

VAR23:=SMA(MAX(CLOSE-VAR22,0),7,1)/SMA(ABS(CLOSE-VAR22),7,1)*100;
VAR24:=SMA(MAX(CLOSE-VAR22,0),13,1)/SMA(ABS(CLOSE-VAR22),13,1)*100;
VAR25:=BARSLAST(VAR24<23)<=3 AND CROSS(VAR23,VAR24);
VAR26:=(CLOSE-MA(CLOSE,23))/MA(CLOSE,20)*100<-12.5;
VAR27:=LLV(LOW,5);
VAR28:=HHV(HIGH,10);
VAR29:=EMA((CLOSE-VAR27)/(VAR28-VAR27)*100,4);
VAR2A:=EMA(0.667*REF(VAR29,1)+0.333*VAR29,2);
XG:0-(-1)*VAR25 AND VAR26 AND CROSS(VAR29,VAR2A) AND VAR29<=25;
 
资源下载链接   资源大小:unknow

手机移动版 - 关于我们 - 联系我们 - 广告合作 - 下载声明 - 网站帮助 - 友情链接 - 网站地图 - TOP
湘ICP备09016573号-3 增值电信业务经营ICP许可证:湘B2-20210269 湘公网安备43108102000039号
Copyright © GSZX.COM.CN ,All Rights Reserved.
股票公式,股票指标,股票软件,股票知识