通达信潜伏起爆点副图 尾盘进早盘出 起爆前宜潜伏 源码 附图
初始信号:=C>8.88 AND C>O*0.97 AND FINANCE(43)>-100 AND C>REF(C,1)*0.96 AND C<REF(C,1)*1.025 AND REF(C,1)<REF(C,2) AND REF(C,2)>REF(C,3)*0.96 AND REF(C,2)<REF(C,3) AND REF(O,2)<REF(C,3)*1.027 AND REF(C,1)/REF(O,1)<0.94 AND C>MA(C,180)AND C<70;
选股:FILTER(初始信号,2) COLORYELLOW;
买入:=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)*70;
信号周期:=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;
未来函数检测结果如下:
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
初始信号赋值:C>8.88 AND C>O*0.97 AND FINANCE(43)>-100 AND C>1日前的C*0.96 AND C<1日前的C*1.025 AND 1日前的C<2日前的C AND 2日前的C>3日前的C*0.96 AND 2日前的C<3日前的C AND 2日前的O<3日前的C*1.027 AND 1日前的C/1日前的O<0.94 AND C>C的180日简单移动平均AND C<70
输出选股:初始信号的2过滤 画黄色
买入赋值: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)*70
信号周期赋值:上次选股距今天数,画黄色,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