MACD底背离选股公式精华(必看)

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

MACD底背离选股公式、DRAWGBKLAST(DATE900101,STRIP(RGB(0,0,0),RGB(0,50,50),0));DRAWTEXTABS(10,0,'彤彤制作'),COLOR6600FF,LINETHICK2;DRAWTEXTABS(260,0,'超赢数据流向'),COLOR9933FF,LINETHICK2;DRAWTEXTABS(470,0,STKNAME+''+STKLABEL),COLOR00FFFF,LINETHICK2;DRAWRECTABS(2,15,910,185,0),COLORFFFFFF;DRAWTEXTABS(8,20,'日期'),COLOR00FFFF;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;DRAWTEXTABS(13,140,'前七天'),COLORFF00FF;DRAWTEXTABS(13,155,'前八天'),COLOR0099FF;DRAWTEXTABS(13,170,'前九天'),COLORFFFF33;{底背离,通达信版、同花顺版}DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);QZQ:=BARSLAST(REF(MACD,1)0ANDMACD0);QM:=LLVBARS(MACD,QZQ+20);MQDZ:=IF(QMQZQ,REF(MACD,QM),0);XG1:=MACD0ANDMACDMQDZANDCLOSE=LLV(CLOSE,QZQ+20)ANDMQDZ0;XG:REF(XG1,1)=1ANDMACDREF(MACD,1);{双底背离,通达信版、同花顺版}DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);QZQ:=BARSLAST(REF(MACD,1)0ANDMACD0);QM:=LLVBARS(MACD,QZQ+20);MQDZ:=IF(QMQZQ,REF(MACD,QM),0);QF:=LLVBARS(DIFF,QZQ+20);DQDZ:=IF(QFQZQ,REF(DIFF,QF),0);XG1:=MACD0ANDMACDMQDZANDDIFF0ANDDIFFDQDZANDCLOSE=LLV(CLOSE,QZQ+20)ANDMQDZ0ANDDQDZ0;XG:REF(XG1,1)=1ANDMACDREF(MACD,1);注:底双背离是指MACD(绿柱)和DIFF(黄白线)都底背离

1 / 2
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功