【大智慧】擒莊MACD指標(biāo)公式
攻城獅 2016.01.06 21:10
{空間}
Z:=BARSLAST(DISPSTATUS=1)+1;
HH:=HHV(H,Z);
LL:=LLV(L,Z);
上漲:=BARSSINCE(BACKSET(DISPSTATUS=2,BARSLAST(L=LL)+1));
低:REF(L,上漲),COLOR00FF00,DOTLINE;
VERTLINE(上漲=0,4),COLOR0000FF;{在圖形上繪直線}
DRAWTEXT(上漲=0,HHVALL(HH)*0.99,’-最低’),COLOR00ff00;{{求可視范圍最低值}
{概念股網(wǎng)-股票公式網(wǎng)站 m.chiang1015.com}
DIFf:(EMA(CLOSE,12)-EMA(CLOSE,26))*20000,COLOR00FFFF,LINETHICK1;
DEA:EMA(DIFF,9),COLORGREEN,LINETHICK2;
FILLRGN(DIFF,DEA,DIFF>DEA,(RGB(255,0,255)));
萬手:=VOL/10000;
BB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主動(dòng)買:=IF(CLOSE>OPEN,BB*(HIGH-LOW),IF(CLOSE主買:=主動(dòng)買/10000;
主動(dòng)賣:=IF(CLOSE>OPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE主賣:=主動(dòng)賣/10000;
主凈額:=(主動(dòng)買+主動(dòng)賣)/10000;
dx:=主凈額;
YX:=BARSSINCE(DX)+1;
QM:=BARSLAST(dx<=0);
主力強(qiáng)買:IF(QM<0,YX,QM),COLOR00FFFF,LINETHICK0;
QM賣:=BARSLAST(dx>=0);
主力強(qiáng)賣:IF(QM賣<0,YX,QM賣),COLOR00FF00,LINETHICK0;
動(dòng)力:=(主力強(qiáng)買-主力強(qiáng)賣);
stickline(動(dòng)力>0,動(dòng)力,0,4,0),colorred,linethick2;
stickline(動(dòng)力<0,動(dòng)力,0,4,0),colorgreen,linethick2;
DIFf買:(EMA(主力強(qiáng)買,12)-EMA(主力強(qiáng)買,26))*20000,COLOR00FFFF,LINETHICK1;
DEA買:EMA(DIFF買,9),COLORGREEN,LINETHICK2;
FILLRGN(DIFF買,DEA買,DIFF買>DEA買,(RGB(255,0,0)));
{FILLRGN(DEA買,DIFF買,DEA買>DIFF買,(RGB(0,0,255)));}
DIFf賣:(EMA(主力強(qiáng)賣,12)-EMA(主力強(qiáng)賣,26))*20000,COLOR00FFFF,LINETHICK1;
DEA賣:EMA(DIFF賣,9),COLORGREEN,LINETHICK2;
FILLRGN(DIFF賣,DEA賣,DIFF賣>DEA賣,(RGB(0,255,0)));
W:=BARSLAST(DISPSTATUS=1);
低漲:(c/LLV(LOW,W)-1)*100,COLOR0000FF,LINETHICK0,PRECIS2;
高跌:(c/HHV(HIGH,W)-1)*100,COLOR0000FF,LINETHICK0,PRECIS2;
天日:BARSLAST(L=LLV(LOW,W)),COLOR00FFFF,LINETHICK0,PRECIS0;
天:BARSLAST(H=HHV(HIGH,W)),COLOR00FFFF,LINETHICK0,PRECIS0;
{以下設(shè)置提示文字部分}
DRAWTEXTREL(10,15,’●低點(diǎn)至今日最高點(diǎn)上漲:’+NUMTOSTRN(低漲,2)+’% ‘+NUMTOSTRN(天日,0)+’天’),COLORFF50FF;
DRAWTEXTREL(250,15,’●高點(diǎn)至今日最低點(diǎn)下跌:’+NUMTOSTRN(高跌,2)+’% ‘+NUMTOSTRN(天,0)+’天’),COLORFFff00;
DRAWTEXTREL(500,20,’●細(xì)心看,分析好,大有益’),COLOR00ffff,LINETHICK3;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://m.chiang1015.com/ 上發(fā)表,為其獨(dú)立觀點(diǎn)。不代表本網(wǎng)立場(chǎng),不代表本網(wǎng)贊同其觀點(diǎn),亦不對(duì)其真實(shí)性負(fù)責(zé),投資決策請(qǐng)建立在獨(dú)立思考之上。