飞狐周日MACD指标公式

 

上市日期年:REF(YEAR,BARSCOUNT(C)-1),linethick0,COLORRED;
月:REF(MONTH,BARSCOUNT(C)-1),linethick0,COLORYELLOW;
日:REF(DAY,BARSCOUNT(C)-1),linethick0,COLORCYAN;
DIFF :=( EMA(CLOSE,12) - EMA(CLOSE,26))*2;
DEA := EMA(DIFF,9);
macd := 2*(DIFF-DEA), COLORSTICK;
DIFFA := "macd.diff#week";
DEAA := "macd.dea#week";
FILLRGN(DIFFA>DEAA,DIFFA,DEAA),COLOR3232F0;FILLRGN(DIFFA<DEAA,DIFFA,DEAA),COLORF06232;
PARTLINE(DIFF>REF(DIFF,1),DIFF),linethick2,colorred;
PARTLINE(DIFF<REF(DIFF,1),DIFF),LINETHICK2,COLORGREEN;
PARTLINE(DIFF>REF(DIFF,1)AND REF(DIFF,1)>0,DIFF),linethick2,colorred;
PARTLINE(DEA>REF(DEA,1),DEA),coloryellow;
PARTLINE(DEA<REF(DEA,1),DEA),COLORYELLOW;
STICKLINE(MACD,0,MACD,6,0 ),COLOR00AAFF;
STICKLINE(MACD,0,MACD,6.6,0 ),COLOR00BBFF;
STICKLINE(MACD,0,MACD,4.4,0 ),COLOR00CCFF;
STICKLINE(MACD,0,MACD,3.3,0 ),COLOR00ddfF;
STICKLINE(MACD,0,MACD,2.2,0 ),COLOR00EEFF;
STICKLINE(MACD,0,MACD,1.1,0 ),COLOR00FFFF;
STICKLINE(MACD>=ref(MACD,1)and MACD>0,0,MACD,6,0 ),COLOR0000AA;
STICKLINE(MACD>=ref(MACD,1)and MACD>0,0,MACD,6.6 ,0 ),COLOR0011BB;
STICKLINE(MACD>=ref(MACD,1)and MACD>0,0,MACD,4.4,0 ),COLOr0022CC;
STICKLINE(MACD>=ref(MACD,1)and MACD>0,0,MACD,3.3 ,0 ),COLOR0033DD;
STICKLINE(MACD>=ref(MACD,1)and MACD>0,0,MACD,2.2 ,0 ),COLOR0044EE;
STICKLINE(MACD>=ref(MACD,1)and MACD>0,0,MACD,1.1 ,0 ),COLOR0055FF;
STICKLINE(MACD>ref(MACD,1)and MACD<0,0,MACD,6,0 ),COLOR00AAFF;
STICKLINE(MACD>ref(MACD,1)and MACD<0,0,MACD,6.6 ,0 ),COLOR00BBFF;
STICKLINE(MACD>ref(MACD,1)and MACD<0,0,MACD,4.4,0 ),COLOR00CCFF;
STICKLINE(MACD>ref(MACD,1)and MACD<0,0,MACD,3.3,0 ),COLOR00DDFF;
STICKLINE(MACD>ref(MACD,1)and MACD<0,0,MACD,2.2 ,0 ),COLOR00EEFF;
STICKLINE(MACD>ref(MACD,1)and MACD<0,0,MACD,1.1 ,0 ),COLOR00FFFF;
STICKLINE(MACD<=ref(MACD,1)and MACD<0,0,MACD,6,0 ),COLORFF7700;
STICKLINE(MACD<=ref(MACD,1)and MACD<0,0,MACD,6.6 ,0 ),COLORFF8811;
STICKLINE(MACD<=ref(MACD,1)and MACD<0,0,MACD,4.4,0 ),COLORFFAA22;
STICKLINE(MACD<=ref(MACD,1)and MACD<0,0,MACD,3.3 ,0 ),COLORFFBB33;
STICKLINE(MACD<=ref(MACD,1)and MACD<0,0,MACD,2.2 ,0 ),COLORFFDD44;
STICKLINE(MACD<=ref(MACD,1)and MACD<0,0,MACD,1.1 ,0 ),COLORFFFF55;
PARTLINE(DIFFA>REF(DIFFA,1),DIFFA),linethick1,colorRED;
PARTLINE(DIFFA<REF(DIFFA,1),DIFFA),LINETHICK1,COLORGREEN;
PARTLINE(DIFFA>REF(DIFFA,1)AND REF(DIFFA,1)>0,DIFFA),linethick1,colorred;
PARTLINE(DEAA>REF(DEAA,1),DEAA),color00DDDD;
PARTLINE(DEAA<REF(DEAA,1),DEAA),COLOR00DDDD;
DRAWICON(cross(DIFFA,DEAA),DIFFA*1,10);
DRAWICON(cross(DEAA,DIFFA),DEAA*1,11);




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


解密、定制、编写公式指标请联系QQ或微信同号:88652583
置顶指标

相关指标公式

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

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