通达信资金量能趋势判断副图指标 选择逻辑正确的票 源码 附图

{资金量能副图}
REFLINE:0;
DIFF:=EMA(CLOSE,3)-EMA(CLOSE,8);
DEA:=EMA(DIFF,3);
MACD:=2*(DIFF-DEA);
X1:=EMA(DIFF,5)*5;
X2:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*5;
X3:IF(X2>0,X2,0),POINTDOT,COLORRED;
X4:IF(X2<0,X2,0),POINTDOT,COLORGREEN;
{红色}
STICKLINE(X2>0,0,X2,2.4,0),COLOR000099;
STICKLINE(X2>0,0,X2,2.0,0),COLOR0000AA;
STICKLINE(X2>0,0,X2,1.6,0),COLOR0000CC;
STICKLINE(X2>0,0,X2,1.2,0),COLOR0000DD;
STICKLINE(X2>0,0,X2,0.8,0),COLOR0000EE;
STICKLINE(X2>0,0,X2,0.4,0),COLOR0000FF;
{青色}
STICKLINE(X2>0 AND X2<X1 AND X2<REF(X2,1),0,X2,2.4,0),COLORFFBF00;
{绿色}
STICKLINE(X2<0,0,X2,2.4,0),COLOR007700;
STICKLINE(X2<0,0,X2,2.0,0),COLOR009900;
STICKLINE(X2<0,0,X2,1.6,0),COLOR00CC00;
STICKLINE(X2<0,0,X2,1.2,0),COLOR00DD00;
STICKLINE(X2<0,0,X2,0.8,0),COLOR00FF00;
STICKLINE(X2<0,0,X2,0.4,0),COLOR00FF00;
{紫色}
STICKLINE(X2<0 AND X2>X1 AND X2>REF(X2,1),0,X2,2.4,0),COLOR990099;
STICKLINE(X2<0 AND X2>X1 AND X2>REF(X2,1),0,X2,2.0,0),COLORAA00AA;
STICKLINE(X2<0 AND X2>X1 AND X2>REF(X2,1),0,X2,1.6,0),COLORCC00CC;
STICKLINE(X2<0 AND X2>X1 AND X2>REF(X2,1),0,X2,1.2,0),COLORDD00DD;
STICKLINE(X2<0 AND X2>X1 AND X2>REF(X2,1),0,X2,0.8,0),COLOREE00EE;
STICKLINE(X2<0 AND X2>X1 AND X2>REF(X2,1),0,X2,0.4,0),COLORFF00FF;
资金动能2:X2,COLORRED,LINETHICK2;
资金动能1:X1,COLORYELLOW,LINETHICK2;
DRAWICON((CROSS(资金动能2,资金动能1) AND 资金动能1<-0.25),资金动能1,1);
资金买点:CROSS(资金动能2,资金动能1) AND 资金动能1<-0.25,LINETHICK2,COLOR0088FF;DRAWTEXT_FIX(C>O,0.01,0.01,0,' WWW.GOODGUPIAO.COM'),COLORWHITE;
DRAWICON((CROSS(资金动能1,资金动能2) AND 资金动能2>0.25),资金动能2,2);

VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV1:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
OBV2:=EMA(OBV1,3)-MA(OBV1,9);
OBV3:=EMA(IF(OBV2>0,OBV2,0),3);
MAC3:=MA(C,3);
SHORT:=12;
LONG:=26;
MID:=9;
DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG),NODRAW;
STICKLINE(OBV3>REF(OBV3,1) AND MAC3>REF(MAC3,1),0,X2,0.4,0),COLOR00D8FF;
资金量能:OBV3>REF(OBV3,1) AND MAC3>REF(MAC3,1),COLORRED,NODRAW;



来函数检测结果如下:
该公式没有未来函数


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

输出{资金量能副图} REFLINE:0
DIFF赋值:收盘价的3日指数移动平均-收盘价的8日指数移动平均
DEA赋值:DIFF的3日指数移动平均
MACD赋值:2*(DIFF-DEA)
X1赋值:DIFF的5日指数移动平均*5
X2赋值:((收盘价的3日指数移动平均-收盘价的8日指数移动平均))*5
如果X2>0返回X2否则返回0
如果X2<0返回X2否则返回0
当满足条件X2>0时,在0和X2之间画柱状线
当满足条件X2>0时,在0和X2之间画柱状线
当满足条件X2>0时,在0和X2之间画柱状线
当满足条件X2>0时,在0和X2之间画柱状线
当满足条件X2>0时,在0和X2之间画柱状线
当满足条件X2>0时,在0和X2之间画柱状线
{青色} STICKLINE(X2>0 AND X2当满足条件X2<0时,在0和X2之间画柱状线
当满足条件X2<0时,在0和X2之间画柱状线
当满足条件X2<0时,在0和X2之间画柱状线
当满足条件X2<0时,在0和X2之间画柱状线
当满足条件X2<0时,在0和X2之间画柱状线
当满足条件X2<0时,在0和X2之间画柱状线
{紫色} STICKLINE(X2<0 AND X2>X1 AND X2>1日前的X2,0,X2,2.4,0),COLOR990099
STICKLINE(X2<0 AND X2>X1 AND X2>1日前的X2,0,X2,2.0,0),COLORAA00AA
STICKLINE(X2<0 AND X2>X1 AND X2>1日前的X2,0,X2,1.6,0),COLORCC00CC
STICKLINE(X2<0 AND X2>X1 AND X2>1日前的X2,0,X2,1.2,0),COLORDD00DD
STICKLINE(X2<0 AND X2>X1 AND X2>1日前的X2,0,X2,0.8,0),COLOREE00EE
STICKLINE(X2<0 AND X2>X1 AND X2>1日前的X2,0,X2,0.4,0),COLORFF00FF
输出资金动能2:X2,画红色, 线宽为2
输出资金动能1:X1,画黄色, 线宽为2
DRAWICON((资金动能2上穿资金动能1 AND 资金动能1<-0.25),资金动能1,1)
输出资金买点:资金动能2上穿资金动能1 AND 资金动能1<-0.25, 线宽为2,COLOR0088FF
当满足条件C>O时,在横轴0.01纵轴0.01位置书写文字
DRAWICON((资金动能1上穿资金动能2 AND 资金动能2>0.25),资金动能2,2)
VA赋值:IF(收盘价>1日前的收盘价,成交量,-成交量)
OBV1赋值:SUM(IF(收盘价=1日前的收盘价,0,VA),0)
OBV2赋值:OBV1的3日指数移动平均-OBV1的9日简单移动平均
如果OBV2>0返回OBV2否则返回0
MAC3赋值:C的3日简单移动平均
SHORT赋值:12
LONG赋值:26
MID赋值:9
输出DIF:收盘价的SHORT日指数移动平均-收盘价的LONG日指数移动平均,NODRAW
STICKLINE(OBV3>1日前的OBV3 AND MAC3>1日前的MAC3,0,X2,0.4,0),COLOR00D8FF
输出资金量能:OBV3>1日前的OBV3 AND MAC3>1日前的MAC3,画红色,NODRAW

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

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