上志商业

经济

通达信macd公式教程(通达信macd公式怎么用在手机)

时间:2022-09-30 07:32

   请老师编写一个macd的选股公式通达信的谢谢

  DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
SX:=BARSLAST(CROSS(DEA,DIFF))+1;
JX:=BARSLAST(CROSS(DIFF,DEA))+1;
T1:=IF(JX=1 AND DIFF>REF(DIFF,REF(JX,1)+1),1,0);
T2:=IF(JX=1 AND LLV(DIFF,SX)>REF(LLV(DIFF,SX),SX),1,0);
XG:T1 OR T2;
 

  通达信macd面积公式怎么导入

  {MACD面积}

  DIF:EMA(CLOSE,12)-EMA(CLOSE,26);

  DEA:EMA(DIF,9);

  MACD:(DIF-DEA)*2,COLORSTICK;

  JC:=DEA-DIF;

  
 

  绿柱面积:IF(MACD<0,SUM(0-MACD,BARSLAST(JC<0)),0),NODRAW,COLOR00FF00;

  红柱面积:IF(MACD>0,SUM(MACD,BARSLAST(JC>0)),0),NODRAW,COLOR00FFFF;

  A1:=IF(MACD<0,HHV(绿柱面积,BARSLAST(JC<0)),0);

  A2:=IF(MACD>0,HHV(红柱面积,BARSLAST(JC>0)),0);

  DRAWNUMBER(CROSS(DIF,DEA),0,REF(A1,1)),COLOR00FF00;

  DRAWNUMBER(CROSS(DEA,DIF),0,REF(A2,1)),COLOR00FFFF;

  LM:=REF(绿柱面积,BARSLAST(CROSS(DIF,DEA))+1);

  HM:=REF(红柱面积,BARSLAST(CROSS(DEA,DIF))+1);

  转强:CROSS(红柱面积,LM),NODRAW,COLORFFFF00;

  转弱:CROSS(绿柱面积,HM),NODRAW,COLOR00FF00;

  DRAWICON(转强,DEA,5);

  DRAWICON(转弱,DEA,6);

  
 

  通达信macd金叉公式 怎么设置

  SHORT、LONG等参数用系统自动默认即可:最后一句是金叉。

DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:EMA(DIF,MID);
MACD:(DIF-DEA)*2,COLORSTICK;
XG:CROSS(DIF,DEA);

祝您投资愉快。如果对您有帮助请记得采纳答案。谢。

  通达信MACD公式,请高手请把下面指标公式里的金叉死叉+个箭头表示谢谢

  DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK2;
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
STICKLINE(低位金叉,0,0.08,6,0),COLORYELLOW;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
STICKLINE(二次金叉,0,0.06,6,0),COLORFF00FF;
DRAWICON(二次金叉,DEA*0.9,1) ;
DRAWTEXT(二次金叉,0.1, 二次金叉),COLORYELLOW;
DRAWICON(CROSS(DIFF,DEA),DEA*1.02,1);
DRAWICON(CROSS(DEA,DIFF),DIFF*0.98,2);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA) AND DIFF<0;
STICKLINE(底背离,0,0.03,6,0),COLOR00FF00;
底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK4;
DRAWTEXT(底背离,DIFF, 底背离),COLORFF00FF;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);
顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK4;

  求macd 0轴上下附近金叉的选股公式

  A:=CROSS(MACD.DIF,MACD.DEA);
A AND MACD.DIF>=MACD.DEA+0.01 AND RANGE(MACD.DIF,-0.3,0.3);

测试通过!希望能够帮助你!

  求助;通达信MACD 0轴附近金叉公式

  DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);

  DEA:=EMA(DIF,9);

  MACD:=(DIF-DEA)*2,COLORSTICK;

  XG1:CROSS(DIF,DEA) AND DIF<0.05 AND DIF>0.05;

  关于如何导入

  快捷键CTRL+F

  通达信macd金叉公式 怎么设置

  SHORT、LONG等参数用系统自动默认即可:最后一句是金叉。

DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:EMA(DIF,MID);
MACD:(DIF-DEA)*2,COLORSTICK;
XG:CROSS(DIF,DEA);

祝您投资愉快。如果对您有帮助请记得采纳答案。谢。