通达信【水击三千里】副图 今买明卖胜率高达85%的超短指标 源码
{水击三千里副图指标1,无未来函数}
选股:(H-O)>(C-L)*0.889 AND C>DTPRICE(REF(C,1),IF(CODELIKE('688') OR CODELIKE('300'),0.2,0.1)) AND C<O*0.995 AND H<HHV(H,4)AND H<REF(H,1) AND C>=EMA(EMA(EMA(C,3),4),5) AND L<EMA(EMA(EMA(C,3),4),5)*1.0345 AND LLV(V,4)/HHV(V,34)>0.618 AND IF(CODELIKE('688'),0,1) AND NOT(NAMELIKE('ST')) AND NOT(NAMELIKE('*ST')) AND BARSCOUNT(C)>34;
买入:=REF(C,BARSLAST(选股)),COLORYELLOW,NODRAW;
止赢:=REF(C,BARSLAST(选股))*1.01,COLORYELLOW,NODRAW;
最高:=REF(H,BARSLAST(选股)-1),COLORFF00FF,NODRAW;
止损:=REF(C,BARSLAST(选股))*0.97,COLORGREEN,NODRAW;
收盘:=REF(C,BARSLAST(选股)-1),COLORFF00FF,NODRAW;
涨幅:=(REF(C,BARSLAST(选股)-1)/买入-1)*100;
信号周期:=BARSLAST(选股),COLORYELLOW,NODRAW;
成绩:=(最高/买入-1)*100,COLORRED,NODRAW;
STICKLINE(REF(选股,1) ,0,0.50,2,0),COLORGREEN;
STICKLINE(REF(选股,1) AND 最高/买入>=1.01,0,0.50,2,0),COLORRED;
DRAWICON(REF(选股,1) AND 成绩>=1,0.68,5);DRAWICON(REF(选股,1) AND 成绩<1,0.68,4);
DRAWNUMBER(REF(选股,1),0.85,成绩),COLORYELLOW;
DRAWTEXT(REF(选股,1),0.8,' %'),COLORYELLOW;
区间涨幅:=ROUND2((C/买入-1)*100,2),COLORWHITE,NODRAW;
DRAWTEXT_FIX(C>0,0.12,0.1,0,'止赢:')COLORRED;
DRAWTEXT_FIX(C>0,0.16,0.1,0,STRCAT(VAR2STR(止赢,2),' ')),COLORRED,LINETHICK2;
DRAWTEXT_FIX(C>0,0.21,0.1,0,'止损:')COLORGREEN;
DRAWTEXT_FIX(C>0,0.25,0.1,0,STRCAT(VAR2STR(止损,2),' ')),COLORGREEN,LINETHICK2;
DRAWTEXT_FIX(C>0,0.30,0.1,0,'收盘:')COLORWHITE;
DRAWTEXT_FIX(C>0,0.34,0.1,0,STRCAT(VAR2STR(C,2),' ')),COLORWHITE,LINETHICK2;
DRAWTEXT_FIX(C>0,0.03,0.1,0,'买入:')COLORYELLOW;
DRAWTEXT_FIX(C>0,0.07,0.1,0,STRCAT(VAR2STR(买入,2),' ')),COLORYELLOW,LINETHICK2;
DRAWTEXT_FIX(C>0,0.03,0.3,0,'T+1成绩:')COLORRED;
DRAWTEXT_FIX(C>0,0.10,0.3,0,STRCAT(VAR2STR(成绩,2),'%')),COLORRED,LINETHICK2;
DRAWTEXT_FIX(C>0,0.17,0.3,0,'T+1涨幅:')COLORFFFF00;
DRAWTEXT_FIX(C>0,0.24,0.3,0,STRCAT(VAR2STR(涨幅,2),'%')),COLORFFFF00,LINETHICK2;
DRAWTEXT_FIX(C>0,0.30,0.3,0,'区间涨幅:')COLORWHITE,LINETHICK2;
DRAWTEXT_FIX(C>0,0.37,0.3,0,STRCAT(VAR2STR(区间涨幅,2),'%')),COLORWHITE,LINETHICK2;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
输出{水击三千里副图指标1,无未来函数}
选股:(H-O)>(C-L)*0.889 AND C>DTPRICE(1日前的C,IF(CODELIKE('688') OR CODELIKE('300'),0.2,0.1)) AND C=C的3日指数移动平均,4),5) AND L0.618 AND IF(CODELIKE('688'),0,1) AND NOT(NAMELIKE('ST')) AND NOT(NAMELIKE('*ST')) AND C的有效数据周期数>34
买入赋值:REF(C,上次选股距今天数),画黄色,NODRAW
止赢赋值:REF(C,上次选股距今天数)*1.01,画黄色,NODRAW
最高赋值:REF(H,上次选股距今天数-1),COLORFF00FF,NODRAW
止损赋值:REF(C,上次选股距今天数)*0.97,画绿色,NODRAW
收盘赋值:REF(C,上次选股距今天数-1),COLORFF00FF,NODRAW
涨幅赋值:(REF(C,上次选股距今天数-1)/买入-1)*100
信号周期赋值:上次选股距今天数,画黄色,NODRAW
成绩赋值:(最高/买入-1)*100,画红色,NODRAW
STICKLINE(1日前的选股 ,0,0.50,2,0),画绿色
STICKLINE(1日前的选股 AND 最高/买入>=1.01,0,0.50,2,0),画红色
DRAWICON(1日前的选股 AND 成绩>=1,0.68,5)
DRAWICON(1日前的选股 AND 成绩<1,0.68,4)
DRAWNUMBER(1日前的选股,0.85,成绩),画黄色
DRAWTEXT(1日前的选股,0.8,' %'),画黄色
区间涨幅赋值:ROUND2((C/买入-1)*100,2),画白色,NODRAW
当满足条件C>0时,在横轴0.12纵轴0.1位置书写文字
DRAWTEXT_FIX(C>0,0.16,0.1,0,STRCAT(VAR2STR(止赢,2),' ')),画红色, 线宽为2
当满足条件C>0时,在横轴0.21纵轴0.1位置书写文字
DRAWTEXT_FIX(C>0,0.25,0.1,0,STRCAT(VAR2STR(止损,2),' ')),画绿色, 线宽为2
当满足条件C>0时,在横轴0.30纵轴0.1位置书写文字
DRAWTEXT_FIX(C>0,0.34,0.1,0,STRCAT(VAR2STR(C,2),' ')),画白色, 线宽为2
当满足条件C>0时,在横轴0.03纵轴0.1位置书写文字
DRAWTEXT_FIX(C>0,0.07,0.1,0,STRCAT(VAR2STR(买入,2),' ')),画黄色, 线宽为2
当满足条件C>0时,在横轴0.03纵轴0.3位置书写文字
DRAWTEXT_FIX(C>0,0.10,0.3,0,STRCAT(VAR2STR(成绩,2),'%')),画红色, 线宽为2
当满足条件C>0时,在横轴0.17纵轴0.3位置书写文字
DRAWTEXT_FIX(C>0,0.24,0.3,0,STRCAT(VAR2STR(涨幅,2),'%')),COLORFFFF00, 线宽为2
当满足条件C>0时,在横轴0.30纵轴0.3位置书写文字
DRAWTEXT_FIX(C>0,0.37,0.3,0,STRCAT(VAR2STR(区间涨幅,2),'%')),画白色, 线宽为2