《股票-通达信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)AND(CLOSEUDGLINE)AND(TDU0TUD0);JUD0:=(REF(CLOSE,1)=REF(UDGLINE,1)AND(CLOSEUDGLINE)AND(TUD0TDU0);JDU1:=(JDU0AND(COUNT(JDU0,TDU0)=1);JUD1:=(JUD0AND(COUNT(JUD0,TUD0
2、)=1);JDU2:=(JDU1AND(REF(BARSLAST(JUD1),1)REF(BARSLAST(JDU1),1);JUD2:=(JUD1AND(REF(BARSLAST(JUD1),1)REF(BARSLAST(JDU1),1);JDU3:=(JDU1AND(REF(BARSLAST(JUD1),1)REF(BARSLAST(JDU1),1);JUD3:=(JUD1AND(REF(BARSLAST(JUD1),1)REF(BARSLAST(JDU1),1);BSLINE:=IF(BARSLAST(JDU2)BARSLAST(JUD2),IF(REF(CROSS(0,MACD2),1
3、),LLV(LOW,2),REF(LLV(LOW,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);DRAWICON(JDU1OR(BARSLAST(JDU1)BARSLAST(JUD1),0,10);STICKLINE(MACD2=0),0,MACD2,3,1),COLOR0000FF;STICKLINE(MACD2=0)AND(MACD2REF(MACD2,1),0,MACD2,3,0),COLORCYAN
4、;STICKLINE(MACD20),0,MACD2,3,0),COLORFFFF00;STICKLINE(MACD20)AND(MACD2REF(MACD2,1),0,MACD2,3,1),COLORRED;DIF:DIFF,LINETHICK2,COLOR00FFFF;DEF:DEA,COLOR00FF00;MACD:MACD2,LINETHICK0,COLORFFFF00;DEFUT:=BARSLAST(CROSS(MACD2,0);DEFDT:=BARSLAST(CROSS(0,MACD2);DEFUL:=IF(MACD2=0),HHV(MACD2,(DEFUT+1),REF(HHV(
5、MACD2,(DEFUT+1),(DEFDT+1);DEFDL:=IF(MACD20),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)0)AND(MACD2REF(MACD2,1)AND(REF(MACD2,1)REF(MACD2,2)AND(REF(MACD2,2)REF(MACD2,3),MACD2,5);DRAWICON(HHV(MACD2,4)0)AND(MACD2REF(
6、MACD2,1)AND(REF(MACD2,1)REF(MACD2,2)AND(REF(MACD2,2)REF(MACD2,3),MACD2,4);DRAWICON(JUD1OR(BARSLAST(JDU1)BARSLAST(JUD1)AND(MACD2=0)AND(REF(MACD2,1)REF(DEFU2L,1)AND(MACD2DEFU2L),MACD2,12);DRAWICON(JDU1OR(BARSLAST(JDU1)BARSLAST(JUD1)AND(MACD20)AND(REF(MACD2,1)REF(DEFD2L,1)AND(MACD2DEFD2L),MACD2,12);通达信MACD实战解盘指标公式实例图解:通达信MACD实战解盘指标公式