通达信“止损线”条件选股公式

[复制链接]
查看128 | 回复0 | 2021-8-21 01:45:17 | 显示全部楼层 |阅读模式

以下是通达信“止损线”条件选股公式(无源码的请下载附件导入)

FL:=MA(CLOSE,15)+ABS(MA(CLOSE,15)-REF(MA(CLOSE,15),1)),COLORWHITE;
 FS:=MA(CLOSE,15)+MA(CLOSE,15)-REF(MA(CLOSE,15),1),COLORWHITE;
 BB:=IF(MA(CLOSE,5)<FS,FS,MA(CLOSE,5)),COLORWHITE;
 NX:=EMA(C,250);
 A:=BB-(EMA(C,3)-BB),COLORWHITE;
 DIFF:=EMA((NX-(EMA(C,3)-NX)),5),LINETHICK2;
止损线:=EMA(COST(60),10) COLORRED,LINETHICK2;
牛熊线:=EMA(COST(27),120);
 XG1:=CROSS(BB,DIFF);

超准:=EMA(C,26);
超级趋势线2:=PLOYLINE(MA(C,3)>超准,超准);
超级趋势线:=PLOYLINE(MA(C,3)<超准,超准);
XG2:=超级趋势线>超级趋势线2;

 XG3:=O>REF(H,1) AND O/REF(C,1)>1.04 AND C>O AND V/CAPITAL*100>5 AND C/REF(C,1)>1.03;

 XG4:=C>MA(C,5) AND C>MA(C,10) AND C>MA(C,20) AND C>MA(C,60) AND C>MA(C,120);

 XG5:=(ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926)>60 AND IF(CODELIKE('300'),0,1) AND IF(NAMELIKE('S'),0,1) AND IF(NAMELIKE('*'),0,1) AND DYNAINFO(4)>0 AND H>L;

 XG6:=XG1 AND XG2 AND XG3 AND XG4 AND XG5;

 XG7:=V/MA(V,5)>=1 AND V/CAPITAL*100>15 AND C/REF(C,1)>1.03;

 XG8:=MA(C,60)>MA(C,120) AND (ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926)>60 AND IF(CODELIKE('300'),0,1) AND IF(NAMELIKE('S'),0,1) AND IF(NAMELIKE('*'),0,1) AND DYNAINFO(4)>0 AND H>L;

 XG9:=XG1 AND XG2 AND XG7 AND XG8;

 XG10:=O>REF(H,1) AND O/REF(C,1)>1.04 AND C>O AND V/MA(V,5)>=1 AND V/CAPITAL*100>3 AND C/REF(C,1)>1.03;

 XG11:=MA(C,60)>MA(C,120) AND IF(CODELIKE('300'),0,1) AND IF(NAMELIKE('S'),0,1) AND IF(NAMELIKE('*'),0,1) AND DYNAINFO(4)>0 AND H>L;

 XG12:=COUNT(XG1,2)>=1 AND XG2 AND XG4 AND XG10 AND XG11;

 XG6 OR XG9 OR XG12;
 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则