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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[指标编写] 通达信擒牛回调上车指标公式源码


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

GS1:=EMA((C - REF(C,1)) / REF(C,3),10) * 100;
A2:=EMA(EMA(EMA(EMA(GS1,2),2),2),3);
A3:=(C - MA(C,26)) / MA(C,26) * 100;
A4:=1;
黄金段:IF(MA((C - MA(C,28)) / MA(C,28),3) * 100 < -15,MA((C - MA(C,28)) / MA(C,28),3) * 100,0) * A4,LINETHICK2,COLOR00F600;
A5:IF(MA((C - MA(C,28)) / MA(C,28),3) * 100 > 0 AND MA(C,5) > MA(C,10) AND A3 > EMA(MA((C - MA(C,28)) / MA(C,28),3) * 100,5) AND A2 > REF(A2,1),MA((C - MA(C,28)) / MA(C,28),3) * 100,0) * A4;
龙年起飞1:=MA((C - MA(C,28)) / MA(C,28),3) * 100;
STICKLINE(龙年起飞1 < -20 AND 龙年起飞1> REF(龙年起飞1,1) * A4,龙年起飞1,-6,4,0),COLORC8C8FA;
STICKLINE(龙年起飞1 < -20,龙年起飞1,-6,4,0),COLOR00C8FA;
STICKLINE(龙年起飞1 < -20,0,-6,4,0),COLOR00C800;
STICKLINE(龙年起飞1< -20 AND 龙年起飞1> REF(龙年起飞1,1) * A4,0,-6,4,0),COLOR6464FA;
A6:=(MA(C,3) + MA(C,6) + MA(C,12) + MA(C,24)) / 4;
A7:=A6 + 3 * STD(A6,10);
A8:=MA(C,26) + 2 * STD(C,26);
买点:=(V > 0 AND BARSLASTCOUNT(A5>0)=1 AND A2 > REF(A2,1)) * A5,COLORFF0000,NODRAW;
上车擒牛1:=(V > 0 AND A5 > 0 AND A2 > REF(A2,1)) * EMA(A5,5),COLOR005999;
STICKLINE(上车擒牛1,上车擒牛1,0,2,0),COLORRED ;{红色彩}
上车擒牛2:=(V > 0 AND BARSLASTCOUNT(A5>0)=1 AND crOSS(EMA(C,2),HHV(EMA(C,5),26))) * EMA(A5,2),COLOR000999;
STICKLINE(上车擒牛2,上车擒牛2,0,3,0),COLORWHITE ;{白色彩}
上车擒牛3:=(V > 0 AND BARSLASTCOUNT(A5>0)=1 AND CROSS(EMA(C,2),HHV(EMA(C,5),26))) * -3,COLOR009999;
STICKLINE(上车擒牛3,上车擒牛3,0,6,0),COLORYELLOW;{色彩}
STICKLINE(上车擒牛3,上车擒牛3,0,2,0),COLOR005555;
STICKLINE(上车擒牛3,上车擒牛3,0,1,0),COLOR007777;
STICKLINE(上车擒牛3,上车擒牛3,0,0.2,0),COLOR009999;
快速车道:(V > 0 AND BARSLASTCOUNT(A5>0)=1 AND CROSS(EMA(C,2),HHV(EMA(C,5),26))) * 10 * A4,NODRAW;
上车擒牛4:=(V > 0 AND EMA((C - MA(C,28)) / MA(C,28),2) > MA((C - MA(C,28)) / MA(C,28),4) AND MA((C - MA(C,28)) / MA(C,28),4) > REF(MA((C - MA(C,28)) / MA(C,28),4),1) AND SMA(MAX(C - REF(C,1),0),14,1) / SMA(Abs(C - REF(C,1)),14,1) * 100 > 64.5 AND EMA(C,1) > (A7 OR A8)) * EMA(A5,5) / 2.5 * A4,COLORRED;
STICKLINE(上车擒牛4,上车擒牛4,0,3,0),COLORYELLOW;{黄色彩}
上车擒牛5:=(V > 0 AND EMA((C - MA(C,28)) / MA(C,28),2) > MA((C - MA(C,28)) / MA(C,28),4) AND MA((C - MA(C,28)) / MA(C,28),4) > REF(MA((C - MA(C,28)) / MA(C,28),4),1) AND (V > 0 AND A5 > 0 AND A2 > REF(A2,1)) * EMA(A5,5) = 0) * A3 * A4,COLORADA899;
STICKLINE(上车擒牛5,上车擒牛5,0,3,0),COLORLIBLUE ;{灰色彩};
A9:=EMA((EMA(C * V,3) / EMA(V,3) + EMA(C * V,6) / EMA(V,6) + EMA(C * V,12) / EMA(V,12) + EMA(C * V,24) / EMA(V,24)) / 4,13);
GS10:=1.06 * A9 * A4;
HSL:=V/CAPITAL*100>10;
GS11:=(C - REF(C,1)) / REF(C,1) * 100;
XG:=(GS11 > 8.5 AND HSL AND CROSS(MA(C,1),EMA(H,10) * (1 + 5 / 100)) AND CROSS(MA(C,1),GS10)) * 10,COLORRED,NODRAW;
XG2:REF(XG,1) AND O<REF(C,1) AND L>REF(L,1);
DRAWTEXT(REF(XG,1) AND O<REF(C,1) AND L>REF(L,1),20,' ↖回调上车'),COLORYELLOW;
STICKLINE(XG2, 30,40, 1,0),COLORRED;
STICKLINE(XG2, 20,30, 1,0),COLORWHITE;
STICKLINE(XG2,10,20, 1,0),COLORWHITE;
STICKLINE(XG2, 0,10, 1,0),COLORBLUE;





回复

举报

QQ|

GMT+8, 2024-11-28 02:41

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