通达信【骑龙战法】主副图涨停王者系列 高胜率机构战法
骑龙战法副图源码如下:
X_1:=CLOSE>MA(CLOSE,60) AND LOW<=MA(CLOSE,60) AND CLOSE;
X_2:=CLOSE/REF(CLOSE,1)>1.093 AND CLOSE=HIGH;
X_3:=CLOSE>MA(CLOSE,250);
XG:X_1 OR X_3 AND X_2;
STICKLINE(XG,0,10,4,0),COLORRED;
STICKLINE(XG,10,12,2,0),COLORWHITE;
DRAWICON(XG,12,18);
DRAWICON(XG,13,56);
骑龙战法主图源码如下:
MA1:MA(CLOSE,5);
MA2:MA(CLOSE,10);
MA3:MA(CLOSE,20);
MA4:MA(CLOSE,30);
MA5:MA(CLOSE,60);
MA6:MA(CLOSE,120);
MA7:MA(CLOSE,250);
X_1:=STRCAT(HYBLOCK,1);
X_2:=STRCAT(X_1,DYBLOCK);
X_3:=STRCAT(X_2,1);
DRAWTEXT_FIX(ISLASTBAR,0,10,0,STRCAT(X_3,GNBLOCK)),COLORRED;
DRAWTEXT_FIX(1,0,0,0,2),COLORRED;
DRAWTEXT_FIX(1,0.06,0,0,EXTERNSTR(0,1)),COLORRED;
DRAWTEXT_FIX(1,0,0.06,0,3),COLORMAGENTA;
DRAWTEXT_FIX(1,0.06,0.06,0,EXTERNSTR(0,2)),COLORMAGENTA;
X_4:=CLOSE>REF(CLOSE,1)*1.09 AND CLOSE<REF(CLOSE,1)*1.105;
X_5:=CLOSE<REF(CLOSE,1)*0.901 AND CLOSE>REF(CLOSE,1)*0.898;
STICKLINE(X_4,CLOSE,OPEN,4,0),COLORRED;
STICKLINE(X_5,CLOSE,OPEN,4,0),COLORBLUE;
X_6:=IF(INBLOCK(4),0.2,IF(INBLOCK(5),0.2,IF(INBLOCK(6),0.05,0.1)));
X_7:=IF(DATE<=1200823,1,0);
STICKLINE(CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE=HIGH AND X_7=1,OPEN,CLOSE,4,0),COLORRED;
STICKLINE(CLOSE<=DTPRICE(REF(CLOSE,1),0.1) AND CLOSE=LOW AND X_7=1,OPEN,CLOSE,4,0),COLORBLUE;
STICKLINE(CLOSE>=ZTPRICE(REF(CLOSE,1),X_6) AND CLOSE=HIGH,CLOSE,OPEN,4,0),COLORRED;
STICKLINE(CLOSE<=DTPRICE(REF(CLOSE,1),X_6) AND CLOSE=LOW,CLOSE,OPEN,4,0),COLORBLUE;
流通市值:FINANCE(40)/100000000,NODRAW,COLORRED;
未来函数检测结果如下:
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
骑龙战法副图源码如下:X_1赋值:收盘价>收盘价的60日简单移动平均 AND 最低价<=收盘价的60日简单移动平均 AND 收盘价
X_2赋值:收盘价/1日前的收盘价>1.093 AND 收盘价=最高价
X_3赋值:收盘价>收盘价的250日简单移动平均
输出XG:X_1 OR X_3 AND X_2
当满足条件XG时,在0和10之间画柱状线
当满足条件XG时,在10和12之间画柱状线
当满足条件XG时,在12和18之间画图标
当满足条件XG时,在13和56之间画图标
骑龙战法主图源码如下:MA1:收盘价的5日简单移动平均
输出MA2:收盘价的10日简单移动平均
输出MA3:收盘价的20日简单移动平均
输出MA4:收盘价的30日简单移动平均
输出MA5:收盘价的60日简单移动平均
输出MA6:收盘价的120日简单移动平均
输出MA7:收盘价的250日简单移动平均
X_1赋值:STRCAT(HYBLOCK,1)
X_2赋值:STRCAT(X_1,DYBLOCK)
X_3赋值:STRCAT(X_2,1)
DRAWTEXT_FIX(ISLASTBAR,0,10,0,STRCAT(X_3,GNBLOCK)),画红色
当满足条件1时,在横轴0纵轴0位置书写文字
DRAWTEXT_FIX(1,0.06,0,0,EXTERNSTR(0,1)),画红色
当满足条件1时,在横轴0纵轴0.06位置书写文字
DRAWTEXT_FIX(1,0.06,0.06,0,EXTERNSTR(0,2)),画洋红色
X_4赋值:收盘价>1日前的收盘价*1.09 AND 收盘价<1日前的收盘价*1.105
X_5赋值:收盘价<1日前的收盘价*0.901 AND 收盘价>1日前的收盘价*0.898
当满足条件X_4时,在收盘价和开盘价之间画柱状线
当满足条件X_5时,在收盘价和开盘价之间画柱状线
X_6赋值:IF(INBLOCK(4),0.2,IF(INBLOCK(5),0.2,IF(INBLOCK(6),0.05,0.1)))
如果DATE<=1200823返回1否则返回0
STICKLINE(收盘价>=ZTPRICE(1日前的收盘价,0.1) AND 收盘价=最高价 AND X_7=1,开盘价,收盘价,4,0),画红色
STICKLINE(收盘价<=DTPRICE(1日前的收盘价,0.1) AND 收盘价=最低价 AND X_7=1,开盘价,收盘价,4,0), 画蓝色
STICKLINE(收盘价>=ZTPRICE(1日前的收盘价,X_6) AND 收盘价=最高价,收盘价,开盘价,4,0),画红色
STICKLINE(收盘价<=DTPRICE(1日前的收盘价,X_6) AND 收盘价=最低价,收盘价,开盘价,4,0), 画蓝色
输出流通市值:FINANCE(40)/100000000,NODRAW,画红色