通达信龙头动能节奏副图指标 源码无未来 附图
A0:=((L+H+C*2)/4);
中:=EMA(A0,14)*1.0618,COLORWHITE,LINETHICK2;
下:=EMA(A0,14),COLORRED,LINETHICK2;
多空:=EMA((EMA(CLOSE,29)+EMA(CLOSE,31)+EMA(CLOSE,33))/3,3),COLORYELLOW,LINETHICK3;
{动能节奏}
AA:=EMA((2*C+H+L)/4,3);
A1:=SLOPE(AA*5-REF(AA,5),5)+C;
DIF:=EMA(A1,3) - EMA(A1,13);
DEA:=EMA(DIF,3);
动能线:IF(C>中 AND C>下 AND C>多空 AND (DIF-DEA)>0,(DIF-DEA),0),COLORYELLOW;
STICKLINE(C>中 AND C>下 AND C>多空 AND (动能线 > 0),0,动能线,2,0),COLORYELLOW;
STICKLINE(C>中 AND C>下 AND C>多空 AND (动能线 > 0),0,动能线*0.9,2,0),COLORYELLOW;
STICKLINE(C>中 AND C>下 AND C>多空 AND (动能线 > 0),0,动能线*0.8,2,0),COLORYELLOW;
STICKLINE(C>中 AND C>下 AND C>多空 AND (动能线 > 0),0,动能线*0.7,2,0),COLOR0000FF;
STICKLINE(C>中 AND C>下 AND C>多空 AND (动能线> 0),0,动能线*0.6,2,0),COLOR0000FF;
STICKLINE(C>中 AND C>下 AND C>多空 AND (动能线 > 0),0,动能线*0.5,2,0),COLOR0000FF;
STICKLINE(C>中 AND C>下 AND C>多空 AND (动能线 > 0),0,动能线*0.4,2,0),COLOR0000FF;
STICKLINE(C>中 AND C>下 AND C>多空 AND (动能线 > 0),0,动能线*0.3,2,0),COLOR0000FF;
STICKLINE(C>中 AND C>下 AND C>多空 AND (动能线 > 0),0,动能线*0.2,2,0),COLOR0000FF;
STICKLINE(C>中 AND C>下 AND C>多空 AND (动能线 > 0),0,动能线*0.1,2,0),COLOR0000FF;
{龙头阻击}
龙:=CLOSE/REF(CLOSE,1)>1.048 AND CLOSE=HIGH AND BETWEEN(FORCAST(VOL,4),0.2*FORCAST(VOL,12),2.1*FORCAST(VOL,12));
龙头阻击:(动能线>0 AND FILTER(龙,19));
DRAWICON(龙头阻击,动能线*1.1,25);
涨幅:=(C/REF(C,1)-1)*100;
去ST:=NAMELIKE('ST')=0 AND NAMELIKE('*ST')=0 AND NAMELIKE('SST')=0 AND NAMELIKE('S*ST')=0;
去除停牌:=DYNAINFO(4)>0;
去除创业板:=IF(CODELIKE('300') OR CODELIKE('301') ,0,1) ;
去除科创板:=IF(CODELIKE('688'),0,1);
XG:=去ST AND 去除停牌 AND 去除科创板;
MA10:=MA(CLOSE,10);
MA54:=MA(CLOSE,54);
HJ_8:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
HJ_9:=FILTER(HJ_8,10);
HJ_10:=BARSLAST(HJ_9);
HJ_11:=REF(HIGH,HJ_10+2);
HJ_12:=REF(HIGH,HJ_10+1);
HJ_13:=REF(HIGH,HJ_10);
HJ_14:=MAX(HJ_11,HJ_12);
HJ_15:=MAX(HJ_14,HJ_13);
HJ_16:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>3.5;
HJ_17:=HJ_10<150;
HJ_18:=(OPEN-HJ_15)/HJ_15*100<30;
HJ_19:=(CLOSE-LLV(LOW,HJ_10))/LLV(LOW,HJ_10)*100<50;
HJ_20:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;
HJ_21:=VOL/MA(VOL,5)<3.5;
HJ_22:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;
HJ_25:=HJ_16 AND HJ_17 AND HJ_18 AND HJ_19 AND HJ_20 AND HJ_21 AND HJ_22;
BOLL:=MA(CLOSE,20);
UPPER:=BOLL+2*STD(CLOSE,20);
PER:=CROSS(C,UPPER);
TPZ1:=MA((L+H+C)/3,5);
TPZ2:=HHV(TPZ1,60);
TPZ3:=CROSS(C,TPZ2*0.95) OR CROSS(C,TPZ2*0.98) ;
TPZ4:=PER AND HJ_25 AND TPZ3;
TPZ5:=MA(CLOSE,25)+MA(CLOSE,25)*20/100*0.35;
TPZ6:=(MA(MA(H,25),25)-MA(MA(L,25),25))*1+MA(MA(H,25),25);
TPZ7:=REF(C<TPZ6 OR C<TPZ5,1) AND C>TPZ6 AND C>TPZ5 ;
TPZ8:=TPZ4 OR TPZ7;
龙头趋势:动能线>0 AND ((涨幅>8 AND C=H) OR 涨幅>12)AND TPZ8 AND XG AND C/REF(C,1)>1.05 AND REF(C,1)/REF(C,2)<1.04 AND REF(C>3.7,1) AND REF(C<19,1) AND (CAPITAL/100)/10000<=15 AND O/REF(C,1)<1.05 AND C>O,COLORRED;
未来函数检测结果如下:
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
A0赋值:((L+H+C*2)/4)
中赋值:A0的14日指数移动平均*1.0618,画白色, 线宽为2
下赋值:A0的14日指数移动平均,画红色, 线宽为2
多空赋值:EMA((EMA(收盘价,29)+EMA(收盘价,31)+EMA(收盘价,33))/3,3),画黄色, 线宽为3
{动能节奏}
AA赋值:EMA((2*C+H+L)/4,3)
A1赋值:SLOPE(AA*5-5日前的AA,5)+C
DIF赋值:A1的3日指数移动平均 - A1的13日指数移动平均
DEA赋值:DIF的3日指数移动平均
输出动能线:IF(C>中 AND C>下 AND C>多空 AND (DIF-DEA)>0,(DIF-DEA),0),画黄色
STICKLINE(C>中 AND C>下 AND C>多空 AND (动能线 > 0),0,动能线,2,0),画黄色
STICKLINE(C>中 AND C>下 AND C>多空 AND (动能线 > 0),0,动能线*0.9,2,0),画黄色
STICKLINE(C>中 AND C>下 AND C>多空 AND (动能线 > 0),0,动能线*0.8,2,0),画黄色
STICKLINE(C>中 AND C>下 AND C>多空 AND (动能线 > 0),0,动能线*0.7,2,0),COLOR0000FF
STICKLINE(C>中 AND C>下 AND C>多空 AND (动能线> 0),0,动能线*0.6,2,0),COLOR0000FF
STICKLINE(C>中 AND C>下 AND C>多空 AND (动能线 > 0),0,动能线*0.5,2,0),COLOR0000FF
STICKLINE(C>中 AND C>下 AND C>多空 AND (动能线 > 0),0,动能线*0.4,2,0),COLOR0000FF
STICKLINE(C>中 AND C>下 AND C>多空 AND (动能线 > 0),0,动能线*0.3,2,0),COLOR0000FF
STICKLINE(C>中 AND C>下 AND C>多空 AND (动能线 > 0),0,动能线*0.2,2,0),COLOR0000FF
STICKLINE(C>中 AND C>下 AND C>多空 AND (动能线 > 0),0,动能线*0.1,2,0),COLOR0000FF
{龙头阻击}
龙赋值:收盘价/1日前的收盘价>1.048 AND 收盘价=最高价 AND BETWEEN(FORCAST(成交量,4),0.2*FORCAST(成交量,12),2.1*FORCAST(成交量,12))
输出龙头阻击:(动能线>0 AND 龙的19过滤)
当满足条件龙头阻击时,在动能线*1.1和25之间画图标
涨幅赋值:(C/1日前的C-1)*100
去ST赋值:NAMELIKE('ST')=0 AND NAMELIKE('*ST')=0 AND NAMELIKE('SST')=0 AND NAMELIKE('S*ST')=0
去除停牌赋值:开盘价>0
去除创业板赋值:IF(CODELIKE('300') OR CODELIKE('301') ,0,1)
去除科创板赋值:IF(CODELIKE('688'),0,1)
XG赋值:去ST AND 去除停牌 AND 去除科创板
MA10:=收盘价的10日简单移动平均
MA54赋值:收盘价的54日简单移动平均
HJ_8赋值:(3日前的收盘价-收盘价)/3日前的收盘价*100>5
HJ_9赋值:HJ_8的10过滤
HJ_10赋值:上次HJ_9距今天数
HJ_11赋值:HJ_10+2日前的最高价
HJ_12赋值:HJ_10+1日前的最高价
HJ_13赋值:HJ_10日前的最高价
HJ_14赋值:HJ_11和HJ_12较大值
HJ_15赋值:HJ_14和HJ_13较大值
HJ_16赋值:(收盘价-1日前的收盘价)/1日前的收盘价*100>3.5
HJ_17赋值:HJ_10<150
HJ_18赋值:(开盘价-HJ_15)/HJ_15*100<30
HJ_19赋值:(收盘价-HJ_10日内最低价最低值)/HJ_10日内最低价最低值*100<50
HJ_20赋值:(收盘价-5日前的开盘价)/5日前的开盘价*100<30
HJ_21赋值:成交量/成交量的5日简单移动平均<3.5
HJ_22赋值:(收盘价-89日前的收盘价)/89日前的收盘价*100<80
HJ_25赋值:HJ_16 AND HJ_17 AND HJ_18 AND HJ_19 AND HJ_20 AND HJ_21 AND HJ_22
BOLL赋值:收盘价的20日简单移动平均
UPPER赋值:BOLL+2*收盘价的20估算标准差
PER赋值:C上穿UPPER
TPZ1赋值:MA((L+H+C)/3,5)
TPZ2赋值:60日内TPZ1最高值
TPZ3赋值:C上穿TPZ2*0.95 OR C上穿TPZ2*0.98
TPZ4赋值:PER AND HJ_25 AND TPZ3
TPZ5赋值:收盘价的25日简单移动平均+收盘价的25日简单移动平均*20/100*0.35
TPZ6赋值:(H的25日简单移动平均,25)-L的25日简单移动平均,25))*1+H的25日简单移动平均,25)
TPZ7赋值:1日前的CTPZ6 AND C>TPZ5
TPZ8赋值:TPZ4 OR TPZ7
输出龙头趋势:动能线>0 AND ((涨幅>8 AND C=H) OR 涨幅>12)AND TPZ8 AND XG AND C/1日前的C>1.05 AND 1日前的C/2日前的C<1.04 AND 1日前的C>3.7 AND 1日前的C<19 AND (当前流通股本/100)/10000<=15 AND O/1日前的C<1.05 AND C>O,画红色