【同花順】欽差趨勢指標(biāo)公式
攻城獅 2015.11.09 02:59
A1A:=EMA(CLOSE, 9);
A1B:=((A1A – EMA(CLOSE, 5)) < 0);
A1C:=((A1A – EMA(CLOSE, 5)) > 0);
A1D:=BARSLAST(A1B);
A1E:=BARSLAST(A1C);
A1F:=IF((A1E > 0),(CLOSE – REF(CLOSE, 1)) / REF(CLOSE, 1) * 100,0);
A20:=SUM(A1F,0);
A21:=IF((A1D > 0),(0 – 2),0);
A22:=IF((A1E > 0),SUM((CLOSE – REF(CLOSE, 1)) / REF(CLOSE, 1) * 100,A1E),0);
A23:=A22 / A1E;
A25:=EMA(EMA(EMA(CLOSE, 3), 3), 3);
上升通道:((A25 – REF(A25, 1)) + A25),colorred;
反轉(zhuǎn)通道:MA(上升通道, 15),colorgreen;
IF(上升通道>REF(上升通道,1),上升通道,DRAWNULL),COLORFFFFCC,LINETHICK4,POINTDOT;
IF(反轉(zhuǎn)通道>REF(反轉(zhuǎn)通道,1),反轉(zhuǎn)通道,DRAWNULL),COLOR00FFFF,LINETHICK4,POINTDOT;
STICKLINE((上升通道 > 反轉(zhuǎn)通道),反轉(zhuǎn)通道,上升通道, 1, 0),colormagenta;
STICKLINE((反轉(zhuǎn)通道 > 上升通道),上升通道,反轉(zhuǎn)通道, 1, 0),COLORFF0000;
DRAWTEXT(CROSS(反轉(zhuǎn)通道,上升通道),上升通道 * 1.08,’下降趨勢’),COLOR00FF00;
DRAWTEXT(CROSS(上升通道,反轉(zhuǎn)通道),反轉(zhuǎn)通道 * 0.97,’上升趨勢’),COLOR0000FF;
DRAWICON(((REF(A21, 1) = (0 – 2)) AND (A21 = 0)),LOW, 5);
DRAWICON(((REF(A1E, 1) > 0) AND (A1E = 0)),HIGH, 6);
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://m.chiang1015.com/ 上發(fā)表,為其獨(dú)立觀點(diǎn)。不代表本網(wǎng)立場,不代表本網(wǎng)贊同其觀點(diǎn),亦不對(duì)其真實(shí)性負(fù)責(zé),投資決策請(qǐng)建立在獨(dú)立思考之上。