老牛捉妖主图指标公式(电脑+手机版)【通达信】
电脑版效果展示:
手机版效果展示:
指标源码:【由彩虹桥投资充电站(www.xuexi199.com)整理】
MA1:=MA(CLOSE,4);
MA2:=MA(CLOSE,13);
MA3:=MA(CLOSE,24);
MA4:=MA(CLOSE,30);
MA5:=MA(CLOSE,120);
SXSS:=MA2>MA3 AND MA3>MA4 AND MA4>MA5 AND MA2>REF(MA2,1) AND MA3>REF(MA3,1) AND MA4>REF(MA4,1) AND MA5>=REF(MA5,1);
角度13:=ATAN((MA(C,13)/REF(MA(C,13),1)-1)*100)*57.3;
N:=120;
MID1:=MA(C,N);
VART1:=POW((C-MID1),2);
VART2:=MA(VART1,N);
VART3:=SQRT(VART2);
UPPER:=MID1+2*VART3;
LOWER:=MID1-2*VART3;
筹码线:REF(UPPER,1),COLOR00FFFF,LINETHICK2;
趋势线:MA(CLOSE,24),COLORRED,LINETHICK2;
HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;
成本线1:=(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)+16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)
+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12)
+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF(HHJSJDA,18)+
REF(HHJSJDA,20))/210,COLORYELLOW;
成本线2:=MA(成本线1,7),COLORRED;
AA:=(C-REF(C,1))/REF(C,1)*100;
AAA:=(H-REF(C,1))/REF(C,1)*100;
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
MAOBV30:=MA(OBV,30);
B:="OBV.OBV";
A2:=B>REF(HHV(B,30),1);
红量能:=OBV>MAOBV30;
涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(O,1)),1,0);
创新高1:=HIGH>=HHV(HIGH,20);
Z:=REF(涨停,1) ;
W:=COUNT(Z ,5)>=1;
W3:=COUNT(Z ,13)>=1;
DK:=O<=REF(C,1) AND AA<-2;
W2:=COUNT(DK ,2)>=1;
至尊:=W AND AA>2.5 AND REF(W2,1) AND REF(AA<2.4,1) AND MA4>0;
STICKLINE(涨停,O,C,2,0),COLORYELLOW;
创新高:=HIGH>=HHV(HIGH,150);
第一次创新高:=创新高=1 AND BARSLAST(REF(创新高=1,1))>=1 AND AA>3;
放量:=V>MA(V,89) ;
异动:=放量=1 AND BARSLAST(REF(放量=1,1))>=6 AND H>BOLL AND MA4>MA5;
STICKLINE(至尊,OPEN,CLOSE,1,0),COLORF00FF0;
牛二:=SXSS AND C>MA2 AND L<=MA2 AND C>O AND 角度13>47 AND W3 ;
DRAWTEXT(FILTER(牛二=1,0),LOW-0.2,'↖牛二'),COLORWHITE;
手机版效果展示:
指标源码:【由彩虹桥投资充电站(www.xuexi199.com)整理】
MA1:=MA(CLOSE,4);
MA2:=MA(CLOSE,13);
MA3:=MA(CLOSE,24);
MA4:=MA(CLOSE,30);
MA5:=MA(CLOSE,120);
SXSS:=MA2>MA3 AND MA3>MA4 AND MA4>MA5 AND MA2>REF(MA2,1) AND MA3>REF(MA3,1) AND MA4>REF(MA4,1) AND MA5>=REF(MA5,1);
角度13:=ATAN((MA(C,13)/REF(MA(C,13),1)-1)*100)*57.3;
N:=120;
MID1:=MA(C,N);
VART1:=POW((C-MID1),2);
VART2:=MA(VART1,N);
VART3:=SQRT(VART2);
UPPER:=MID1+2*VART3;
LOWER:=MID1-2*VART3;
筹码线:REF(UPPER,1),COLOR00FFFF,LINETHICK2;
趋势线:MA(CLOSE,24),COLORRED,LINETHICK2;
HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;
成本线1:=(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)+16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)
+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12)
+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF(HHJSJDA,18)+
REF(HHJSJDA,20))/210,COLORYELLOW;
成本线2:=MA(成本线1,7),COLORRED;
AA:=(C-REF(C,1))/REF(C,1)*100;
AAA:=(H-REF(C,1))/REF(C,1)*100;
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
MAOBV30:=MA(OBV,30);
B:="OBV.OBV";
A2:=B>REF(HHV(B,30),1);
红量能:=OBV>MAOBV30;
涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(O,1)),1,0);
创新高1:=HIGH>=HHV(HIGH,20);
Z:=REF(涨停,1) ;
W:=COUNT(Z ,5)>=1;
W3:=COUNT(Z ,13)>=1;
DK:=O<=REF(C,1) AND AA<-2;
W2:=COUNT(DK ,2)>=1;
至尊:=W AND AA>2.5 AND REF(W2,1) AND REF(AA<2.4,1) AND MA4>0;
STICKLINE(涨停,O,C,2,0),COLORYELLOW;
创新高:=HIGH>=HHV(HIGH,150);
第一次创新高:=创新高=1 AND BARSLAST(REF(创新高=1,1))>=1 AND AA>3;
放量:=V>MA(V,89) ;
异动:=放量=1 AND BARSLAST(REF(放量=1,1))>=6 AND H>BOLL AND MA4>MA5;
STICKLINE(至尊,OPEN,CLOSE,1,0),COLORF00FF0;
牛二:=SXSS AND C>MA2 AND L<=MA2 AND C>O AND 角度13>47 AND W3 ;
DRAWTEXT(FILTER(牛二=1,0),LOW-0.2,'↖牛二'),COLORWHITE;