九轉(zhuǎn)錢袋MACD幅圖指標(biāo)顯示效果如下:
本套指標(biāo)包含一個幅圖和一個選股;
幅圖指標(biāo)的紅綠色柱子和兩條曲線,是MACD指標(biāo),只不過這里我加工了一下,把系統(tǒng)自帶的MACD指標(biāo)里的數(shù)值做了一下放大,以免有時候數(shù)值過小看不清;
兩條曲線也是一樣的,顏色是紅色和藍(lán)色;
在MACD的柱子上加了九轉(zhuǎn)信號,所謂的九轉(zhuǎn),就是股價連續(xù)9天低于4天前的收盤價,就構(gòu)成了9轉(zhuǎn),關(guān)于9轉(zhuǎn),這里不做展開,用一句話解釋就是連續(xù)9天,收盤價低于4天前收盤價,這是下降9轉(zhuǎn),那么相反的,上升九轉(zhuǎn)就是連續(xù)9天收盤價高于4天前收盤價;
出現(xiàn)9轉(zhuǎn)的時候,會在MACD柱子的頂部標(biāo)出對應(yīng)的數(shù)字;
這里給出一個錢袋子信號,就是超跌信號;
信號的意思是,出現(xiàn)下降的九轉(zhuǎn),同時最起碼是連續(xù)4個陰線,并且MACD都是在零軸下方的;
這種急跌超跌的情況下,風(fēng)險釋放的非常充分了,即便后期沒有主升浪,也可以全身而退;
副圖源碼:
ZT:=C=H AND C>=ZTPRICE(REF(C,1),IF(CODELIKE('60') OR CODELIKE('00'),0.1,IF(CODELIKE('30') OR CODELIKE('68'),0.2,10)));
DIF:20*(EMA(CLOSE,12)-EMA(CLOSE,26)),COLORRED;
DEA:(EMA(DIF,9))COLORBLUE;
MACD:(DIF-DEA)*2,COLORSTICK;
STICKLINE(MACD>=0,0,MACD,0,0),COLORRED;
STICKLINE(MACD>=0 AND MACD<REF(MACD,1),0,MACD,0,0),COLORGREEN;
STICKLINE(MACD<0,0,MACD,0,0),COLORGREEN;
STICKLINE(MACD<0 AND MACD>REF(MACD,1),0,MACD,0,0),COLORRED;
NT:=BARSLASTCOUNT(C>REF(C,4));
T5:=ISLASTBAR AND BETWEEN(NT,5,8);
AY:=(BACKSET(NT=9,9) OR BACKSET(T5,NT))*NT;
DRAWTEXT(AY>0,MACD*1.3,VAR2STR(AY,0)),COLORLIRED;
DRAWTEXT(NT=9,MACD*1.3,'9'),COLORGREEN;
NT0:=BARSLASTCOUNT(C<REF(C,4));
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*1.3,VAR2STR(AY1,0)),COLORGREEN;
DRAWTEXT(NT0=9,MACD*1.3,'9'),COLORRED;
AT1:=C<=REF(C,4);
AT2:=REF(AT1,1)=1 AND C>REF(C,4);
AN1:=BARSLAST(AT2);
AM:=CURRBARSCOUNT;
AT3:=EVERY(C>REF(C,4),9);
AT:=AT3 AND REF(AT1,9)=1;{9}
AN2:=BARSNEXT(AT);
AN3:=COUNT(C>REF(C,4),AN1+1);
AT4:=(AN2=DRAWNULL OR (AM=9 AND AN2=8)) AND AT2 AND AM=REFX(AN3,AM-1);
ANT1:=C>=REF(C,4);
ANT2:=REF(ANT1,1)=1 AND C<REF(C,4);
ANN1:=BARSLAST(ANT2);
ANM:=CURRBARSCOUNT;
ANT3:=EVERY(C<REF(C,4),9);
ANT:=ANT3 AND REF(ANT1,9)=1;
ANN2:=BARSNEXT(ANT);
ANN3:=COUNT(C<REF(C,4),ANN1+1);
ANT4:=(ANN2=DRAWNULL OR (ANM=9 AND ANN2=8)) AND ANT2 AND ANM=REFX(ANN3,ANM-1);
DRAWNUMBER(ANT4,MACD,1),COLORGREEN;
DRAWNUMBER(REF(ANT4,1),MACD,2),COLORGREEN;
DRAWNUMBER(REF(ANT4,2),MACD,3),COLORGREEN;
DRAWNUMBER(REF(ANT4,3),MACD,4),COLORGREEN;
DRAWNUMBER(REF(ANT4,4),MACD,5),COLORGREEN;
DRAWNUMBER(REF(ANT4,5),MACD,6),COLORGREEN;
DRAWNUMBER(REF(ANT4,6),MACD,7),COLORGREEN;
DRAWNUMBER(REF(ANT4,7),MACD,8),COLORGREEN;
DRAWNUMBER(REF(ANT4,8),MACD,9),COLORGREEN;
XG:=ANT3 AND REF(ANT1 AND COUNT(ZT,10)=0,9)=1 AND BARSLASTCOUNT(C<O AND MACD<0 AND MACD<REF(MACD,1))>3 AND L=LLV(L,10);
DRAWICON(XG,-MACD,9);
選股源碼:
ZT:=C=H AND C>=ZTPRICE(REF(C,1),IF(CODELIKE('60') OR CODELIKE('00'),0.1,IF(CODELIKE('30') OR CODELIKE('68'),0.2,10)));
DIF:=20*(EMA(CLOSE,12)-EMA(CLOSE,26));
DEA:=(EMA(DIF,9));
MACD:=(DIF-DEA)*2;
AT1:=C<=REF(C,4);
AT2:=REF(AT1,1)=1 AND C>REF(C,4);
AN1:=BARSLAST(AT2);
AM:=CURRBARSCOUNT;
AT3:=EVERY(C>REF(C,4),9);
AT:=AT3 AND REF(AT1,9)=1;{9}
AN2:=BARSNEXT(AT);
AN3:=COUNT(C>REF(C,4),AN1+1);
AT4:=(AN2=DRAWNULL OR (AM=9 AND AN2=8)) AND AT2 AND AM=REFX(AN3,AM-1);
ANT1:=C>=REF(C,4);
ANT2:=REF(ANT1,1)=1 AND C<REF(C,4);
ANN1:=BARSLAST(ANT2);
ANM:=CURRBARSCOUNT;
ANT3:=EVERY(C<REF(C,4),9);
ANT:=ANT3 AND REF(ANT1,9)=1;
ANN2:=BARSNEXT(ANT);
ANN3:=COUNT(C<REF(C,4),ANN1+1);
ANT4:=(ANN2=DRAWNULL OR (ANM=9 AND ANN2=8)) AND ANT2 AND ANM=REFX(ANN3,ANM-1);
XG:ANT3 AND REF(ANT1 AND COUNT(ZT,10)=0,9)=1 AND BARSLASTCOUNT(C<O AND MACD<0 AND MACD<REF(MACD,1))>3 AND L=LLV(L,10);
發(fā)布于 2024-10-14 12:31?IP 屬地廣東