【大智慧】牛馬線指標(biāo)公式
攻城獅 2016.01.13 06:44
MA20:=MA(CLOSE,20);
MA40:=MA(CLOSE,40);
MA60:=MA(CLOSE,60);
MA240:=MA(CLOSE,240);
突破線:MIN(MA60*1.1,MA240*1.3),COLOR00FFFF;
{概念股網(wǎng)-股票公式網(wǎng)站 www.guangshenggb.com}
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛線: (20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED;
馬線:MA(牛線,5),COLORWHITE;
PARTLINE(牛線,牛線>馬線,RGB(255,0,0),牛線<馬線,RGB(0,255,0));
PL1:=(C – MA60) / MA60 < 0.1;
PL2:=(C – MA240) / MA240 < 0.3;
偏離率:=(PL1 = 1 AND PL2 = 1) * 0.2;
突破:=(偏離率 = 0 AND REF(COUNT(偏離率 = 0.2,10) = 10,1) = 1) * (-0.1);
DRAWTEXT(突破=-0.1,L*0.95,’★突破’),COLORYELLOW;
AA:=BARSLAST(MA60>MA40 AND (MA40=MA20 OR MA40>MA20));
BB:=REF(COUNT(CCC:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3;
STICKLINE(BB AND CC,H,L,0,0),COLORRED;
STICKLINE(BB AND CC,O,C,6,0),COLORRED;
DRAWTEXT(BB AND CC,L*0.95,’↑芙蓉出水’),COLORRED;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://www.guangshenggb.com/ 上發(fā)表,為其獨(dú)立觀點(diǎn)。不代表本網(wǎng)立場(chǎng),不代表本網(wǎng)贊同其觀點(diǎn),亦不對(duì)其真實(shí)性負(fù)責(zé),投資決策請(qǐng)建立在獨(dú)立思考之上。