最新更新 - 网站地图 -
您的当前位置:首页 > 股票公式 > 公式技巧 > macd主图指标改写成飞狐的

macd主图指标改写成飞狐的

来源:网络 点击: 时间:2022-12-21 19:47:47

编写要求:

解答:

?网友求助:

请老师帮忙将macd主图指标改写成飞狐的
macd主图指标原码:
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,MID);
MACD:=(DIF-DEA)*2,COLORSTICK;
DIFF:(54*REF(EMA(C,12),1)-26*REF(EMA(C,26),1))/28,COLORGREEN;
DIFF1:(54*EMA(C,12)-26*EMA(C,26))/28,NODRAW;
DEAA:(REF(DEA,1)*13*27
+13*25*REF(EMA(C,26),1)-27*11*REF(EMA(C,12),1))/((27-13)*2);

DEAA1:("MACD.DEA"*13*27

+13*25*EMA(C,26)-27*11*EMA(C,12))/((27-13)*2),NODRAW;

MACD0:((5/8*REF(MACD,1)+REF(DEA,1))*13*27+(13*25*REF(EMA(C,26),1)
-27*11*REF(EMA(C,12),1)))/28,COLORRED;
MACD1:((5/8*MACD+DEA)*13*27+(13*25*EMA(C,26)
-27*11*EMA(C,12)))/28,NODRAW;

DIF0:(13*25*REF(EMA(C,26),1)-11*27*REF(EMA(C,12),1))/28,NODRAW;
DIF1:(13*25*EMA(C,26)-11*27*EMA(C,12))/28,NODRAW;

DEA0:((13*25*REF(EMA(C,26),1)-11*27*REF(EMA(C,12),1))-4*27*13*REF(DEA,1))/28,
COLORRED,NODRAW;
DEA1:((13*25*EMA(C,26)-11*27*EMA(C,12))-4*27*13*DEA)/28,
COLORRED,NODRAW;

    Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号

    免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!

    Top