[求助]MACD改写 [文华财经]
- 咨询内容:
老师,从通达信中改写过来的,加载时提示如图:
源码是DIFIF1:=EMA(CLOSE,80) - EMA(CLOSE,160);DEAEA1:=EMA(DIFIF1,60);MACD1:=2*(DIFIF1-DEAEA1);MACD2:=EMA(MACD1,3);STICK(MACD1>MACD2 AND MACD1>0,0,MACD1,3,COLORRED,0);STICK(MACD1>MACD2 AND MACD1<0,0,MACD1,3,COLORBLUE,0);STICK(MACD1<MACD2,0,MACD1,3,COLORWHITE,0);STICK(MACD1>=0 OR MACD1<=0,0,MACD1,3,COLORWHITE,1);STICK(MACD1<MACD2 AND MACD1>0,0,MACD1,3,COLORGREEN,0);MACD:MACD1,NODRAW,COLORMAGENTA;AA:IFELSE(DIFIF1>=DEAEA1,DIFIF1,NULL),COLORRED,LINETHICK2;BB:IFELSE(DEAEA1>=DIFIF1,DEAEA1,NULL),COLORYELLOW,LINETHICK2;DRAWICON(CROSS(DIFIF1,DEAEA1),DEAEA1-0.02,1);A10:=CROSS(MACD1,0);IFELSE(MACD1<0,MACD1,0),COLORWHITE,NODRAW;IFELSE(A10,5,0),LINETHICK1,COLORYELLOW;
麻烦看一下哪里不对并改写
此主题相关图片如下:11111.jpg
!谢谢!! - 文华技术人员:
DIFIF1:=EMA(CLOSE,80) - EMA(CLOSE,160);
DEAEA1:=EMA(DIFIF1,60);
MACD1:=2*(DIFIF1-DEAEA1);
MACD2:=EMA(MACD1,3);
STICK(MACD1>MACD2 AND MACD1>0,0,MACD1,3,COLORRED,0);
STICK(MACD1>MACD2 AND MACD1<0,0,MACD1,3,COLORBLUE,0);
STICK(MACD1<MACD2,0,MACD1,3,COLORWHITE,0);
STICK(MACD1>=0 OR MACD1<=0,0,MACD1,3,COLORWHITE,1);
STICK(MACD1<MACD2 AND MACD1>0,0,MACD1,3,COLORGREEN,0);
MACD:MACD1,NODRAW,COLORMAGENTA;
AA:IFELSE(DIFIF1>=DEAEA1,DIFIF1,NULL),COLORRED,LINETHICK2;
BB:IFELSE(DEAEA1>=DIFIF1,DEAEA1,NULL),COLORYELLOW,LINETHICK2;
DRAWICON(CROSS(DIFIF1,DEAEA1),DEAEA1-0.02,1);
A10:=CROSS(MACD1,0);
IFELSE(MACD1<0,MACD1,0),COLORWHITE,NODRAW;
IFELSE(A10,5,0),LINETHICK1,COLORYELLOW;
模型仅供参考
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 1145508240 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容