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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 这个股票改下选股预警公式


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

以下是这个股票改下选股预警公式

AA05:=MA(C,5);
五日乖离率:=(C-AA05)/AA05*100;
BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;
速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);
加速度5:=EMA((速度5-REF(速度5,1)),3);
AA10:=MA(C,10);
AA20:=MA(C,20);
BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416;
AA30:=MA(C,30);
三拾日乖离率:=(C-AA30)/AA30*100;
BB30:=ATAN((AA30/REF(AA30,1)-1)*100)*180/3.1416;
强势狙击选股:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10);
加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND AA05>REF(AA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA10>REF(AA10,1)
AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;
TJ1:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<AA30;
TJ2:=MAX(MAX(MA(C,3),MA(C,7)),MA(C,17))>=MA(C,7) AND MAX(MAX(MA(C,3),MA(C,7)),MA(C,17))/MIN(MIN(MA(C,3),MA(C,7)),MA(C,17))<=1.15 AND EVERY(MA(C,17)>=REF(MA(C,17),1),3);
TJ3:=EVERY(EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4)>=REF(EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4),1),2);
M:=(C-MA(C,5))/MA(C,5)*100;
B:(TJ1 AND TJ2)*10 AND M<=5, COLORRED,NODRAW;
S1:=C/REF(C,BARSLAST(B>0))>=1.10 OR CROSS(0,CQX.CQX) OR BARSLAST(B>0)>9 OR (CQX.CQX<0 AND C/REF(C,BARSLAST(B>0))<=0.95);
S:CROSS(COUNT(S1,BARSLAST(B))=1,0.5), COLORGREEN,NODRAW;
STICKLINE(B>0,0,100,4,0)COLORRED;
STICKLINE(S>0,0,100,4,0) COLORGREEN;
================================================================

AA05:=MA(C,5);
五日乖离率:=(C-AA05)/AA05*100;
AA30:=MA(C,30);
三拾日乖离率:=(C-AA30)/AA30*100;
TJ1:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<AA30;
TJ2:=MAX(MAX(MA(C,3),MA(C,7)),MA(C,17))>=MA(C,7) AND MAX(MAX(MA(C,3),MA(C,7)),MA(C,17))/MIN(MIN(MA(C,3),MA(C,7)),MA(C,17))<=1.15 AND EVERY(MA(C,17)>=REF(MA(C,17),1),3);
M:=(C-MA(C,5))/MA(C,5)*100;
B:=(TJ1 AND TJ2)*10 AND M<=5;
XG:B>0;



回复

举报

QQ|

GMT+8, 2024-11-18 02:31

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