通达信量价齐生副图指标 对量价齐升选股指标的深入挖掘 源码 附图
{DRAWTEXTREL( 0,0,'量价齐升选股指标' ),COLORYELLOW;}
CV:=CLOSE;
BBIBOLL:=(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4;
UPR:=BBIBOLL+6*STD(BBIBOLL,11);
DWN:=BBIBOLL-6*STD(BBIBOLL,11);
QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
XVL:=(IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ*(HIGH-LOW),0-VOL/2)));
HSL:=(XVL/20)/1.15;
攻击:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
LLJX:=EMA(攻击,3);
0,POINTDOT,COLORWHITE;
B1:=SUM(LLJX,1);
B2:=SUM(LLJX,2);
B3:=SUM(LLJX,3);
B4:=SUM(LLJX,4);
B5:=SUM(LLJX,5);
B6:=SUM(LLJX,6);
B7:=SUM(LLJX,7);
B8:=SUM(LLJX,8);
B9:=SUM(LLJX,9);
B10:=SUM(LLJX,10);
IF(B1<REF(B1,1),B1,DRAWNULL),COLORGREEN,LINETHICK2;
IF(B1>REF(B1,1),B1,DRAWNULL),COLORRED,LINETHICK2;
IF(B2<REF(B2,1),B2,DRAWNULL),COLORGREEN;
IF(B2>REF(B2,1),B2,DRAWNULL),COLORRED;
IF(B3<REF(B3,1),B3,DRAWNULL),COLORGREEN;
IF(B3>REF(B3,1),B3,DRAWNULL),COLORRED;
IF(B4<REF(B4,1),B4,DRAWNULL),COLORGREEN;
IF(B4>REF(B4,1),B4,DRAWNULL),COLORRED;
IF(B5<REF(B5,1),B5,DRAWNULL),COLORGREEN;
IF(B5>REF(B5,1),B5,DRAWNULL),COLORRED;
IF(B6<REF(B6,1),B6,DRAWNULL),COLORGREEN;
IF(B6>REF(B6,1),B6,DRAWNULL),COLORRED;
IF(B7<REF(B7,1),B7,DRAWNULL),COLORGREEN;
IF(B7>REF(B7,1),B7,DRAWNULL),COLORRED;
IF(B8<REF(B8,1),B8,DRAWNULL),COLORGREEN;
IF(B8>REF(B8,1),B8,DRAWNULL),COLORRED;
IF(B9<REF(B9,1),B9,DRAWNULL),COLORGREEN;
IF(B9>REF(B9,1),B9,DRAWNULL),COLORRED;
IF(B10<REF(B10,1),B10,DRAWNULL),COLORGREEN;
IF(B10>REF(B10,1),B10,DRAWNULL),COLORRED,LINETHICK2;
AA:=VOL>REF(V,1)*1.9;
选股:((B1>REF(B1,1) AND (B2>REF(B2,1) AND (B3>REF(B3,1) AND (B4>REF(B4,1) AND (B5>REF(B5,1) AND (B6>REF(B6,1) AND(B7>REF(B7,1) AND (B8>REF(B8,1) AND (B9>REF(B9,1) AND (B10>REF(B10,1) AND (AA>0)))))))))))),LINETHICK0;
DRAWICON(选股,2,1);
进庄条件:=B1>REF(B1,1) AND B2>REF(B2,1) AND B3>REF(B3,1) AND B4>REF(B4,1) AND B5>REF(B5,1) AND B6>REF(B6,1) AND B7>REF(B7,1) AND B8>REF(B8,1) AND B9>REF(B9,1) AND B10>REF(B10,1);
STICKLINE(进庄条件,B1,B10,0.5,0),COLORYELLOW;
进庄选股:进庄条件 AND AA<=0,LINETHICK0;
DRAWTEXT(进庄选股,0,'←进庄'),COLORCYAN;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
{DRAWTEXTREL( 0,0,'量价齐升选股指标' ),画黄色
}
CV赋值:收盘价
BBIBOLL赋值:(CV的3日简单移动平均+CV的6日简单移动平均+CV的12日简单移动平均+CV的24日简单移动平均)/4
UPR赋值:BBIBOLL+6*BBIBOLL的11估算标准差
DWN赋值:BBIBOLL-6*BBIBOLL的11估算标准差
QJJ赋值:成交量/((最高价-最低价)*2-收盘价-开盘价的绝对值)
XVL赋值:(IF(收盘价>开盘价,QJJ*(最高价-最低价),IF(收盘价<开盘价,QJJ*(最高价-开盘价+收盘价-最低价),成交量/2))+IF(收盘价>开盘价,0-QJJ*(最高价-收盘价+开盘价-最低价),IF(收盘价<开盘价,0-QJJ*(最高价-最低价),0-成交量/2)))
HSL赋值:(XVL/20)/1.15
攻击赋值:((HSL*0.55+(1日前的HSL*0.33))+(2日前的HSL*0.22))
LLJX赋值:攻击的3日指数移动平均
0,POINTDOT,画白色
B1赋值:1的LLJX日累和
B2赋值:2的LLJX日累和
B3赋值:3的LLJX日累和
B4赋值:4的LLJX日累和
B5赋值:5的LLJX日累和
B6赋值:6的LLJX日累和
B7赋值:7的LLJX日累和
B8赋值:8的LLJX日累和
B9赋值:9的LLJX日累和
B10:=10的LLJX日累和
IF(B1<1日前的B1,B1,DRAWNULL),画绿色, 线宽为2
IF(B1>1日前的B1,B1,DRAWNULL),画红色, 线宽为2
IF(B2<1日前的B2,B2,DRAWNULL),画绿色
IF(B2>1日前的B2,B2,DRAWNULL),画红色
IF(B3<1日前的B3,B3,DRAWNULL),画绿色
IF(B3>1日前的B3,B3,DRAWNULL),画红色
IF(B4<1日前的B4,B4,DRAWNULL),画绿色
IF(B4>1日前的B4,B4,DRAWNULL),画红色
IF(B5<1日前的B5,B5,DRAWNULL),画绿色
IF(B5>1日前的B5,B5,DRAWNULL),画红色
IF(B6<1日前的B6,B6,DRAWNULL),画绿色
IF(B6>1日前的B6,B6,DRAWNULL),画红色
IF(B7<1日前的B7,B7,DRAWNULL),画绿色
IF(B7>1日前的B7,B7,DRAWNULL),画红色
IF(B8<1日前的B8,B8,DRAWNULL),画绿色
IF(B8>1日前的B8,B8,DRAWNULL),画红色
IF(B9<1日前的B9,B9,DRAWNULL),画绿色
IF(B9>1日前的B9,B9,DRAWNULL),画红色
IF(B10<1日前的B10,B10,DRAWNULL),画绿色
IF(B10>1日前的B10,B10,DRAWNULL),画红色, 线宽为2
AA赋值:成交量>1日前的V*1.9
输出选股:((B1>1日前的B1 AND (B2>1日前的B2 AND (B3>1日前的B3 AND (B4>1日前的B4 AND (B5>1日前的B5 AND (B6>1日前的B6 AND(B7>1日前的B7 AND (B8>1日前的B8 AND (B9>1日前的B9 AND (B10>1日前的B10 AND (AA>0)))))))))))),LINETHICK0
当满足条件选股时,在2和1之间画图标
进庄条件赋值:B1>1日前的B1 AND B2>1日前的B2 AND B3>1日前的B3 AND B4>1日前的B4 AND B5>1日前的B5 AND B6>1日前的B6 AND B7>1日前的B7 AND B8>1日前的B8 AND B9>1日前的B9 AND B10>1日前的B10
当满足条件进庄条件时,在B1和B10之间画柱状线
进庄输出选股:进庄条件 AND AA<=0,LINETHICK0
当满足条件进庄选股时,在0和'←进庄'位置书写文字