大智慧量价波段指标公式

2015-04-28    作者:投资家网tzj123.com    来源:本站整理

obv:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0);
DIFF:=EMA(obv,12)-EMA(obv,26);
bbDIFF:=DIFF-ref(DIFF,1);
DEA:=EMA(DIFF,9);
bbDEA:=DEA-ref(DEA,1);
MACD:=2*(DIFF-DEA);
PARTLINE(C,0),COLORWHITE;
PARTLINE(DIFF,DIFF>=REF(DIFF,1) AND DEA>REF(DEA,1)),LINETHICK4,Color0089FF;
FILLRGN(DIFF,DEA,DIFF>DEA),Color0089FF;
PARTLINE(DIFF,DIFF<REF(DIFF,1) AND DEA<REF(DEA,1)),LINETHICK4,COLORBLUE;
FILLRGN(DEA,DIFF,DIFF<DEA),COLORBLUE;
PARTLINE(DIFF,DIFF>=REF(DIFF,1) AND DEA<REF(DEA,1)),LINETHICK4,Color00C500;
PARTLINE(DIFF,DIFF<REF(DIFF,1) AND DEA>REF(DEA,1)),LINETHICK4,COLORYELLOW;
STICKLINE(MACD>ref(MACD,1) and MACD>0,0,MACD,2,0),COLORRED;
STICKLINE(MACD<ref(MACD,1) and MACD>0,0,MACD,2,0),COLORYELLOW;
STICKLINE(MACD<ref(MACD,1) and MACD<0,0,MACD,2,0),COLORCYAN;
STICKLINE(MACD>ref(MACD,1) and MACD<0,0,MACD,2,0),COLOR0099FF;
PARTLINE(C,2*(DEA-DIFF)),LINETHICK2,COLORGRAY;

阅读:1307    评论:0

联系我们 - 关于我们 - 网站地图

声明:站内所有文章、公式均来自互联网或网友分享提供,如侵犯您的权利请告知,我们会在24小时内及时删除! 


【电脑版】  【回到顶部】