DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA), COLORSTICK;
DRAWBAND(DIFF,RGB(255,50,0),DEA,RGB(0,255,50));
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1,0),colorgreen;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,1,0),COLORFFCC33;
STICKLINE(MACD>REF(MACD,1)AND MACD,0,MACD,1,0),coloryellow;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,1,0),colormagenta;
強(qiáng)弱分界:0,colorblue,LINETHICK2;
DRAWTEXT(ISLASTBAR AND DIFF>REF(DIFF,1),DIFF,' ↑向上趨勢'),COLORFFFFFF;
DRAWTEXT(ISLASTBAR AND DIFF<REF(DIFF,1),DIFF,' ↓向下趨勢'),COLORFFFFFF;
DRAWTEXT(ISLASTBAR AND MACD>REF(MACD,1),MACD,' ↑上漲柱'),COLOR0000FF;
DRAWTEXT(ISLASTBAR AND MACD<REF(MACD,1),MACD,' ↓下跌柱'),COLOR00FF00;
ggj=(HIGH+LOW+CLOSE+OPEN)/4/MA(CLOSE,n);
ggl=VOL/MA(VOL,n);
ggj=SMA(ggj,3,1);
ggl=SMA(ggl,3,1);
Ljb: (ggl-ggj)*1000;
ggg: 0;
A:=EMA(EMA(AMOUNT/10000000,5),10);
N1:=A;
【最高】:N1,LINETHICK;
【最低】:N1,LINETHICK;
【收盤】:N1,LINETHICK;
【開盤】:REF(【收盤】,1),LINETHICK;
STICKLINE(【收盤】>【開盤】,【最高】,【最低】,0,0),COLOR0000FF;
STICKLINE(【收盤】>【開盤】,【收盤】,【開盤】,2,0),COLOR0000FF;
STICKLINE(【收盤】<【開盤】,【收盤】,【開盤】,2,0),COLOR00FF00;
STICKLINE(【收盤】<【開盤】,【最高】,【最低】,0,0),COLOR00FF00;
均量10:MA(A,10),LINETHICK2;
{均量10:MA(A,10),colorwhite,LINETHICK2;}
{IF(均量10>REF(均量10,1),均量10,DRAWNULL),colorred,LINETHICK2;
IF(均量10<REF(均量10,1),均量10,DRAWNULL),colorgreen,LINETHICK2;}
B:=【收盤】>【開盤】;
D:=【收盤】<【開盤】;
DRAWTEXT(ISLASTBAR AND B,【最高】,'-量增'),colormagenta;
DRAWTEXT(ISLASTBAR AND D,【最高】,'-量縮'),coloryellow;
F:=EMA(EMA(C,5),10);
N2:=F;
【收盤1】:=N2;
【開盤1】:=REF(【收盤1】,1);
G:=【收盤1】>【開盤1】;
I:=【收盤1】<【開盤1】;
DRAWTEXT(ISLASTBAR AND G,【最低】*0.90,'-價(jià)漲'),colormagenta;
DRAWTEXT(ISLASTBAR AND I,【最低】*0.90,'-價(jià)跌'),coloryellow;
K:=B AND G;
DRAWTEXT(K,【最低】*0.90,'▲'),colormagenta;
P:=D AND G;
DRAWTEXT(P,【最低】*0.90,'●'),coloryellow;
當(dāng)然,炒股僅靠一個指標(biāo)是肯定不行的,畢竟一個指標(biāo)就算在厲害,也是有限的,可以結(jié)合多個指標(biāo),那樣操作起來才會更輕松,本人還有一套自己獨(dú)創(chuàng)的放心買選股系統(tǒng)。目前已經(jīng)利用該選股系統(tǒng)選了不少收益不錯的個股,下面就拿出其中一只個股做一個案例分析給大家看看;
該股是用主圖加副圖的雙指標(biāo)搭配使用,在7月28日主圖與副圖同時(shí)出現(xiàn)買入信號,信號提示后當(dāng)即買入,在橫盤四天后該股直接拉了3個漲停一字板,從信號出現(xiàn)當(dāng)即買入,到目前為止,漲幅接近40個點(diǎn),真的是可喜可賀呀,由此也可以看出該指標(biāo)的預(yù)見性,提前四天主副圖指標(biāo)同時(shí)出現(xiàn)信號提示,保證你不會錯失收益。目前套用主副圖指標(biāo),有一支股在出現(xiàn)了震蕩下跌調(diào)整幾天后,出現(xiàn)了介入信號,為防止新手盲目介入,在這里就不公布代碼了,有興趣的朋友可以點(diǎn)擊頭像與我交流!