网站首页 > 飞狐公式 正文
飞狐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;
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),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}; >股票指标网更多精彩内容,请关注公众号:实盘操手
其他说明
1、在下载过程遇到问题,请您 联系客服:QQ:2180737354 或 微信:xxs008000(常用) 备用微信:bsqj88886(常用号不能用的情况再加),我们会在第一时间修复和反馈。
2、本站所提供的股票指标等资源请细看说明,适合自己再购买下载,指标不包安装,不懂的人切勿购买,新手勿扰。所有指标仅供参考学习交流,没稳赚的指标,赢亏自负,如果觉着指标好用请支持正版,否则产生的一切后果将由下载用户自行承担,有部分股票指标资源为网上收集或仿制而来,若模板侵犯了您的合法权益,请来联系我们,我们会及时删除,给您带来的不便,我们深表歉意!
⇒⇒⇒点击加入通达信指标公式交流群QQ群
- 上一篇: 大智慧绝对挣钱指标公式
- 下一篇: 大智慧得心应手指标公式
猜你喜欢
- 2023-10-17 屏幕自适应定点均线(飞狐)
- 2023-10-17 主力轨迹+庄家出现+XG(飞狐)
- 2023-10-17 安全投机(飞狐)
- 2023-10-17 共振买卖(飞狐)
- 2023-10-17 江恩轮中轮(新画法)(飞狐)
- 2023-10-17 新版KDJ飞升马(飞狐)
- 2023-10-17 七剑下天山(飞狐)
- 2023-10-17 OSC (艾略特震荡器)(飞狐)
- 2023-10-17 买入安全区远离危险区(飞狐)
- 2023-10-17 熊市好用的选股(飞狐)