您现在的位置:程序化交易>> 股票公式>> 其他>> 其他软件公式>>正文内容

MACD面积-缠论辅助指标[其他软件公式]

相关标签: 缠论macd指标源码 、 缠中说禅macd 、 缠中说禅macd判断背驰 、 缠论macd战法 、 缠中说禅的macd数值 、 缠中说禅macd参数 、 缠论 macd高级战法 、 缠中说禅macd用的数值 、 缠论30macd背离 、

 

 

缠论辅助指标-MACD面积(下面是要复制的代码)

//参数N:=10
DRAWGBK(c>0,colorrgb(0,0,0),colorrgb(0,0,0),1);
cs:=0.01;
MAcd:1.5*N/10*slOPE(c,N),colorSTICK;
//柱线//
STICKLINE(MACD<=ref(MACD,1)AND MACD>0,0,MACD,3,0 ),COLOR00AAFF;
STICKLINE(MAcd<=ref(MAcd,1)AND MAcd>0,0,MAcd,1.8,0 ),COLOR00BBFF;
STICKLINE(MAcd<=ref(MAcd,1)AND MAcd>0,0,MAcd,1.3,0 ),COLOR00CCFF;
STICKLINE(MAcd<=ref(MAcd,1)AND MAcd>0,0,MAcd,1.2,0 ),COLOR00DDFF;
STICKLINE(MAcd<=ref(MAcd,1)AND MAcd>0,0,MAcd,1,0 ),COLOR00EEFF;
STICKLINE(MAcd<=ref(MAcd,1)AND MAcd>0,0,MAcd,0.5,0 ),COLOR00FFFF;
STICKLINE(MAcd>ref(MAcd,1)AND MAcd>0,0,MAcd,3.4,0 ),COLOR0000AA;
STICKLINE(MAcd>ref(MAcd,1)AND MAcd>0,0,MAcd,3.2,0),COLOR0011BB;
STICKLINE(MAcd>ref(MAcd,1)AND MAcd>0,0,MAcd,3,0),COLOR0022CC;
STICKLINE(MAcd>ref(MAcd,1)AND MAcd>0,0,MAcd,2,0),COLOR0033DD;
STICKLINE(MAcd>ref(MAcd,1)AND MAcd>0,0,MAcd,1,0),COLOR0044EE;
STICKLINE(MAcd>ref(MAcd,1)AND MAcd>0,0,MAcd,0.5,0),COLOR0055FF; {本文来至CXH99.COM}
STICKLINE(MAcd>ref(MAcd,1)AND MAcd<=0,0,MAcd,3.4,0),COLORAA00BB;
STICKLINE(MAcd>ref(MAcd,1)AND MAcd<=0,0,MAcd,3.2,0),COLORBB11BB;
STICKLINE(MAcd>ref(MAcd,1)AND MAcd<=0,0,MAcd,3,0),COLORCC22BB;
STICKLINE(MAcd>ref(MAcd,1)AND MAcd<=0,0,MAcd,2,0 ),COLORDD33BB;
STICKLINE(MAcd>ref(MAcd,1)AND MAcd<=0,0,MAcd,1,0),COLOREE44BB;
STICKLINE(MAcd>ref(MAcd,1)AND MAcd<=0,0,MAcd,0.5,0 ),COLORFF55BB;
STICKLINE(MAcd<=ref(MAcd,1)AND MAcd<=0,0,MAcd,3,0 ),COLORFF7700;
STICKLINE(MAcd<=ref(MAcd,1)AND MAcd<=0,0,MAcd,1.5 ,0 ),COLORFF8811;
STICKLINE(MAcd<=ref(MAcd,1)AND MAcd<=0,0,MAcd,1.2,0 ),COLORFFAA22;
STICKLINE(MAcd<=ref(MAcd,1)AND MAcd<=0,0,MAcd,1.0 ,0 ),COLORFFBB33;
STICKLINE(MAcd<=ref(MAcd,1)AND MAcd<=0,0,MAcd,0.8 ,0 ),COLORFFDD44;
STICKLINE(MAcd<=ref(MAcd,1)AND MAcd<=0,0,MAcd,0.5 ,0 ),COLORFFFF55;
BV:=SUM(MACD/cs,0);
BA:=IF(MAX(BV,ref(BV,2))<ref(BV,1) OR MIN(BV,ref(BV,2))>ref(BV,1),1,0);
BC:=BARSLAST(BA)+1;
SMACD:=BV-ref(BV,BC);
var3:=if(MAcd>0,HHV(abs(MAcd),bc),LLV(MAcd,bc));
var4:=(MAcd)/20;{图形比例缩小1/20,可修改}
var5:=SMACD;
//背离线//
DIFF : EMA(CLOSE,N*12/10) - EMA(CLOSE,N*26/10);
DEA : EMA(DIFF,N*9/10);
drawnumber(ref(var4,1)>0 and var4<=0 ,ref(var3,1),ref(var5,1),0);
drawnumber(ref(var4,1)<0 and var4>=0 ,ref(var3,1),ref(abs(var5),1),0),coloryellow;
drawnumber(islastbar and var4<0,ref(var3,1),abs(var5),0),align2,colorred{,pxup40};
drawnumber(islastbar and var4>0,ref(var3,1),var5,0),align2,colorgreen{,pxdn100};

//本文 来源:CXH99.COM //

//复制代码到这里为止//

 

 

如果以上指标公式不适用于您常用的行情软件
 
或者您想改编成选股公式,以便快速选出某种形态个股的话,
 
可以联系我们相关技术人员 QQ: 262069696  进行有偿改编!

 

(责任编辑:程序化交易网整理)

 

 

如果以上指标公式不适用于您常用的行情软件

或者您想改编成选股公式,以便快速选出某种形态个股的话,

可以联系我们相关技术人员 QQ: 262069696  点击在线交流进行 有偿 改编!

 


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容