同花順終極作品主圖指標(biāo)公式
基本概況:
- 指標(biāo)類別: 同花順指標(biāo)
- 授權(quán)方式: 免費(fèi)版
- 指標(biāo)評級: ★★★★★
- 指標(biāo)語言: 簡體中文
- 指標(biāo)來源: 互聯(lián)網(wǎng)
- 指標(biāo)日期: 2017-07-19 00:00:00
內(nèi)容介紹:
同花順終極作品主圖指標(biāo)公式: MA5:MA(C,5),COLORFFFFFF,LINETHICK1;
MA20:MA(C,20),COLORFF80FF,LINETHICK2;
MA120:MA(C,120),colorcyan,LINETHICK2;
角5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;
角20:ATAN((MA20/REF(MA20,1)-1)*100)*180/3.1416,nodraw,colorwhite;
角120:=ATAN((MA120/REF(MA120,1)-1)*100)*180/3.1416,nodraw,colorwhite;
漲幅:=(C-REF(C,1))/REF(C,1)*100;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
乖離:=ABS((MA20-MA120)/MA20*100),NODRAW,colorwhite;
漲:=IF(REF(CCI,1)<100,CCI>120,CCI>100);
跌:=IF(REF(CCI,1)>-100,CCI<-120,CCI<-100);
震蕩:=漲=0 AND 跌=0;
//BOLL線
上:MA20+2*STD(CLOSE,20),COLOR0000FF,DOTLINE;
下:MA20-2*STD(CLOSE,20),COLOR00FF00,DOTLINE;
中上軌:上-(上-下)/6,COLORFFFF00,DOTLINE;
中下軌:下+(上-下)/6,COLORFFFF00,DOTLINE;
兩格:=中上軌-MA20;
//用不同顏色畫不同行情的K線
STICKLINE(漲=1,H,L,0,0),colorred;
STICKLINE(漲=1 AND C>=O,C,O,10,1),colorred;
STICKLINE(漲=1 AND C<O,C,O,10,0),colorred;
STICKLINE(跌=1,H,L,0,0),COLORFF6400;
STICKLINE(跌=1 AND C>=O,C,O,10,1),COLORFF6400;
STICKLINE(跌=1 AND C<O,C,O,10,0),COLORFF6400;
STICKLINE(震蕩=1,H,L,0,0),coloryellow;
STICKLINE(震蕩=1 AND C>=O,C,O,10,1),coloryellow;
STICKLINE(震蕩=1 AND C<O,C,O,10,0),coloryellow;
//不同周期K線界面顯示
IF(PERIODNAME<>"月線")
IF(PERIODNAME<>"周線")
IF(PERIODNAME<>"日線")
IF(PERIODNAME<>"60分鐘")
{
BT:=(L<=中下軌 AND 跌=0 AND LLV(L,3)>LLV(L,22) AND O-C<兩格) OR (L<=下 AND 跌 AND LLV(L,3)>LLV(L,22) AND O-C<兩格);
ST:=(H>=中上軌 AND 漲=0 AND HHV(H,3)<HHV(H,22) AND C-O<兩格) OR (H>=上 AND 漲 AND HHV(H,3)<HHV(H,22) AND C-O<兩格);
DRAWICON(BT,L,1);
DRAWICON(ST,H,2);
RETURN;
}
BX:=(L<=中下軌 AND 跌=0 AND LLV(L,3)>LLV(L,20) AND O-C<兩格) OR (L<=下 AND 跌 AND LLV(L,3)>LLV(L,20) AND O-C<兩格);
SX:=(H>=中上軌 AND 漲=0 AND HHV(H,3)<HHV(H,20) AND C-O<兩格) OR (H>=上 AND 漲 AND HHV(H,3)<HHV(H,20) AND C-O<兩格);
DRAWICON(BX,L,1);
DRAWICON(SX,H,2);
低吸:=(漲 AND L<上 AND HHV(CCI,3)=HHV(CCI,8)) OR (漲 AND L<中上軌) OR (震蕩 AND C>MA20 AND 角20>IF(C>1000,8,20) AND L<=MA20+(上-下)/8) OR (角20>IF(C>1000,0,8) AND L<MA20-(上-下)/8) OR BX;
高拋:=(跌 AND H>下 AND LLV(CCI,3)=LLV(CCI,8)) OR (跌 AND H>中下軌) OR (震蕩 AND C<MA20 AND 角20<IF(C>1000,-8,-20) AND H>=MA20-(上-下)/8) OR (角20<IF(C>1000,0,-8) AND H>MA20+(上-下)/8) OR SX;
觀望:=低吸=0 AND 高拋=0;
DRAWTEXT_FIX(ISLASTBAR,0.5,0.05,0,'<使用說明> -->'),colorred;
DRAWTEXT_FIX(ISLASTBAR,0.57,0.05,0,'紅色上漲,藍(lán)色下跌,黃色震蕩'),colorcyan;
DRAWTEXT_FIX(ISLASTBAR,0.5,0.1,0,'<使用說明> -->'),colorred;
DRAWTEXT_FIX(ISLASTBAR,0.57,0.1,0,'當(dāng)買點(diǎn)信號出現(xiàn)時(shí),先用大一級別周期確認(rèn)處于低吸區(qū)域,否則買點(diǎn)信號真實(shí)性偏弱)'),colorcyan;
DRAWTEXT_FIX(ISLASTBAR AND BX,0.5,0.2,0,'<買點(diǎn)信號介入價(jià)格> -->'),colorred;
DRAWNUMBER_FIX(ISLASTBAR AND BX,0.6,0.2,0,TOSTRING(IF(跌,下
相關(guān)推薦: