通达信量化波段王3合1版 【量化波段王、量化资金流向、量化侦察兵】源码 附图

{量化波段王图主图源码如下}


X_1:=1231212;
X_2:=IF(DATE<X_1,1,DRAWNULL);
X_3:=15/20*X_2;
X_4:=40/8*X_2;
X_5:=SAR(3,X_3,X_4)*X_2;
A:IF(CLOSE>X_5,X_5,DRAWNULL)*X_2,CIRCLEDOT,COLORRED;
B:IF(CLOSE<X_5,X_5,DRAWNULL)*X_2,CIRCLEDOT,COLORGREEN;
DRAWTEXT(CROSS(CLOSE,X_5),LOW-0.05*LOW,200)*X_2,COLORRED;
DRAWTEXT(CROSS(X_5,CLOSE),HIGH+0.05*HIGH,200)*X_2,COLORGREEN;
STICKLINE(CLOSE>SAR(3,X_3,X_4) AND CLOSE<OPEN,CLOSE,OPEN,2.8,0)*X_2,COLORRED;
STICKLINE(CLOSE>SAR(3,X_3,X_4) AND CLOSE>OPEN,CLOSE,OPEN,2.8,1)*X_2,COLORRED;
STICKLINE(CLOSE>SAR(3,X_3,X_4),HIGH,MAX(CLOSE,OPEN),0,0)*X_2,COLORRED;
STICKLINE(CLOSE>SAR(3,X_3,X_4),LOW,MIN(CLOSE,OPEN),0,0)*X_2,COLORRED;
STICKLINE(CLOSE<SAR(3,X_3,X_4) AND CLOSE<OPEN,CLOSE,OPEN,2.8,0)*X_2,COLORGREEN;
STICKLINE(CLOSE<SAR(3,X_3,X_4) AND CLOSE>OPEN,CLOSE,OPEN,2.8,1)*X_2,COLORGREEN;
STICKLINE(CLOSE<SAR(3,X_3,X_4),HIGH,MAX(CLOSE,OPEN),0,0),COLORGREEN;
STICKLINE(CLOSE<SAR(3,X_3,X_4),LOW,MIN(CLOSE,OPEN),0,0),COLORGREEN;
X_6:=STRCAT(DYBLOCK,201);
X_7:=STRCAT(X_6,HYBLOCK);
X_8:=STRCAT(X_7,201);
DRAWTEXT_FIX(ISLASTBAR,0.7,1,0,STRCAT(X_8,GNBLOCK)),COLORYELLOW;
X_9:=CONST(ZTPRICE(REF(CLOSE,1),0.1));
X_10:=CON2STR(X_9,2);
X_11:=2;
T0:IF(CURRBARSCOUNT<=X_11+6 AND CURRBARSCOUNT>2,CONST(X_9),DRAWNULL),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=3,T0,X_10),COLORGREEN;
X_12:=STRCAT(STRCAT(202,CON2STR(CAPITAL/1000000*CLOSE,2)),8);



{量化资金流向副图源码如下}

X_1:=1231212;
X_2:=IF(DATE<X_1,1,DRAWNULL);
X_3:=(2*CLOSE+HIGH+LOW)/4*X_2;
X_4:=LLV(LOW,34)*X_2;
X_5:=HHV(HIGH,34)*X_2;
X_6:=EMA((X_3-X_4)/(X_5-X_4)*100,9)*X_2;
X_7:=EMA(0.667*REF(X_6,1)+0.333*X_6,2)*X_2;
多头:EMA((X_3-X_4)/(X_5-X_4)*100,30)*X_2,COLORRED;
空头:EMA(多头,5)*X_2,COLORGREEN;
STICKLINE(空头>=X_6,空头,X_6,1,0)*X_2,COLORGREEN;
STICKLINE(空头>=X_6,X_7,多头,0,0)*X_2,COLORGREEN;
STICKLINE(空头<=X_6,空头,X_6,1,0)*X_2,COLORRED;
STICKLINE(空头<=X_6,X_7,多头,0,0)*X_2,COLORRED;


{量化侦察兵源码附图副图源码如下}


X_1:=1231212;
X_2:=IF(DATE<X_1,1,DRAWNULL);
主力持仓:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3)*X_2,COLORMAGENTA,LINETHICK2;
警戒线:80*X_2,COLORYELLOW;
X_3:=REF((LOW+OPEN+CLOSE+HIGH)/4,1)*X_2;
X_4:=SMA(ABS(LOW-X_3),13,1)/SMA(MAX(LOW-X_3,0),10,1)*X_2;
X_5:=EMA(X_4,10)*X_2;
X_6:=LLV(LOW,33)*X_2;
X_7:=EMA(IF(LOW<=X_6,X_5,0),3)*X_2;
STICKLINE(X_7>REF(X_7,1),0,X_7,3,0)*X_2,COLOR000055;
STICKLINE(X_7>REF(X_7,1),0,X_7,2.6,0)*X_2,COLOR000077;
STICKLINE(X_7>REF(X_7,1),0,X_7,2.1,0)*X_2,COLOR000099;
STICKLINE(X_7>REF(X_7,1),0,X_7,1.5,0)*X_2,COLOR0000BB;
STICKLINE(X_7>REF(X_7,1),0,X_7,0.9,0)*X_2,COLOR0000DD;
STICKLINE(X_7>REF(X_7,1),0,X_7,0.3,0)*X_2,COLORRED;
STICKLINE(X_7<REF(X_7,1),0,X_7,3,0)*X_2,COLOR005500;
STICKLINE(X_7<REF(X_7,1),0,X_7,2.6,0)*X_2,COLOR007700;
STICKLINE(X_7<REF(X_7,1),0,X_7,2.1,0)*X_2,COLOR009900;
STICKLINE(X_7<REF(X_7,1),0,X_7,1.5,0)*X_2,COLOR00BB00;
STICKLINE(X_7<REF(X_7,1),0,X_7,0.9,0)*X_2,COLOR00DD00;
STICKLINE(X_7<REF(X_7,1),0,X_7,0.3,0)*X_2,COLORGREEN;
主力出没:IF(X_7>REF(X_7,1),X_7,0)*X_2,NODRAW,COLORRED;
洗盘:IF(X_7<REF(X_7,1),X_7,0)*X_2,NODRAW,COLORGREEN;
X_8:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2))*X_2;
X_9:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2))*X_2;
X_10:=(REF(X_9,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2))*X_2;
X_11:=(REF(X_10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2))*X_2;
X_12:=(REF(X_11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2))*X_2;
X_13:=(REF(X_12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2))*X_2;
X_14:=(REF(X_13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2))*X_2;
X_15:=(REF(X_14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2))*X_2;
X_16:=(REF(X_15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2))*X_2;
X_17:=(REF(X_16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2))*X_2;
X_18:=(REF(X_17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2))*X_2;
X_19:=(REF(X_18,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2))*X_2;
X_20:=(REF(X_19,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2))*X_2;
X_21:=REF(X_9 OR X_10 OR X_11 OR X_12 OR X_13 OR X_14 OR X_15 OR X_16 OR X_17 OR X_18 OR X_19 OR X_20,1) AND X_8;
X_22:=EMA(CLOSE,12)-EMA(CLOSE,26)*X_2;
X_23:=EMA(X_22,9)*X_2;
X_24:=(X_22-X_23)*2*X_2;
X_25:=BARSLAST(REF(CROSS(X_22,X_23),1))*X_2;
X_26:=BARSLAST(REF(CROSS(X_23,X_22),1))*X_2;
X_27:=REF(CLOSE,X_25+1)>CLOSE AND X_22>REF(X_22,X_25+1) AND CROSS(X_22,X_23)*X_2;
X_28:=REF(CLOSE,X_26+1)<CLOSE AND REF(X_22,X_26+1)>X_22 AND CROSS(X_23,X_22)*X_2;
④:IF(X_27,57,0),COLORBROWN,LINETHICK3;
DRAWTEXT(X_27,15,285)*X_2,COLORWHITE;
DRAWTEXT(X_28,70,286),COLORGREEN;




未来函数检测结果如下:
该公式包含未来函数:CAPITAL

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

{量化波段王图主图源码如下}X_1赋值:1231212
如果DATEX_3赋值:15/20*X_2
X_4赋值:40/8*X_2
X_5赋值:SAR(3,X_3,X_4)*X_2
如果收盘价>X_5返回X_5否则返回DRAWNULL
如果收盘价DRAWTEXT(收盘价上穿X_5,最低价-0.05*最低价,200)*X_2,画红色
DRAWTEXT(X_5上穿收盘价,最高价+0.05*最高价,200)*X_2,画绿色
STICKLINE(收盘价>SAR(3,X_3,X_4) AND 收盘价<开盘价,收盘价,开盘价,2.8,0)*X_2,画红色
STICKLINE(收盘价>SAR(3,X_3,X_4) AND 收盘价>开盘价,收盘价,开盘价,2.8,1)*X_2,画红色
STICKLINE(收盘价>SAR(3,X_3,X_4),最高价,收盘价和开盘价较大值,0,0)*X_2,画红色
STICKLINE(收盘价>SAR(3,X_3,X_4),最低价,收盘价和开盘价的较小值,0,0)*X_2,画红色
STICKLINE(收盘价STICKLINE(收盘价开盘价,收盘价,开盘价,2.8,1)*X_2,画绿色
STICKLINE(收盘价STICKLINE(收盘价X_6赋值:STRCAT(DYBLOCK,201)
X_7赋值:STRCAT(X_6,HYBLOCK)
X_8赋值:STRCAT(X_7,201)
DRAWTEXT_FIX(ISLASTBAR,0.7,1,0,STRCAT(X_8,GNBLOCK)),画黄色
X_9赋值:CONST(ZTPRICE(1日前的收盘价,0.1))
X_10赋值:CON2STR(X_9,2)
X_11赋值:2
输出T0:IF(CURRBARSCOUNT<=X_11+6 AND CURRBARSCOUNT>2,CONST(X_9),DRAWNULL),画黄色
当满足条件CURRBARSCOUNT=3时,在T0和X_10位置书写文字
X_12赋值:STRCAT(STRCAT(202,CON2STR(CAPITAL/1000000*收盘价,2)),8)
{量化资金流向副图源码如下}X_1赋值:1231212
如果DATEX_3赋值:(2*收盘价+最高价+最低价)/4*X_2
X_4赋值:34日内最低价最低值*X_2
X_5赋值:34日内最高价最高值*X_2
X_6赋值:EMA((X_3-X_4)/(X_5-X_4)*100,9)*X_2
X_7赋值:E0.667*1日前的X_6+0.333*X_6的2日简单移动平均*X_2
输出多头:EMA((X_3-X_4)/(X_5-X_4)*100,30)*X_2,画红色
输出空头:多头的5日指数移动平均*X_2,画绿色
当满足条件空头>=X_6时,在空头和X_6之间画柱状线
当满足条件空头>=X_6时,在X_7和多头之间画柱状线
当满足条件空头<=X_6时,在空头和X_6之间画柱状线
当满足条件空头<=X_6时,在X_7和多头之间画柱状线
{量化侦察兵源码附图副图源码如下}X_1赋值:1231212
如果DATE输出主力持仓:EMA(100*(收盘价-34日内最低价最低值)/(34日内最高价最高值-34日内最低价最低值),3)*X_2,COLORMAGENTA, 线宽为2
输出警戒线:80*X_2,画黄色
X_3赋值:REF((最低价+开盘价+收盘价+最高价)/4,1)*X_2
X_4赋值:SMA(最低价-X_3的绝对值,13,1)/SMA(最低价-X_3和0较大值,10,1)*X_2
X_5赋值:X_4的10日指数移动平均*X_2
X_6赋值:33日内最低价最低值*X_2
如果最低价<=X_6返回X_5否则返回0
STICKLINE(X_7>1日前的X_7,0,X_7,3,0)*X_2,COLOR000055
STICKLINE(X_7>1日前的X_7,0,X_7,2.6,0)*X_2,COLOR000077
STICKLINE(X_7>1日前的X_7,0,X_7,2.1,0)*X_2,COLOR000099
STICKLINE(X_7>1日前的X_7,0,X_7,1.5,0)*X_2,COLOR0000BB
STICKLINE(X_7>1日前的X_7,0,X_7,0.9,0)*X_2,COLOR0000DD
STICKLINE(X_7>1日前的X_7,0,X_7,0.3,0)*X_2,画红色
STICKLINE(X_7<1日前的X_7,0,X_7,3,0)*X_2,COLOR005500
STICKLINE(X_7<1日前的X_7,0,X_7,2.6,0)*X_2,COLOR007700
STICKLINE(X_7<1日前的X_7,0,X_7,2.1,0)*X_2,COLOR009900
STICKLINE(X_7<1日前的X_7,0,X_7,1.5,0)*X_2,COLOR00BB00
STICKLINE(X_7<1日前的X_7,0,X_7,0.9,0)*X_2,COLOR00DD00
STICKLINE(X_7<1日前的X_7,0,X_7,0.3,0)*X_2,画绿色
输出主力出没:IF(X_7>1日前的X_7,X_7,0)*X_2,NODRAW,画红色
输出洗盘:IF(X_7<1日前的X_7,X_7,0)*X_2,NODRAW,画绿色
X_8赋值:(收盘价>1日前的收盘价 AND 收盘价>2日前的收盘价)*X_2
X_9赋值:(收盘价<1日前的收盘价 AND 收盘价<2日前的收盘价)*X_2
X_10赋值:(1日前的X_9 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价)*X_2
X_11赋值:(1日前的X_10 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价)*X_2
X_12赋值:(1日前的X_11 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价)*X_2
X_13赋值:(1日前的X_12 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价)*X_2
X_14赋值:(1日前的X_13 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价)*X_2
X_15赋值:(1日前的X_14 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价)*X_2
X_16赋值:(1日前的X_15 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价)*X_2
X_17赋值:(1日前的X_16 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价)*X_2
X_18赋值:(1日前的X_17 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价)*X_2
X_19赋值:(1日前的X_18 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价)*X_2
X_20:=(1日前的X_19 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价)*X_2
X_21:=1日前的X_9 OR X_10 OR X_11 OR X_12 OR X_13 OR X_14 OR X_15 OR X_16 OR X_17 OR X_18 OR X_19 OR X_20 AND X_8
X_22:=收盘价的12日指数移动平均-收盘价的26日指数移动平均*X_2
X_23:=X_22的9日指数移动平均*X_2
X_24:=(X_22-X_23)*2*X_2
X_25:=上次1日前的X_22上穿X_23距今天数*X_2
X_26:=上次1日前的X_23上穿X_22距今天数*X_2
X_27:=X_25+1日前的收盘价>收盘价 AND X_22>X_25+1日前的X_22 AND X_22上穿X_23*X_2
X_28:=X_26+1日前的收盘价<收盘价 AND X_26+1日前的X_22>X_22 AND X_23上穿X_22*X_2
如果X_27返回57否则返回0
当满足条件X_27时,在15和285位置书写文字
当满足条件X_28时,在70和286位置书写文字

指标安装下载帮助  |   联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
免责声明:指标公式网所有指标公式及文章由网络收集,不保障实时性和真实性, 仅供学习研究并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。
QQ:88652583 微信 88652583
sitemap站点地图