通达信神量回踩主图指标 如果股价回踩成功往往会有一个比较好的反弹 源码附图
{神量回踩}
战斗:EMA(CLOSE,12),COLORYELLOW;
小周天:MA(C,20),COLORLIMAGENTA;
M5:MA(C,5),COLORWHITE;
次日涨停价:=IF(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('SST')
OR NAMELIKE('S*ST') OR NAMELIKE('S ST') ,C*1.05,
IF((CODELIKE('688') OR (CODELIKE('300') )),C*1.2,C*1.1));
DRAWTEXT_FIX(1,0.85,0.03,0,STRCAT('次日涨停价:',CON2STR(次日涨停价,2))),COLORYELLOW;
DRAWTEXT_FIX(1,0.02,0,0,'所属行业:')COLOR0080FF;
DRAWTEXT_FIX(1,0.10,0,0,HYBLOCK)COLOR0080FF;
DRAWTEXT_FIX(1,0.21,0,0,'所属地区:')COLOR00FFFF;
DRAWTEXT_FIX(1,0.28,0,0,DYBLOCK)COLOR00FFFF;
DRAWTEXT_FIX(1,0.35,0,0,'概念板块:')COLOR00FFFF;
DRAWTEXT_FIX(1,0.43,0,0,GNBLOCK)COLOR00FFFF;
A55:=REF(C/REF(C,1)>1.035,1)AND O/REF(C,1)>1.015 AND BETWEEN(C/REF(C,1),1.05,0.98)AND V=HHV(V,30)AND C<O;
A65:=CONST(BARSLAST(A55));
A75:=CURRBARSCOUNT=A65+1;
HX:STICKLINE(1,REF((O+C)/2,BARSLAST(A75)),REF((O+C)/2,BARSLAST(A75))+0.01,5,0),COLORYELLOW;
假阴真阳:=C<O AND C>REF(C,1);
STICKLINE(假阴真阳,O,C,1,0),COLORMAGENTA;
假阳真阴:=C>O AND C<REF(C,1);
STICKLINE(假阳真阴,O,C,1,0),COLORLICYAN;
ZF:=IF(NAMELIKE('ST') OR NAMELIKE('*ST'),1.05,
IF(CODELIKE('688') OR (CODELIKE('30') AND DATE>=1200824),1.195,1.095)),NODRAW;
DF:=IF(NAMELIKE('ST') OR NAMELIKE('*ST'),0.95,
IF(CODELIKE('688') OR (CODELIKE('300') AND DATE>=1200824),0.805,0.905)),NODRAW;
ZTJ:=REF(C,1)*ZF;
DTJ:=REF(C,1)*DF;
STICKLINE(C>=(ZTJ-0.01) AND C=H ,O,C,1,0),COLORYELLOW;
STICKLINE(C<=(DTJ+0.01) AND C=L ,O,C,1,0),COLORBROWN;
CZT:=H>=ZTJ AND C<H ;
STICKLINE(C>=(ZTJ-0.01) AND C=H ,O,C,1,0),COLORYELLOW;
STICKLINE(C<=(DTJ+0.01) AND C=L ,O,C,1,0),COLORBROWN;
STICKLINE(CZT,O,C,1,0),COLORBLUE;
RYW:=REF((C+O)/2,1);
STICKLINE(ISLASTBAR,RYW,RYW,9,0),COLORWHITE;
DRAWNUMBER(ISLASTBAR,RYW,RYW),COLORWHITE,DRAWABOVE;
VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);
VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);
XXG:=(FILTER((VAR4AA>90),45)),COLORYELLOW;
STICKLINE(XXG,C,O,0.50,0),COLOR00FFFF;
DRAWLINE(XXG,H,REF(XXG,1),REF(H,1),1),COLORRED,LINETHICK1;
DRAWLINE(XXG,L,REF(XXG,1),REF(L,1),1),COLOR00FFFF;
DRAWTEXT_FIX(C>O,0,0.07,0,'XG'),COLORMAGENTA;
DRAWTEXT(XXG,L*0.99,'神量'),COLOR00FFFF;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
输出{神量回踩}
战斗:收盘价的12日指数移动平均,画黄色
输出小周天:C的20日简单移动平均,COLORLIMAGENTA
输出M5:C的5日简单移动平均,画白色
次日涨停价赋值:IF(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('SST')
OR NAMELIKE('S*ST') OR NAMELIKE('S ST') ,C*1.05,
IF((CODELIKE('688') OR (CODELIKE('300') )),C*1.2,C*1.1))
DRAWTEXT_FIX(1,0.85,0.03,0,STRCAT('次日涨停价:',CON2STR(次日涨停价,2))),画黄色
当满足条件1时,在横轴0.02纵轴0位置书写文字
当满足条件1时,在横轴0.10纵轴0位置书写文字
当满足条件1时,在横轴0.21纵轴0位置书写文字
当满足条件1时,在横轴0.28纵轴0位置书写文字
当满足条件1时,在横轴0.35纵轴0位置书写文字
当满足条件1时,在横轴0.43纵轴0位置书写文字
A55赋值:1日前的C/C>1.035,1)AND O/1日前的C>1.015 AND BETWEEN(C/1日前的C,1.05,0.98)AND V=30日内V最高值AND C
A65赋值:CONST(上次A55距今天数)
A75赋值: 到最后交易的周期=A65+1
输出HX:STICKLINE(1,REF((O+C)/2,上次A75距今天数),REF((O+C)/2,上次A75距今天数)+0.01,5,0),画黄色
假阴真阳赋值:C1日前的C
当满足条件假阴真阳时,在O和C之间画柱状线
假阳真阴赋值:C>O AND C<1日前的C
当满足条件假阳真阴时,在O和C之间画柱状线
ZF赋值:IF(NAMELIKE('ST') OR NAMELIKE('*ST'),1.05,
IF(CODELIKE('688') OR (CODELIKE('30') AND DATE>=1200824),1.195,1.095)),NODRAW
DF赋值:IF(NAMELIKE('ST') OR NAMELIKE('*ST'),0.95,
IF(CODELIKE('688') OR (CODELIKE('300') AND DATE>=1200824),0.805,0.905)),NODRAW
ZTJ赋值:1日前的C*ZF
DTJ赋值:1日前的C*DF
STICKLINE(C>=(ZTJ-0.01) AND C=H ,O,C,1,0),画黄色
STICKLINE(C<=(DTJ+0.01) AND C=L ,O,C,1,0),COLORBROWN
CZT赋值:H>=ZTJ AND C
STICKLINE(C>=(ZTJ-0.01) AND C=H ,O,C,1,0),画黄色
STICKLINE(C<=(DTJ+0.01) AND C=L ,O,C,1,0),COLORBROWN
当满足条件CZT时,在O和C之间画柱状线
RYW赋值:REF((C+O)/2,1)
当满足条件ISLASTBAR时,在RYW和RYW之间画柱状线
DRAWNUMBER(ISLASTBAR,RYW,RYW),画白色,DRAWABOVE
VAR3AA赋值:IF((收盘价>1日前的收盘价),88,0)
VAR4AA赋值:IF(((收盘价)/(1日前的收盘价)>1.05) AND ((最高价)/(收盘价)<1.01) AND (VAR3AA>0),91,0)
XXG赋值:(FILTER((VAR4AA>90),45)),画黄色
当满足条件XXG时,在C和O之间画柱状线
DRAWLINE(XXG,H,1日前的XXG,1日前的H,1),画红色,LINETHICK1
DRAWLINE(XXG,L,1日前的XXG,1日前的L,1),COLOR00FFFF
当满足条件C>O时,在横轴0纵轴0.07位置书写文字
当满足条件XXG时,在L*0.99和'神量'位置书写文字