【大智慧】布林短買指標(biāo)公式
攻城獅 2015.12.24 05:12
N:=30;
MA30:=MA(C,40);
上軌:= MA30+STD(CLOSE,N);
下軌:= MA30-STD(CLOSE,N);
中軌:=MA(CLOSE,26);
上極限:=(中軌+2*STD(CLOSE,20));
上軌買:=if(cross(c,上軌),5,0);
上極限買:=if(cross(c,上極限),5,0);
下極限:=(中軌-2*STD(CLOSE,20));
{黃色短買}
VAR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));
VARD:=(CLOSE VARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR19:=((REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1)) AND VAR1);
上軌短買:if(VAR19 and REF(CLOSE,1) and cross(c,上軌),10,0),LINETHICK2,COLORRED;
DRAWTEXT(VAR19 and cross(c,上軌),10,’←上軌短買’),COLORRED;
DRAWTEXTABS(5,5,’概念股網(wǎng) m.chiang1015.com’),linethick1,COLOR00EEff;
牽牛線:=MA(CLOSE,26);
牽牛線短買:if(VAR19 and REF(CLOSE,1) and cross(c,牽牛線),5,0),LINETHICK2,colorFFFF00;
DRAWTEXT(VAR19 and cross(c,牽牛線),3,’←牽牛線短買’),colorFFFF00;
下極限短買:if(VAR19 and REF(CLOSE,1) and cross(c,下極限),10,0),LINETHICK2,colorYellow;
DRAWTEXT(VAR19 and cross(c,下極限),10,’←下極限短買’),colorYellow;
{東方不敗}
C3:=REF(C,1);
漲停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0);
STICKLINE(漲停,OPEN,CLOSE,2.5,0),COLORYELLOW;
跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);
STICKLINE(跌停,OPEN,CLOSE,2.5,0),COLORBLUE;
中軸線:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
安全線:=MA(CLOSE,30);
東方不敗:IF(CROSS(安全線,中軸線),10,0),ColorWhite,LINETHICK2;
DRAWTEXT(東方不敗,10,’←東方不敗買’),colorYellow;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://m.chiang1015.com/ 上發(fā)表,為其獨(dú)立觀點(diǎn)。不代表本網(wǎng)立場(chǎng),不代表本網(wǎng)贊同其觀點(diǎn),亦不對(duì)其真實(shí)性負(fù)責(zé),投資決策請(qǐng)建立在獨(dú)立思考之上。