永发信息网

请高手帮忙把这个macd改成可用在大智慧上 非常谢谢

答案:1  悬赏:80  手机版
解决时间 2021-04-15 11:45
  • 提问者网友:两耳就是菩提
  • 2021-04-15 07:21
DIFF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:EMA(DIFF,MID);
MACD:(DIFF-DEA)*2,COLORFFFF00,COLORSTICK;
A1:=BARSLAST(REF(CROSS(0,DEA),1));
B1:= BARSLAST(REF(COUNT(DEA<=0,A1+1)=A1+1 AND REF(DEA=LLV(DEA,A1+1),1) AND CROSS(DIFF,DEA),1));
金叉:=IF(CROSS(DIFF,DEA) AND DIFF<=0,0,DEA),COLORYELLOW;
低位多次金叉:IF(CROSS(DIFF,DEA) AND COUNT(B1>=1,B1+1)>=1 AND COUNT(DEA<=0,B1+1)=B1+1,0,DEA),COLORYELLOW;
DIBL1:=DIFF>=REF(DIFF,B1+1) AND CLOSE<=REF(CLOSE,B1+1) AND CROSS(DIFF,DEA) AND COUNT(B1>=1,B1+1)>=1 AND COUNT(DEA<=0,B1+1)=B1+1;
底背离:=IF(DIBL1,0,DEA);
DRAWLINE(B1=0,DEA,DIBL1=1,DEA,0),COLORRED,LINETHICK3;
A2:=BARSLAST(REF(CROSS(DEA,0),1));
B2:=BARSLAST(REF(COUNT(DEA>=0,A2+1)=A2+1 AND REF(DEA=HHV(DEA,A1+1),1) AND CROSS(DEA,DIFF),1));
死叉:=IF(CROSS(DEA,DIFF) AND DIFF>=0,0,DEA),COLORFFFF00;
高位多次死叉:IF(CROSS(DEA,DIFF) AND COUNT(B2>=1,B2+1)>=1 AND REF(COUNT(DEA>=0,B2+1)=B2+1,1),0,DEA),COLORFFFF00;
DINGBL1:=DIFF<=REF(DIFF,B2+1) AND CLOSE>=REF(CLOSE,B2+1) AND CROSS(DEA,DIFF) AND COUNT(B2>=1,B2+1)>=1 AND REF(COUNT(DEA>=0,B2+1)=B2+1,1);
顶背离:=IF(DINGBL1,0,DEA);
DRAWLINE(B2=0,DEA,DINGBL1,DEA,0),COLOR00FF00,LINETHICK3;
STICKLINE(DIFF>DEA,MACD,0,1,0),COLORRED;
STICKLINE(DEA>DIFF,MACD,0,1,0),COLORFFFF00;
最佳答案
  • 五星知识达人网友:污到你湿
  • 2021-04-15 08:17
DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:(DIFF-DEA)*2,COLORFFFF00,COLORSTICK;
A1:=BARSLAST(REF(CROSS(0,DEA),1));
B1:= BARSLAST(REF(COUNT(DEA<=0,A1+1)=A1+1 AND REF(DEA=LLV(DEA,A1+1),1) AND CROSS(DIFF,DEA),1));
金叉:IF(CROSS(DIFF,DEA) AND DIFF<=0,0,DEA),linethick0,COLORYELLOW;
低位多次金叉:IF(CROSS(DIFF,DEA) AND COUNT(B1>=1,B1+1)>=1 AND COUNT(DEA<=0,B1+1)=B1+1,0,DEA),COLORYELLOW;
DIBL1:=DIFF>=REF(DIFF,B1+1) AND CLOSE<=REF(CLOSE,B1+1) AND CROSS(DIFF,DEA) AND COUNT(B1>=1,B1+1)>=1 AND COUNT(DEA<=0,B1+1)=B1+1;
底背离:=IF(DIBL1,0,DEA);
DRAWLINE(B1=0,DEA,DIBL1=1,DEA,0),COLORRED,LINETHICK3;
A2:=BARSLAST(REF(CROSS(DEA,0),1));
B2:=BARSLAST(REF(COUNT(DEA>=0,A2+1)=A2+1 AND REF(DEA=HHV(DEA,A1+1),1) AND CROSS(DEA,DIFF),1));
死叉:IF(CROSS(DEA,DIFF) AND DIFF>=0,0,DEA),linethick0,COLORFFFF00;
高位多次死叉:IF(CROSS(DEA,DIFF) AND COUNT(B2>=1,B2+1)>=1 AND REF(COUNT(DEA>=0,B2+1)=B2+1,1),0,DEA),COLORFFFF00;
DINGBL1:=DIFF<=REF(DIFF,B2+1) AND CLOSE>=REF(CLOSE,B2+1) AND CROSS(DEA,DIFF) AND COUNT(B2>=1,B2+1)>=1 AND REF(COUNT(DEA>=0,B2+1)=B2+1,1);
顶背离:=IF(DINGBL1,0,DEA);
DRAWLINE(B2=0,DEA,DINGBL1,DEA,0),COLOR00FF00,LINETHICK3;
STICKLINE(DIFF>DEA,MACD,0,1,0),COLORRED;
STICKLINE(DEA>DIFF,MACD,0,1,0),COLORFFFF00;
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯