通达信低吸【擒牛回调上车】修正版 抓在牛股起涨点 适用于开盘绿盘低吸思路 源码
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;
未来函数检测结果如下:
该公式包含未来函数:CAPITAL
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
GS1赋值:EMA((C - 1日前的C) / 3日前的C,10) * 100
A2赋值:GS1的2日指数移动平均,2),2),3)
A3赋值:(C - C的26日简单移动平均) / 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, 线宽为2,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 > 1日前的A2,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> 1日前的龙年起飞1 * A4,龙年起飞1,-6,4,0),COLORC8C8FA
当满足条件龙年起飞1 < -20时,在龙年起飞1和-6之间画柱状线
当满足条件龙年起飞1 < -20时,在0和-6之间画柱状线
STICKLINE(龙年起飞1< -20 AND 龙年起飞1> 1日前的龙年起飞1 * A4,0,-6,4,0),COLOR6464FA
A6赋值:(C的3日简单移动平均 + C的6日简单移动平均 + C的12日简单移动平均 + C的24日简单移动平均) / 4
A7赋值:A6 + 3 * A6的10估算标准差
A8赋值:C的26日简单移动平均 + 2 * C的26估算标准差
买点赋值:(V > 0 AND BARSLASTCOUNT(A5>0)=1 AND A2 > 1日前的A2) * A5,COLORFF0000,NODRAW
上车擒牛1赋值:(V > 0 AND A5 > 0 AND A2 > 1日前的A2) * A5的5日指数移动平均,COLOR005999
当满足条件上车擒牛1时,在上车擒牛1和0之间画柱状线
{红色彩}
上车擒牛2赋值:(V > 0 AND BARSLASTCOUNT(A5>0)=1 AND CROSS(C的2日指数移动平均,26日内C的5日指数移动平均最高值)) * A5的2日指数移动平均,COLOR000999
当满足条件上车擒牛2时,在上车擒牛2和0之间画柱状线
{白色彩}
上车擒牛3赋值:(V > 0 AND BARSLASTCOUNT(A5>0)=1 AND CROSS(C的2日指数移动平均,26日内C的5日指数移动平均最高值)) * -3,COLOR009999
当满足条件上车擒牛3时,在上车擒牛3和0之间画柱状线
当满足条件上车擒牛3时,在上车擒牛3和0之间画柱状线
当满足条件上车擒牛3时,在上车擒牛3和0之间画柱状线
当满足条件上车擒牛3时,在上车擒牛3和0之间画柱状线
输出快速车道:(V > 0 AND BARSLASTCOUNT(A5>0)=1 AND CROSS(C的2日指数移动平均,26日内C的5日指数移动平均最高值)) * 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(C - REF(C,1的绝对值),14,1) * 100 > 64.5 AND EMA(C,1) > (A7 OR A8)) * EMA(A5,5) / 2.5 * A4,画红色
当满足条件上车擒牛4时,在上车擒牛4和0之间画柱状线
{黄色彩}
上车擒牛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
当满足条件上车擒牛5时,在上车擒牛5和0之间画柱状线
{灰色彩}
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/当前流通股本*100>10
GS11:=(C - 1日前的C) / 1日前的C * 100
XG赋值:(GS11 > 8.5 AND HSL AND CROSS(C的1日简单移动平均,H的10日指数移动平均 * (1 + 5 / 100)) AND CROSS(C的1日简单移动平均,GS10)) * 10,画红色,NODRAW
XG2:1日前的XG AND O<1日前的C AND L>1日前的L
DRAWTEXT(1日前的XG AND O<1日前的C AND L>1日前的L,20,' ↖回调上车'),画黄色
当满足条件XG2时,在 30和40之间画柱状线
当满足条件XG2时,在 20和30之间画柱状线
当满足条件XG2时,在10和20之间画柱状线
当满足条件XG2时,在 0和10之间画柱状线