《通达信实战macd详细图解指标公式.docx》由会员分享,可在线阅读,更多相关《通达信实战macd详细图解指标公式.docx(4页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、通达信实战macd详细图解指标公式_正点财经TUD3:=BARSLAST(UD3);UDGLINE:=IF(TDU3TUD3,REF(HHV(HIGH,2),TDU3),REF(LLV(LOW,2),TUD3);JDU0:=REF(CLOSE,1)=REF(UDGLINE,1)ANDCLOSEUDGLINEANDTDU0TUD0;JUD0:=REF(CLOSE,1)=REF(UDGLINE,1)ANDCLOSEUDGLINEANDTUD0TDU0;JDU1:=JDU0ANDCOUNT(JDU0,TDU0)=1;JUD1:=JUD0ANDCOUNT(JUD0,TUD0)=1;JDU2:=JDU1
2、ANDREF(BARSLAST(JUD1),1)REF(BARSLAST(JDU1),1);JUD2:=JUD1ANDREF(BARSLAST(JUD1),1)REF(BARSLAST(JDU1),1);JDU3:=JDU1ANDREF(BARSLAST(JUD1),1)REF(BARSLAST(JDU1),1);JUD3:=JUD1ANDREF(BARSLAST(JUD1),1)REF(BARSLAST(JDU1),1);BSLINE:=IF(BARSLAST(JDU2)BARSLAST(JUD2),IF(REF(CROSS(0,MACD2),1),LLV(LOW,2),REF(LLV(LO
3、W,2),BARSLAST(REF(CROSS(0,MACD2),1),IF(REF(CROSS(MACD2,0),1),HHV(HIGH,2),REF(HHV(HIGH,2),BARSLAST(REF(CROSS(MACD2,0),1);STICKLINE(MACD2=0,0,MACD2,2,1),COLOR0000FF;STICKLINE(MACD2=0ANDMACD2REF(MACD2,1),0,MACD2,2,0),COLOR0000FF;STICKLINE(MACD20,0,MACD2,2,0),COLORFFFF00;STICKLINE(MACD20ANDMACD2REF(MACD
4、2,1),0,MACD2,2,1),COLORFFFF00;DIF:DIFF,LINETHICK2,COLOR0000FF;MACD:DEA,COLORFF0000;DEF:MACD2,LINETHICK0,COLORFFFF00;STICKLINE(CLOSE0,0,0,2,0),COLOR808080;DEFUT:=BARSLAST(CROSS(MACD2,0);DEFDT:=BARSLAST(CROSS(0,MACD2);DEFUL:=IF(MACD2=0,HHV(MACD2,DEFUT+1),REF(HHV(MACD2,DEFUT+1),DEFDT+1);DEFDL:=IF(MACD2
5、0,LLV(MACD2,DEFDT+1),REF(LLV(MACD2,DEFDT+1),DEFUT+1);DEFU2L:=REF(DEFUL,DEFUT+1);DEFD2L:=REF(DEFDL,DEFDT+1);DRAWICON(LLV(MACD2,4)0ANDMACD2REF(MACD2,1)ANDREF(MACD2,1)REF(MACD2,2)ANDREF(MACD2,2)REF(MACD2,3),MACD2,3);DRAWICON(HHV(MACD2,4)0ANDMACD2REF(MACD2,1)ANDREF(MACD2,1)REF(MACD2,2)ANDREF(MACD2,2)REF(MACD2,3),MACD2,1);DRAWICON(JUD1ORBARSLAST(JDU1)BARSLAST(JUD1)ANDMACD2=0ANDREF(MACD2,1)REF(DEFU2L,1)ANDMACD2DEFU2L,MACD2,2);DRAWICON(JDU1ORBARSLAST(JDU1)BARSLAST(JUD1)ANDMACD20ANDREF(MACD2,1)REF(DEFD2L,1)ANDMACD2DEFD2L,MACD2,2);通达信实战macd详细图解指标公式实例图解:通达信实战macd详细图解指标公式