股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

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


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2023-10-9 11:53:41

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

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;



回复

举报

QQ|

GMT+8, 2024-11-18 19:49

快速回复 返回顶部 返回列表