資源描述:
《MACD底背離選股公式精華(必看).doc》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫(kù)。
1、MACD底背離選股公式、DRAWGBKLAST(DATE>,STRIP(RGB(0,0,0),RGB(0,50,50),0));DRAWTEXTABS(10,0,'彤彤制作'),COLOR6600FF,LINETHICK2;DRAWTEXTABS(260,0,'超贏數(shù)據(jù)流向'),COLOR9933FF,LINETHICK2;DRAWTEXTABS(470,0,STKNAME+''+STKLABEL),COLOR00FFFF,LINETHICK2;DRAWRECTABS(2,15,910,185,0),COLORFFFFFF;DRAWTEXTABS(8,20,'日期'),COLOR00F
2、FFF;DRAWTEXTABS(10,35,''+year+'年'+month+'月'+day+'日'),COLOR3300FF;DRAWTEXTABS(13,50,'前一天'),COLORFF00FF;DRAWTEXTABS(13,65,'前二天'),COLOR0099FF;DRAWTEXTABS(13,80,'前三天'),COLORFFFF33;DRAWTEXTABS(13,95,'前四天'),COLOR00FFFF;DRAWTEXTABS(13,110,'前五天'),COLOR8000FF;DRAWTEXTABS(13,125,'前六天'),COLORFFFFFF;DRAWTEX
3、TABS(13,140,'前七天'),COLORFF00FF;DRAWTEXTABS(13,155,'前八天'),COLOR0099FF;DRAWTEXTABS(13,170,'前九天'),COLORFFFF33;{底背離,通達(dá)信版、同花順版}DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);QZQ:=BARSLAST(REF(MACD,1)<0ANDMACD>0);QM:=LLVBARS(MACD,QZQ+20);MQDZ:=IF(QM>QZQ,REF(MACD,QM),0);XG1:=MACD
4、<0ANDMACD>MQDZ?ANDCLOSE=LLV(CLOSE,QZQ+20)ANDMQDZ<0;XG:REF(XG1,1)=1ANDMACD>REF(MACD,1);?{雙底背離,通達(dá)信版、同花順版}DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);QZQ:=BARSLAST(REF(MACD,1)<0ANDMACD>0);QM:=LLVBARS(MACD,QZQ+20);MQDZ:=IF(QM>QZQ,REF(MACD,QM),0);QF:=LLVBARS(DIFF,QZQ+20);DQD
5、Z:=IF(QF>QZQ,REF(DIFF,QF),0);XG1:=MACD<0ANDMACD>MQDZANDDIFF<0ANDDIFF>DQDZ?ANDCLOSE=LLV(CLOSE,QZQ+20)ANDMQDZ<0ANDDQDZ<0;XG:REF(XG1,1)=1ANDMACD>REF(MACD,1);?注:底雙背離是指MACD(綠柱)和DIFF(黃白線)都底背離