老牛捉妖主图指标公式

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;
DRAWTEXT(FILTER(第一次创新高=1,1),LOW-0.2,'↖新高'),COLORYELLOW;
放量:=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;
DRAWICON(至尊,LOW-0.3,1);
DRAWICON(至尊,LOW-1,24);
DRAWICON(至尊,LOW-1.5,25);
DRAWICON(至尊,LOW-2,26);
DRAWTEXT_FIX(1,0.00,0,0,'行业:'),COLORWHITE;
DRAWTEXT_FIX(1,0.04,0,0,HYBLOCK),COLORWHITE;
DRAWTEXT_FIX(1,0.14,0,0,'概念:'),COLORWHITE;
DRAWTEXT_FIX(1,0.18,0,0,GNBLOCK),COLORWHITE;

HJ_1:=HIGH>=HHV(HIGH,120);
 HJ_2:=HJ_1=1 AND BARSLAST(REF(HJ_1=1,1))>=9;
 HJ_3:=REF(CLOSE,1);
 HJ_4:=IF((CLOSE-HJ_3)*100/HJ_3>=10-0.01*100/HJ_3,1,0);
 HJ_5:=REF(HJ_4,1) AND REF(HJ_4,2);
 HJ_6:=COUNT(HJ_1,20)>=1;
 HJ_7:=MA(CLOSE,5);
 HJ_8:=MA(CLOSE,20);
 HJ_9:=MA(CLOSE,72);
 HJ_10:=MA(CLOSE,144);
 HJ_11:=HJ_8>HJ_9 AND HJ_8>=REF(HJ_8,1) AND HJ_9>REF(HJ_9,1);
 HJ_12:=MA(CLOSE,3);
 HJ_13:=MA(CLOSE,19);
 HJ_14:=CROSS(HJ_12,HJ_13);
 HJ_15:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0);
 HJ_16:=OBV;
 HJ_17:=HJ_16>REF(HHV(HJ_16,30),1);
 HJ_18:=REF(HJ_8,1)>REF(HJ_8,2) AND REF(HJ_8,2)>REF(HJ_8,3) AND REF(HJ_8,3)>REF(HJ_8,4);
 HJ_19:=COUNT(HJ_8>HJ_9,22)>=20;
 OUTX:HJ_11 AND LOW<=HJ_8 AND CLOSE>=HJ_8 AND CLOSE>=HJ_7 AND HJ_6;
 STICKLINE(HJ_1=1,0,0.5,1,0),COLORYELLOW;
 STICKLINE(HJ_2=1,0.5,1,0.8,0),COLORRED;

(0)

相关推荐