【同花順】順勢(shì)多空指標(biāo)公式
攻城獅 2015.11.09 10:19
M1:=3;
M2:=5;
TR=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),M1);
HD=HIGH-REF(HIGH,1);
LD=REF(LOW,1)-LOW;
DMP=EMA(IF(HD>0 AND HD>LD,HD,0),M1);
DMM=EMA(IF(LD>0 AND LD>HD,LD,0),M1);
DI1:=DMP*100/TR;
DI2:=DMM*100/TR;
多頭線(xiàn):DI1,colorred,LINETHICK2;
空頭線(xiàn):DI2,colorcyan,LINETHICK1;
順勢(shì)線(xiàn)_多或空:EMA(ABS(DI2-DI1)/(DI1+DI2)*100,M2),DOTLINE;
順勢(shì)線(xiàn)M:EMA(順勢(shì)線(xiàn)_多或空,M2),DOTLINE;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://m.guangshenggb.com/ 上發(fā)表,為其獨(dú)立觀點(diǎn)。不代表本網(wǎng)立場(chǎng),不代表本網(wǎng)贊同其觀點(diǎn),亦不對(duì)其真實(shí)性負(fù)責(zé),投資決策請(qǐng)建立在獨(dú)立思考之上。