指標(biāo)介紹:九轉(zhuǎn)序列是根據(jù)TD馬克序列的思想產(chǎn)生的,即連續(xù)9天收盤(pán)價(jià)高于(低于)前4天的收盤(pán)價(jià),其后走勢(shì)很可能發(fā)生轉(zhuǎn)向(大家可看圖)。數(shù)字1至8要用到未來(lái)函數(shù),但數(shù)字9不帶未來(lái)函數(shù),所有對(duì)轉(zhuǎn)向的判斷是定量且不變的。
風(fēng)雨同舟VIP-金山人(1160120582) 11:13:49 徐小明轉(zhuǎn)9公式 [主圖指標(biāo)]
A1:=C>REF(C,4); NT:=BARSLASTCOUNT(A1); TJ11:=NT=9; TJ13:=ISLASTBAR AND BETWEEN(NT,5,8); AY:=(BACKSET(TJ11>0,9) OR BACKSET(TJ13>0,NT))*NT; DRAWTEXT(AY>0,H*1.02,VAR2STR(AY,0)),COLORFF00FF; DRAWTEXT(NT=9,H*1.02,'9'),COLORGREEN; B1:=C 小于 REF(C,4); NT0:=BARSLASTCOUNT(B1); TJ21:=NT0=9 ; TJ23:=ISLASTBAR AND BETWEEN(NT0,5,8); AY1:=(BACKSET(TJ21>0,9) OR BACKSET(TJ23>0,NT0))*NT0; DRAWTEXT(AY1>0,L*0.98,VAR2STR(AY1,0)),COLORFF00FF; DRAWTEXT(NT0=9,L*0.98,'9'),COLORGREEN; 你驗(yàn)證一下,股災(zāi)3.0的時(shí)候,是不是上證和深證都是日線(xiàn)的高9+頂背離?
陳偉明(1049748605) 11:17:37
是不是預(yù)警公式 ? 風(fēng)雨同舟VIP-金山人(1160120582) 11:17:53
不是預(yù)警吧 有的老師把這個(gè)九轉(zhuǎn)序列用在大盤(pán)的分時(shí)圖高低點(diǎn)的判斷上面 分時(shí)圖macd+頂背離提示+9轉(zhuǎn) DIF:100*(EMA(CLOSE,12)-EMA(CLOSE,26)); DEA:EMA(DIF,9); MACD:(DIF-DEA)*2,COLORSTICK; A1:=C>REF(C,4); NT:=BARSLASTCOUNT(A1); TJ11:=NT=9; TJ13:=ISLASTBAR AND BETWEEN(NT,5,8); AY:=(BACKSET(TJ11>0,9) OR BACKSET(TJ13>0,NT))*NT; DRAWTEXT(AY>0,MACD*1.02,VAR2STR(AY,0)),COLORLIRED; DRAWTEXT(NT=9,MACD*1.02,'9'),COLORGREEN; B1:=C小于號(hào)REF(C,4); NT0:=BARSLASTCOUNT(B1); TJ21:=NT0=9 ; TJ23:=ISLASTBAR AND BETWEEN(NT0,5,8); AY1:=(BACKSET(TJ21>0,9) OR BACKSET(TJ23>0,NT0))*NT0; DRAWTEXT(AY1>0,MACD*0.98,VAR2STR(AY1,0)),COLORGREEN; DRAWTEXT(NT0=9,MACD*0.98,'9'),COLORRED; DRAWICON(CROSS(DIF,DEA),DEA,1); DRAWICON(CROSS(DEA,DIF),DEA,2); 死叉:=CROSS(DEA,DIF); N1:=BARSLAST(死叉),NODRAW;{最近一次死叉的位置} N2:=REF(BARSLAST(死叉),N1+1),NODRAW;{倒數(shù)第二次死叉與倒數(shù)第一次死叉的區(qū)間} N3:=REF(BARSLAST(死叉),N2+N1+2),NODRAW;{倒數(shù)第三次死叉與倒數(shù)第二次死叉的區(qū)間} CL1:=LLV(C,N1+1),NODRAW;{最近一次死叉后,最低收盤(pán)價(jià)} DIFL1:=LLV(DIF,N1+1),NODRAW; CL2:=REF(CL1,N1+1),NODRAW;{倒數(shù)第二次死叉與倒數(shù)第一次死叉之間的最低收盤(pán)價(jià)} DIFL2:=REF(DIFL1,N1+1),NODRAW; CL3:=REF(CL2,N1+1),NODRAW;{倒數(shù)第三次死叉與倒數(shù)第二次死叉之間的最低收盤(pán)價(jià)} DIFL3:=REF(DIFL2,N1+1),NODRAW; PDIFL2:=IF(DIFL2>0,INTPART(LOG(DIFL2))-1,INTPART(LOG(-DIFL2))-1); MDIFL2:=INTPART(DIFL2/POW(10,PDIFL2)); PDIFL3:=IF(DIFL3>0,INTPART(LOG(DIFL3))-1,INTPART(LOG(-DIFL3))-1); MDIFL3:=INTPART(DIFL3/POW(10,PDIFL3)); MDIFB2:=INTPART(DIF/POW(10,PDIFL2)); MDIFB3:=INTPART(DIF/POW(10,PDIFL3)); 直接底背離:=(CL1MDIFL2) AND (MACD<0 AND REF(MACD,1)<0) AND MDIFB2<=REF(MDIFB2,1); 隔峰底背離:=(CL1MDIFL3) AND (MACD<0 AND REF(MACD,1)<0) AND MDIFB3<=REF(MDIFB3,1); 底部鈍化:直接底背離 OR 隔峰底背離,NODRAW; 底背離:((MDIFB2>REF(MDIFB2,1))*REF(直接底背離,1)) OR ((MDIFB3>REF(MDIFB3,1))*REF(隔峰底背離,1)),NODRAW; {DRAWTEXT(TFILTER(B,(REF(DIF,1)>REF(DIF,2) AND DIF STICKLINE(底部鈍化,DIF,DEA,1,0),COLORRED; DRAWTEXT(TFILTER(底背離,C 金叉:=CROSS(DIF,DEA); M1:=BARSLAST(金叉),NODRAW;{最近一次金叉的位置} M2:=REF(BARSLAST(金叉),M1+1),NODRAW;{倒數(shù)第二次金叉與倒數(shù)第一次金叉的區(qū)間} M3:=REF(BARSLAST(金叉),M2+M1+2),NODRAW;{倒數(shù)第三次金叉與倒數(shù)第二次金叉的區(qū)間} CH1:=HHV(C,M1+1),NODRAW;{最近一次金叉后,最高收盤(pán)價(jià)} DIFH1:=HHV(DIF,M1+1),NODRAW; CH2:=REF(CH1,M1+1),NODRAW;{倒數(shù)第二次金叉與倒數(shù)第一次金叉之間的最高收盤(pán)價(jià)} DIFH2:=REF(DIFH1,M1+1),NODRAW; CH3:=REF(CH2,M1+1),NODRAW;{倒數(shù)第三次金叉與倒數(shù)第二次金叉之間的最高收盤(pán)價(jià)} DIFH3:=REF(DIFH2,M1+1),NODRAW; PDIFH2:=IF(DIFH2>0,INTPART(LOG(DIFH2))-1,INTPART(LOG(-DIFH2))-1); MDIFH2:=INTPART(DIFH2/POW(10,PDIFH2)); PDIFH3:=IF(DIFH3>0,INTPART(LOG(DIFH3))-1,INTPART(LOG(-DIFH3))-1); MDIFH3:=INTPART(DIFH3/POW(10,PDIFH3)); MDIFT2:=INTPART(DIF/POW(10,PDIFH2)); MDIFT3:=INTPART(DIF/POW(10,PDIFH3)); 直接頂背離:=(CH1>CH2 ) AND (MDIFT20 AND REF(MACD,1)>0) AND MDIFT2>=REF(MDIFT2,1); 隔峰頂背離:=(CH1>CH3 AND CH3>CH2 ) AND (MDIFT30 AND REF(MACD,1)>0) AND MDIFT3>=REF(MDIFT3,1); 頂部鈍化:直接頂背離 OR 隔峰頂背離,NODRAW; 頂背離:((MDIFT2 {DRAWTEXT(TFILTER(T,(REF(DIF,1)REF(DIF,1)),1),DIFH2,'鈍化開(kāi)始'),COLORYELLOW;} STICKLINE(頂部鈍化,DIF,DEA,1,0),COLORGREEN; DRAWTEXT(TFILTER(頂背離,C>REF(CH1,1),1),DIF*1.02,'頂部結(jié)構(gòu)形成'),COLORMAGENTA; DRAWICON(CROSS(DIF,DEA),DEA,36); DRAWICON(CROSS(DEA,DIF),DEA,37); MACDDIF:=IF(ABS(MACD)>ABS(DIF),MACD,DIF); DRAWICON(REF(DIF,1)>REF(DIF,2) AND DIF0 AND DIF>DEA,MACDDIF*1.1,39),COLORGREEN; DRAWICON(REF(DIF,1)REF(DIF,1) AND DIF<0 AND DIF |
|