通达信绝处逢生主副图 伏击庄股毫不费力 源码分享 附图
{绝处逢生幅图源码如下}
VAR28:=IF((CLOSE>REF(CLOSE,1)),88,0);
VAR26:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR28>0),91,0);
XG:(FILTER((VAR26>90),45));
{绝处逢生主图源码如下}
趋势:EMA(CLOSE,12),COLORYELLOW;
M5:MA(C,5),COLORWHITE;
MA20:MA(C,20),COLORLIMAGENTA;
VAR1:=NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('SST');
VAR2:=VAR1 OR NAMELIKE('S*ST') OR NAMELIKE('S ST');
VAR3:=(CODELIKE('688') OR (CODELIKE('300')));
VAR4:=IF(VAR2,C*1.05,IF(VAR3,C*1.2,C*1.1));
VAR5:=REF(C/REF(C,1)>1.035,1) AND O/REF(C,1)>1.015;
VAR6:=VAR5 AND BETWEEN(C/REF(C,1),1.05,0.98) AND V=HHV(V,30)AND C<O;
VAR7:=CONST(BARSLAST(VAR6));
VAR8:=CURRBARSCOUNT=VAR7+1;
VAR9:=CLOSE<OPEN AND CLOSE>REF(CLOSE,1);
VAR10:=CLOSE>OPEN AND CLOSE<REF(CLOSE,1);
VAR11:=NAMELIKE('ST') OR NAMELIKE('*ST');
VAR12:=CODELIKE('688') OR (CODELIKE('30') AND DATE>=1200824);
VAR13:=IF(VAR11,1.05,IF(VAR12,1.195,1.095)),NODRAW;
VAR14:=IF(VAR11,0.95,IF(VAR12,0.805,0.905)),NODRAW;
VAR15:=HIGH>=(REF(C,1)*VAR13) AND CLOSE<HIGH;
VAR16:=REF((CLOSE+OPEN)/2,1);
VAR17:=IF((CLOSE>REF(CLOSE,1)),88,0);
VAR28:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR17>0),91,0);
VAR26:=(FILTER((VAR28>90),45)),COLORYELLOW;
DRAWTEXT_FIX(1,0.85,0.03,0,STRCAT('次日涨停价:',CON2STR(VAR4,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;
STICKLINE(1,REF((O+C)/2,BARSLAST(VAR8)),REF((O+C)/2,BARSLAST(VAR8))+0.01,5,0),COLORYELLOW;
STICKLINE(VAR9,O,C,1,0),COLORMAGENTA;
STICKLINE(VAR10,O,C,1,0),COLORLICYAN;
STICKLINE(C>=((REF(C,1)*VAR13)-0.01) AND C=H,O,C,1,0),COLORYELLOW;
STICKLINE(C<=((REF(C,1)*VAR14)+0.01) AND C=L,O,C,1,0),COLORBROWN;
STICKLINE(C>=((REF(C,1)*VAR13)-0.01) AND C=H,O,C,1,0),COLORYELLOW;
STICKLINE(C<=((REF(C,1)*VAR14)+0.01) AND C=L,O,C,1,0),COLORBROWN;
STICKLINE(VAR15,O,C,1,0),COLORBLUE;
STICKLINE(ISLASTBAR,VAR16,VAR16,9,0),COLORWHITE;
DRAWNUMBER(ISLASTBAR,VAR16,VAR16),COLORWHITE,DRAWABOVE;
STICKLINE(VAR26,C,O,0.50,0),COLOR00FFFF;
DRAWLINE(VAR26,H,REF(VAR26,1),REF(H,1),1),COLORRED,LINETHICK1;
DRAWLINE(VAR26,L,REF(VAR26,1),REF(L,1),1),COLOR00FFFF;
DRAWTEXT(VAR26,L*0.99,'逢生'),COLOR00FFFF;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
{绝处逢生幅图源码如下}VAR28赋值:IF((收盘价>1日前的收盘价),88,0)
VAR26赋值:IF(((收盘价)/(1日前的收盘价)>1.05) AND ((最高价)/(收盘价)<1.01) AND (VAR28>0),91,0)
输出XG:(FILTER((VAR26>90),45))
输出{绝处逢生主图源码如下}趋势:收盘价的12日指数移动平均,画黄色
输出M5:C的5日简单移动平均,画白色
输出MA20:C的20日简单移动平均,COLORLIMAGENTA
VAR1赋值:NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('SST')
VAR2赋值:VAR1 OR NAMELIKE('S*ST') OR NAMELIKE('S ST')
VAR3赋值:(CODELIKE('688') OR (CODELIKE('300')))
VAR4赋值:IF(VAR2,C*1.05,IF(VAR3,C*1.2,C*1.1))
VAR5赋值:1日前的C/C>1.035,1) AND O/1日前的C>1.015
VAR6赋值:VAR5 AND BETWEEN(C/1日前的C,1.05,0.98) AND V=30日内V最高值AND CVAR7赋值:CONST(上次VAR6距今天数)
VAR8赋值: 到最后交易的周期=VAR7+1
VAR9赋值:收盘价<开盘价 AND 收盘价>1日前的收盘价
VAR10:=收盘价>开盘价 AND 收盘价<1日前的收盘价
VAR11:=NAMELIKE('ST') OR NAMELIKE('*ST')
VAR12:=CODELIKE('688') OR (CODELIKE('30') AND DATE>=1200824)
VAR13:=IF(VAR11,1.05,IF(VAR12,1.195,1.095)),NODRAW
VAR14:=IF(VAR11,0.95,IF(VAR12,0.805,0.905)),NODRAW
VAR15:=最高价>=(1日前的C*VAR13) AND 收盘价<最高价
VAR16:=REF((收盘价+开盘价)/2,1)
VAR17:=IF((收盘价>1日前的收盘价),88,0)
VAR28:=IF(((收盘价)/(1日前的收盘价)>1.05) AND ((最高价)/(收盘价)<1.01) AND (VAR17>0),91,0)
VAR26赋值:(FILTER((VAR28>90),45)),画黄色
DRAWTEXT_FIX(1,0.85,0.03,0,STRCAT('次日涨停价:',CON2STR(VAR4,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位置书写文字
STICKLINE(1,REF((O+C)/2,上次VAR8距今天数),REF((O+C)/2,上次VAR8距今天数)+0.01,5,0),画黄色
当满足条件VAR9时,在O和C之间画柱状线
当满足条件VAR10时,在O和C之间画柱状线
STICKLINE(C>=((1日前的C*VAR13)-0.01) AND C=H,O,C,1,0),画黄色
STICKLINE(C<=((1日前的C*VAR14)+0.01) AND C=L,O,C,1,0),COLORBROWN
STICKLINE(C>=((1日前的C*VAR13)-0.01) AND C=H,O,C,1,0),画黄色
STICKLINE(C<=((1日前的C*VAR14)+0.01) AND C=L,O,C,1,0),COLORBROWN
当满足条件VAR15时,在O和C之间画柱状线
当满足条件ISLASTBAR时,在VAR16和VAR16之间画柱状线
DRAWNUMBER(ISLASTBAR,VAR16,VAR16),画白色,DRAWABOVE
当满足条件VAR26时,在C和O之间画柱状线
DRAWLINE(VAR26,H,1日前的VAR26,1日前的H,1),画红色,LINETHICK1
DRAWLINE(VAR26,L,1日前的VAR26,1日前的L,1),COLOR00FFFF
当满足条件VAR26时,在L*0.99和'逢生'位置书写文字