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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信异动擒妖选股指标公式源码


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

D1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
D2:=IF(CLOSE>OPEN,CLOSE,OPEN);
D3:=IF(CLOSE>OPEN,OPEN,CLOSE);
D4:=LLV(D2,4);
D5:=HHV(D3,4);
D6:=D2>=D4 AND D3<=D4 AND D2>=D5 AND D3<=D5;
D7:=REF(D2,1)>=D4 AND REF(D3,1)<=D4 AND REF(D2,1)>=D5 AND REF(D3,1)<=D5;
D8:=REF(D2,2)>=D4 AND REF(D3,2)<=D4 AND REF(D2,2)>=D5 AND REF(D3,2)<=D5;
D9:=REF(D2,3)>=D4 AND REF(D3,3)<=D4 AND REF(D2,3)>=D5 AND REF(D3,3)<=D5;
D10:=D6 AND D7 AND D8 AND D9;
D11:=REF(D5,BARSLAST(D10));
D12:=D11=REF(D11,1);
D13:=BARSLAST(NOT(D12));
D14:=REF(D11,D13+2);
D15:=(REF(OPEN,5)+REF(CLOSE,5))/2;
D16:=(HIGH+LOW+CLOSE+OPEN)/4;
D17:=MAX(D15,MAX(D16,HHV(HIGH,5)));
D18:=MIN(D15,MIN(D16,LLV(LOW,5)));
D19:=D17=D15;
D20:=D19;
ZB:=NOT(CODELIKE('4'));
GS:=NOT(CODELIKE('688'));
DC:=IF(NAMELIKE('S'),0,1);
DCZ:=IF(NAMELIKE('*'),0,1);
DCZ8:=NOT(CODELIKE('8'));
DC8:=ZB AND DC AND GS AND DCZ AND DCZ8;
D21:=REF(D17,BARSLAST(D20));
D22:=D21=REF(D21,1);
D23:=BARSLAST(NOT(D22));
D24:=REF(D21,D23+2);
D25:=HHV(HIGH,120);
D26:=LLV(LOW,120);
D27:=(D25-D26)/2*189/100+D26/1.0618;
D28:=D27*0.8;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=(DIF-DEA)*2;
XG:=MACD>0;
T1:=C>REF(C, 1)AND V> REF(V, 1);
T2:=C< REF(C, 1)AND V< REF(V, 1);
XG1:=REF(T1, 1)AND T2;
异动:=D18>=D26 AND D17>D11 AND D17>D14 AND D17>D24 AND D17>D28 AND D17>D21 AND CLOSE>MA(CLOSE,60) AND C>3;
异动擒妖:REF(异动< 1,1) AND 异动 AND XG AND T1 AND DC8;





回复

举报

QQ|

GMT+8, 2024-11-13 07:07

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