【通達(dá)信】20日均線買(mǎi)賣(mài)主圖指標(biāo)公式
攻城獅 2015.11.08 07:21
MA5:MA(CLOSE,5),LINETHICK1,COLORWHITE;
MA10:MA(CLOSE,10),LINETHICK1,COLORYELLOW;
MA20:MA(CLOSE,20),LINETHICK2,COLORMAGENTA;
MA60:MA(CLOSE,60),LINETHICK1,COLORGREEN;
買(mǎi)線:=EMA(C,4);
賣(mài)線:=EMA(SLOPE(C,20)*10+C,35);
DRAWTEXT(CROSS(買(mǎi)線,賣(mài)線),LOW*1.00,’←買(mǎi)’),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(賣(mài)線,買(mǎi)線),HIGH*1.01,’←賣(mài)’),COLORGREEN;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(90,RSI) , HIGH*1.01,’←逢高出局!’),COLOR00FF00 ;
A:=(3*C+ L+ O+ H)/6;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;
主力成本:EMA(X,13),COLORFF00FF,LINETHICK0;
ZZ:=(O H L)/3;
YC:=(H L)/2;
YCHJX:=(EMA(ZZ,4))+(YC-REF(ZZ,3))/4;
今日買(mǎi)點(diǎn):EMA(ZZ,3),COLORYELLOW,LINETHICK0;
明日買(mǎi)點(diǎn):YCHJX,LINETHICK0;
昨測(cè)今日買(mǎi)點(diǎn):REF(YCHJX,1),LINETHICK0;
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWTEXT(CROSS(MA15,FF),(HIGH * 1.02),’←拐點(diǎn)賣(mài)’),COLOR00FF00;
DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),’←拐點(diǎn)買(mǎi)’),COLOR00FFFF;
申明:本文為作者投稿或轉(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ú)立思考之上。