好股票軟件下載網(wǎng)(www.goodgupiao.com)提示:您正在下載的是:狄馬克TD序列指數(shù)主圖指標(biāo)修正版
自3月21日發(fā)了“預(yù)言帝狄馬克的TD序列主圖(有圖、源碼)已修正”一帖后,受到壇內(nèi)不少老師同學(xué)的關(guān)注和指點(diǎn),在此一并致謝!
狄馬克交易系統(tǒng)指標(biāo)總共有大約70多個(gè)吧!TD序列指標(biāo)只是其中一種。狄馬克TD指標(biāo)TD序列是由價(jià)格反轉(zhuǎn)、 TD結(jié)構(gòu)、 TD計(jì)數(shù)三大部分組成。TD準(zhǔn)備即TD買入結(jié)構(gòu),也叫價(jià)格反轉(zhuǎn)。狄馬克認(rèn)為一只股票收盤價(jià)與前兩個(gè)周期的最高點(diǎn)與最低點(diǎn)進(jìn)行比較,如果一個(gè)形態(tài)被重復(fù)了13次,那么當(dāng)前周期便會"枯竭",由此可結(jié)合其他指標(biāo)判斷趨勢拐點(diǎn)。
常見的指標(biāo)有一類是趨勢指標(biāo),還有一類是震蕩指標(biāo)。趨勢指標(biāo),常能夠幫助我們追蹤趨勢發(fā)展,獲取最大利潤。震蕩指標(biāo),幫助我們發(fā)現(xiàn)震蕩走勢的高低點(diǎn),從而獲取低買高賣的差價(jià)。當(dāng)然,也肯定有兩者兼而顧之的指標(biāo)。不過,能夠兩者兼顧的好指標(biāo)不多,那么,狄馬克指標(biāo)體系里TD序列指標(biāo)就正好算其中之一。
這里也聲明一下我的本意是提供一個(gè)指標(biāo)供高手完善,并不想賺取神馬幣,只是編寫也算一種勞動,望各位尊重在壇里發(fā)指標(biāo)的同學(xué)們的領(lǐng)導(dǎo)付出!壇里提倡的是交流,學(xué)習(xí),共同提高。目前,有關(guān)狄馬克TD序列指數(shù)主圖指標(biāo)通達(dá)信的不多,只有飛狐,大智慧的。我是用慣了通達(dá)信軟件,這才是根據(jù)對狄馬克交易系統(tǒng)的交易規(guī)則的理解,自己嘗試自己編寫一個(gè)指標(biāo)。但通達(dá)信的函數(shù)表達(dá)有限,很多交易規(guī)則無法表達(dá)。。。。這也是網(wǎng)上通達(dá)信有關(guān)狄馬克交易系統(tǒng)指標(biāo)很少的原因吧!但狄馬克交易系統(tǒng)指標(biāo)我也是才初步接觸,理解能力有限,加上自己不是指標(biāo)編寫高手,只是嘗試提供一個(gè)初版,供大家學(xué)習(xí),研究。更指望指標(biāo)編寫高手完善!也算拋磚引玉吧!本只提供了狄馬克TD序列指數(shù)主圖指標(biāo)的TD買入結(jié)構(gòu)。TD序列分買入和賣出兩部分,至于TD賣出序列計(jì)數(shù)的提示等高手來完善吧,或者等以后逐步完善。。。。。
公式只是交易者參與交易時(shí)自己對市場認(rèn)識、理解的提示而已。不是不敗秘訣,甚至是秘密武器!我等用他人的公式,只是學(xué)習(xí)他人的交易辦法,不是萬能的!一句話公式是死的!人是活的!同樣的公式,他人用,我等用,實(shí)際效果完全不一樣!切記?。?!
另下過“預(yù)言帝狄馬克的TD序列主圖”指標(biāo)的同學(xué)可不用再下載“狄馬克TD序列指數(shù)主圖指標(biāo)修正版”,指標(biāo)寫法一樣,只是寫法完善一點(diǎn),加進(jìn)了菲波納契螺旋周期神奇數(shù)列,以便和狄馬克TD序列指數(shù)主圖相互印證趨勢拐點(diǎn)。下過的同學(xué)可以自行修改,添加(菲波納契螺旋周期神奇數(shù)列公式網(wǎng)上很多)
{TD準(zhǔn)備=買入結(jié)構(gòu)}
TD準(zhǔn)備:=IF(REF(C,1)>REF(C,4),1,0);
TD0:=BARSLAST(TD準(zhǔn)備);
A:=IF(BARSSINCEN(LAST(C<REF(C,4),9,0),9),1,DRAWNULL);
F:=IF(BARSLASTCOUNT(C<REF(C,4))>=9,1, A);
G:=A+F;
TD11:=IF(1,TD0=1,0);
{TD21:=IF(1,LLV(C,1)<REF(C,4),0);}
TD21:=IF(1,G,DRAWNULL);
A1:=TD11 AND TD21;
TD12:=IF(2,TD0=2,0);
{TD22:=IF(2,LLV(C,2)<REF(C,4),0);}
TD22:=IF(2,G,DRAWNULL);
A2:=TD12 AND TD22;
TD13:=IF(3,TD0=3,0);
{TD23:=IF(3,LLV(C,3)<REF(C,4),0);}
TD23:=IF(3,G,DRAWNULL);
A3:=TD13 AND TD23;
TD14:=IF(4,TD0=4,0);
{TD24:=IF(4,LLV(C,4)<REF(C,4),0);}
TD24:=IF(4,G,DRAWNULL);
A4:=TD14 AND TD24;
TD15:=IF(5,TD0=5,0);
{TD25:=IF(5,LLV(C,5)<REF(C,4),0);}
TD25:=IF(5,G,DRAWNULL);
A5:=TD15 AND TD25;
TD16:=IF(6,TD0=6,0);
{TD26:=IF(6,LLV(C,6)<REF(C,4),0);}
TD26:=IF(6,G,DRAWNULL);
A6:=TD16 AND TD26;
TD17:=IF(7,TD0=7,0);
{TD27:=IF(7,LLV(C,7)<REF(C,4),0);}
TD27:=IF(7,G,DRAWNULL);
A7:=TD17 AND TD27;
TD18:=IF(8,TD0=8,0);
{TD28:=IF(8,LLV(C,8)<REF(C,4),0);}
TD28:=IF(8,G,DRAWNULL);
A8:=TD18 AND TD28;
TD19:=IF(9,TD0=9,0);
{TD29:=IF(9,LLV(C,9)<REF(C,4),0);}
TD29:=IF(9,G,DRAWNULL);
A9:=TD19 AND TD29;
DRAWTEXT(A1,L-0.3,'1'),COLORYELLOW;
DRAWTEXT(A2,L-0.3,'2'),COLORYELLOW;
DRAWTEXT(A3,L-0.3,'3'),COLORYELLOW;
DRAWTEXT(A4,L-0.3,'4'),COLORYELLOW;
DRAWTEXT(A5,L-0.3,'5'),COLORYELLOW;
DRAWTEXT(A6,L-0.3,'6'),COLORYELLOW;
DRAWTEXT(A7,L-0.3,'7'),COLORYELLOW;
DRAWTEXT(A8,L-0.3,'8'),COLORYELLOW;
DRAWTEXT(A9,L-0.3,'9'),COLORYELLOW;
{TD13次倒數(shù)=買入計(jì)數(shù)}
TDP:=BARSLAST(A9);
B:=IF(LAST(C<REF(C,2),13,0),1,DRAWNULL);
TD11A:=IF(1,TDP=1,TDP);
TD21A:=IF(1,LLV(C,1)<REF(L,2),DRAWNULL);
{TD21A:=IF(1,B,DRAWNULL);}
D1:=TD11A AND TD21A;
TD12A:=IF(2,TDP=2,TDP);
TD22A:=IF(2,LLV(C,2)<REF(L,2),DRAWNULL);
{TD22A:=IF(2,B,DRAWNULL);}
D2:=TD12A AND TD22A;
TD13A:=IF(3,TDP=3,TDP);
TD23A:=IF(3,LLV(C,3)<REF(L,2),DRAWNULL);
{TD23A:=IF(3,B,DRAWNULL);}
D3:=TD13A AND TD23A;
TD14A:=IF(4,TDP=4,TDP);
TD24A:=IF(4,LLV(C,4)<REF(L,2),DRAWNULL);
{TD24A:=IF(4,B,DRAWNULL);}
D4:=TD14A AND TD24A;
TD15A:=IF(5,TDP=5,TDP);
TD25A:=IF(5,LLV(C,5)<REF(L,2),DRAWNULL);
{TD25A:=IF(5,B,DRAWNULL);}
D5:=TD15A AND TD25A;
TD16A:=IF(6,TDP=6,TDP);
TD26A:=IF(6,LLV(C,6)<REF(L,2),DRAWNULL);
{TD26A:=IF(6,B,DRAWNULL);}
D6:=TD16A AND TD26A;
TD17A:=IF(7,TDP=7,TDP);
TD27A:=IF(7,LLV(C,7)<REF(L,2),DRAWNULL);
{TD27A:=IF(7,B,DRAWNULL);}
D7:=TD17A AND TD27A;
TD18A:=IF(8,TDP=8,TDP);
TD28A:=IF(8,LLV(C,8)<REF(L,2),DRAWNULL);
{TD28A:=IF(8,B,DRAWNULL);}
D8:=TD18A AND TD28A;
TD19A:=IF(9,TDP=9,TDP);
TD29A:=IF(9,LLV(C,9)<REF(L,2),DRAWNULL);
{TD29A:=IF(9,B,DRAWNULL);}
D9:=TD19A AND TD29A;
TD10A:=IF(10,TDP=10,TDP);
TD20A:=IF(10,LLV(C,10)<REF(L,2),DRAWNULL);
{TD20A:=IF(10,B,DRAWNULL);}
D10:=TD10A AND TD20A;
TD110A:=IF(11,TDP=11,TDP);
TD210A:=IF(11,LLV(C,11)<REF(L,2),DRAWNULL);
{TD210A:=IF(11,B,DRAWNULL);}
D11:=TD110A AND TD210A;
TD120A:=IF(12,TDP=12,TDP);
TD220A:=IF(12,LLV(C,12)<REF(L,2),DRAWNULL);
{TD220A:=IF(12,B,DRAWNULL);}
D12:=TD120A AND TD220A;
TD130A:=IF(13,TDP=13,TDP);
TD230A:=IF(13,LLV(C,13)<REF(L,2),DRAWNULL);
{TD230A:=IF(13,B,DRAWNULL);}
D13:=TD130A AND TD230A;
DRAWTEXT(D1,L-0.6,'1'),COLORRED;
DRAWTEXT(D2,L-0.6,'2'),COLORRED;
DRAWTEXT(D3,L-0.6,'3'),COLORRED;
DRAWTEXT(D4,L-0.6,'4'),COLORRED;
DRAWTEXT(D5,L-0.6,'5'),COLORRED;
DRAWTEXT(D6,L-0.6,'6'),COLORRED;
DRAWTEXT(D7,L-0.6,'7'),COLORRED;
DRAWTEXT(D8,L-0.6,'8'),COLORRED;
DRAWTEXT(D9,L-0.6,'9'),COLORRED;
DRAWTEXT(D10,L-0.6,'10'),COLORRED;
DRAWTEXT(D11,L-0.6,'11'),COLORRED;
DRAWTEXT(D12,L-0.6,'12'),COLORRED;
DRAWTEXT(D13,L-0.6,'13'),COLORRED;
{神奇數(shù)列時(shí)間循環(huán)周期}
{菲波納契螺旋周期;易學(xué)難精;關(guān)注成黃金分割比率的波段位置}
DRAWTEXT(CURRBARSCOUNT=3,HIGH*1.02,'3'), COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=5,HIGH*1.02,'5'), COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=8,HIGH*1.02,'8'), COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=13,HIGH*1.02,'13'), COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=21,HIGH*1.02,'21'), COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=34,HIGH*1.02,'34'), COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=55,HIGH*1.02,'55'), COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=89,HIGH*1.02,'89'), COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=144,HIGH*1.02,'144'), COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=233,HIGH*1.02,'233'), COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=377,HIGH*1.02,'377'), COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=610,HIGH*1.02,'610'), COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=987,HIGH*1.02,'987'), COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=1597,HIGH*1.02,'1597'), COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=2584,HIGH*1.02,'2584'), COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=4181,HIGH*1.02,'4181'), COLORGREEN;
{盧卡斯螺旋周期,《超級短線新武器》一書有具體的實(shí)戰(zhàn)案例}
DRAWTEXT(CURRBARSCOUNT=7,HIGH*1.025,'7'), COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=11,HIGH*1.025,'11'), COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=18,HIGH*1.025,'18'), COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=29,HIGH*1.025,'29'), COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=47,HIGH*1.025,'47'), COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=76,HIGH*1.025,'76'), COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=123,HIGH*1.025,'123'), COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=199,HIGH*1.025,'199'), COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=322,HIGH*1.025,'322'), COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=521,HIGH*1.025,'521'), COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=843,HIGH*1.025,'843'), COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=1364,HIGH*1.025,'1364'), COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=2207,HIGH*1.025,'2207'), COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=3571,HIGH*1.025,'3571'), COLORWHITE;
DRAWTEXT_FIX(1,0.01,0.9,0,'數(shù)字黃狄馬克:買入結(jié)構(gòu),紅:買入計(jì)數(shù),白為盧卡斯螺旋周期,綠菲波納契螺旋周期'),COLORBROWN;
{黃金分割}
NB:=80;
MB:=3;
MA5X:=MA(C,5);
MA13X:=MA(C,13);
高:=REF(HHV(H,NB),MB);
低:=REF(LLV(L,NB),MB);
H19:=高-(高-低)*0.191;
H38:=高-(高-低)*0.382;
H中:=高-(高-低)*0.5;
H61:=高-(高-低)*0.618;
H80:=高-(高-低)*0.809;
一:REFDATE(高,DATE),POINTDOT,COLORWHITE;
二:REFDATE(H19,DATE),POINTDOT,COLORYELLOW;
三:REFDATE(H38,DATE),POINTDOT,COLORMAGENTA;
四:REFDATE(H中,DATE),POINTDOT,COLORRED;
五:REFDATE(H61,DATE),POINTDOT,COLORMAGENTA;
六:REFDATE(H80,DATE),POINTDOT,COLORYELLOW;
七:REFDATE(低,DATE),POINTDOT,COLORWHITE;
DRAWTEXT(ISLASTBAR,一,' 高'),COLORWHITE;
DRAWTEXT(ISLASTBAR,二,' 809'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,三,' 618'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,四,' 中'),COLORRED;
DRAWTEXT(ISLASTBAR,五,' 382'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,六,' 191'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,七,' 低'),COLORWHITE;
通達(dá)信公式編輯器5.0版本適用下面提高幾張?jiān)撝笜?biāo)的趨勢拐點(diǎn)圖:
好股票軟件下載網(wǎng)(www.goodgupiao.com)提醒您:股市有風(fēng)險(xiǎn),投資需謹(jǐn)慎。
|