【通達(dá)信】快慢線+DMI指標(biāo)公式
攻城獅 2016.02.04 11:30
0;100;N:=9;M1:=3;M2:=3;P:=9;
STICKLINE(牛股,0,60,1,0),COLOR00FF00;
MTR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),14);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),14);
PDI1:=DMP*100/MTR;
MDI1:=DMM*100/MTR;
STICKLINE(PDI1>=MDI1,0,100,5,0),COLOR495944;
DRAWBAND(PDI1,RGB(240,0,240),MDI1,RGB(0,190,150));
{www.chiang1015.com 概念股網(wǎng)_通達(dá)信股票指標(biāo)公式}
ADX1:=EXPMEMA(ABS(MDI1-PDI1)/(MDI1+PDI1)*100,6),LINETHICK0;
ADXR1:=EXPMEMA(ADX1,6),LINETHICK0;
PDI:PDI1,COLORFFFFFF,LINETHICK0;
MDI:MDI1,COLORFF00FF,LINETHICK0;
ADX:ADX1,COLORRED,LINETHICK0;
ADXR:ADXR1,COLOR00FF00,LINETHICK0;
STICKLINE(C>0,20,20,2,0),COLORRED;
STICKLINE(C>0,80,80,2,0),COLORFFFF00;
快線:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,COLOR0000FF,LINETHICK2;
慢線:=SMA(快線,M1,1),COLORFFFF00,LINETHICK2;
空:=SMA(慢線,M2,1),COLORFFFF00,LINETHICK1;
牛股:IF(BARSLAST(CROSS(慢線,空))
DRAWTEXT(BARSLAST(CROSS(慢線,空)) BB:=IF(BARSLAST(CROSS(慢線,快線))>=3 AND CROSS(快線,慢線) AND 慢線<30,20,0);
AA:=IF(BARSLAST(CROSS(快線,慢線))>=4 AND CROSS(慢線,快線) AND 快線>50,20,0);
DRAWBAND(快線,RGB(255,60,0),慢線,RGB(0,202,209));
STICKLINE(ADX1>=ADXR1,ADX1,ADXR1,2,0),COLORFF1493;
STICKLINE(ADX1買:STICKLINE(BB,0,20,1,0),COLOR00FFFF;
DRAWICON(BARSLAST(CROSS(慢線,快線))>=3 AND CROSS(快線,慢線) AND 慢線<30,20,23);
賣:STICKLINE(AA,80,100,1,0),COLOR00FFFF;
DRAWICON(BARSLAST(CROSS(快線,慢線))>=4 AND CROSS(慢線,快線) AND 快線>50,80,14);
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://www.chiang1015.com/ 上發(fā)表,為其獨(dú)立觀點(diǎn)。不代表本網(wǎng)立場,不代表本網(wǎng)贊同其觀點(diǎn),亦不對(duì)其真實(shí)性負(fù)責(zé),投資決策請建立在獨(dú)立思考之上。