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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信股灾自救之八反攻痕迹主图选股源码


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

以下是通达信股灾自救之八反攻痕迹主图选股源码

HH:=IF(BETWEEN(DATE,1150601,1150630),H,-999);
T:=HHVBARS(HH,0);
TT:=BARSLAST(L=LLV(L,T+1));
T1:=BARSLAST(CURRBARSCOUNT=CONST(TT)+1);
XL:=REFX(L,BARSNEXT(T1=0));
QF:=BACKSET(T1=0,T+1);
GG:=IF(QF,H,-999);
GT:=BARSLAST(GG>REF(GG,1) AND GG>CONST(REF(GG,T1)));
G1:=REF(GG,GT);
G2T:=BARSLAST(GG>REF(GG,1) AND GG>CONST(G1));
G2:=REF(GG,G2T);
G3T:=BARSLAST(GG>REF(GG,1) AND GG>CONST(G2));
G3:=REF(GG,G3T);
G4T:=BARSLAST(GG>REF(GG,1) AND GG>CONST(G3));
G4:=REF(GG,G4T);
高位价:DRAWLINE(CURRBARSCOUNT=CONST(T)+1,HH,ISLASTBAR,REF(HH,T),0),COLORYELLOW;
DRAWLINE(CURRBARSCOUNT=CONST(G4T)+1 AND CONST(G4T)<CONST(T),G4,ISLASTBAR,G4,0),DOTLINE,COLORWHITE;
DRAWLINE(CURRBARSCOUNT=CONST(G3T)+1 AND CONST(G3T)<CONST(T),G3,ISLASTBAR,G3,0),DOTLINE,COLORBLUE;
DRAWLINE(CURRBARSCOUNT=CONST(G2T)+1 AND CONST(G2T)<CONST(T),G2,ISLASTBAR,G2,0),DOTLINE,COLORGREEN;
DRAWLINE(CURRBARSCOUNT=CONST(GT)+1 AND CONST(GT)<CONST(T),G1,ISLASTBAR,G1,0),DOTLINE,COLORMAGENTA;
低位价:DRAWLINE(CURRBARSCOUNT=CONST(T)+1,XL,ISLASTBAR,REF(L,T1),0),COLORRED;


还是写一个选股吧 这是上穿最后防线也就是玫红色的选股 您需要绿色 白色可参照修改


HH:=IF(BETWEEN(DATE,1150601,1150630),H,-999);
T:=HHVBARS(HH,0);
TT:=BARSLAST(L=LLV(L,T+1));
T1:=BARSLAST(CURRBARSCOUNT=CONST(TT)+1);
XL:=REFX(L,BARSNEXT(T1=0));
QF:=BACKSET(T1=0,T+1);
GG:=IF(QF,H,-999);
GT:=BARSLAST(GG>REF(GG,1) AND GG>CONST(REF(GG,T1)));
G1:=REF(GG,GT);
CROSS(C,G1);





回复

举报

QQ|

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

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