macd顶底背离dif线背离共振副图金叉选股 股票指标炒股软件公式
28
2024 / 11 / 20
2023-02-22 11:42:40 通达信指标网
{公式名称: 量能
公式描述:
无参数
公式类型: 技术指标公式-其他类型
画线方法: 副图
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
参数精灵:无
用法注释:无
公式源码:}
VOLUME:VOL,VOLSTICK;
MAVOL1:MA(VOLUME,5);
MAVOL2:MA(VOLUME,10);
MA7:EMA(CLOSE,7);
MA21:EMA(CLOSE,21),COLORYELLOW,LINETHICK2;
XA_1:=10;
XA_2:=CONST(HHVBARS(VOL,XA_1));
XA_3:=XA_1;
XA_4:=CONST(REF(HHVBARS(VOL,XA_3),XA_2+1)+XA_2+1);
XA_5:=IF(CURRBARSCOUNT<=XA_2+XA_3+3 AND CURRBARSCOUNT>=XA_2+1,CONST(REF(MAX(CLOSE,OPEN),XA_4)),DRAWNULL);
XA_6:=IF(CURRBARSCOUNT<=XA_2+XA_3+3 AND CURRBARSCOUNT>=XA_2+1,CONST(REF(HIGH,XA_4)),DRAWNULL);
XA_7:=DRAWICON(CURRBARSCOUNT=XA_4+1,XA_5,25);
XA_8:=CONST(LLVBARS(VOL,XA_3));
XA_9:=XA_4+1;
XA_10:=REF(MAX(CLOSE,OPEN),XA_4);
QV:IF(CURRBARSCOUNT<=XA_2+XA_3+3 AND CURRBARSCOUNT>=XA_2+1,CONST(REF(VOL,XA_4)),DRAWNULL),COLORGREEN;
XA_11:=CROSS(CLOSE,XA_5) AND CROSS(VOL,QV) AND REF(MAX(CLOSE,OPEN),XA_2+1)=HHV(MAX(REF(CLOSE,1),REF(OPEN,1)),XA_2+1) AND XA_9>=5 AND XA_9<=11;
XA_12:=CROSS(CLOSE,XA_5) AND CROSS(VOL,QV) AND LAST(MAX(REF(CLOSE,1),REF(OPEN,1))<=REF(MAX(CLOSE,OPEN),1),XA_9,1) AND XA_9>=4 AND XA_9<=11 AND CLOSE>OPEN;
XA_13:=CROSS(CLOSE,XA_5) AND CROSS(VOL,QV) AND LAST(MAX(CLOSE,OPEN)<XA_6,XA_9-2,1) AND XA_9>=5 AND XA_9<=11 AND CLOSE>OPEN;
XG小粘合:XA_13 AND CROSS(MA7,MA21);
STICKLINE(CURRBARSCOUNT=XA_4+1,VOL,0,3,0),COLORYELLOW;
STICKLINE(XG小粘合,QV,0,3,0),COLORMAGENTA;
原文链接:https://www.tdxzb.com/?id=1056
本文版权:如无特别标注,本站文章均为原创。