|
极品公式,碧血青锋
CYCMAX:="CYC@CYCMAX";
CYS13:="CYS@CYS";
CYSW:=CLOSE/CYCMAX*100-100;
AA:="1A0001$AMOUNT";AV:="1A0001$VOL";AC:="1A0001$CLOSE";{原来是0号指数}
AO:="1A0001$OPEN";AH:="1A0001$HIGH";AL:="1A0001$LOW";
Var1:=AA/AV/100;
Var2:=(3*AH+AL+AO+2*AC)/7;
Var3:=SUM(AA,13)/Var1/100;
ACYC:=DMA(Var2,AV/Var3);
ACYS13:=(AC-ACYC)/ACYC*100;
M:=CLOSE;
A1:=CYS13<-10 AND CYSW<0;
A2:=CYS13<-14 AND CYSW<-10 AND CYS13<REF(CYS13,1);
A3:=CYS13<-16 AND CYSW<-20 AND ACYS13<-4.5 AND ACYS13<REF(ACYS13,1);
A4:=CYS13<-17 AND CYSW<-40 AND ACYS13<-8 AND ACYS13<REF(CYS13,1);
A5:=CYS13<-20 AND CYSW<-40 AND ACYS13<-10 AND ACYS13<REF(ACYS13,1);
碧血出鞘:IF(A5>0,M*5.5,0),STICK,COLORGREEN;
青锋:IF(A4>0,M*4.1,0),STICK,COLORFFFF33;
烈焰:IF(A3>0,M*3.1,0),STICK,COLORFFCC33;
火焰:IF(A2,M*2.1,0),STICK,COLORYELLOW;
血:IF(A1,M*1.1,0),STICK,COLORRED;
STICKLINE(A5>0,M*5.5,0,4,0),COLORGREEN;
STICKLINE(A4>0,M*4.1,0,4,0),COLORFFFF33;
STICKLINE(A3>0,M*3.1,0,4,0),COLORFFCC33;
STICKLINE(A2>0,M*2.1,0,4,0),COLORYELLOW;
STICKLINE(A1>0,M*1.1,0,4,0),COLORRED;
DRAWTEXT(A5>0,M*4.1,'【碧血剑出,全仓杀入】'),COLORGREEN;
DRAWTEXT(A4>0 AND A5<M*5.5,M*3.1,'【青锋半露,分仓介入】'),COLORCYAN;
--> a:=(3*c+l+o+h)/6;
FLY120*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;
FLY2:ma(FLY1,10),ColorCF2100;
xL1:=(2*C+H+L)/4;
xL2:=LLV(LOW,34);
xL3:=HHV(HIGH,34);
xL4:=EMA((xL1-xL2)/(xL3-xL2)*xL3,7);
xL5:=EMA(0.667*REF(xL4,2)+0.333*xL4,1);
xL6:=CROSS(xL4,MA(xL4,10));
L1:=(INDEXC-HHV(INDEXC,8))/HHV(INDEXC,8)<-0.05 and
MA(INDEXA,125)/MA(INDEXV,125)/(MA(INDEXA,5)/MA(INDEXV,5))>1.12;
L2:=BARSLAST(L1)<13;
L3:=(close-ma(close,58))/ma(close,58)<-0.07;
x1:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55);
x2:=EMA(CLOSE,3);
x3:=(2*CLOSE+LOW+HIGH)/4;
x4:=x1-x2;
海底:EMA(x3,89)*0.74,LINETHICK1,Color4DA1FF;
水平面: EMA(x3,89)*0.84,LINETHICK2,ColorEE8400;
天际: EMA(x3,134)*0.98,Color0000FF;
半:=xL6 AND FLY1<=水平面 AND c>=海底;
全:=xL6 and c<=海底;
DRAWTEXT(xL6 AND c>水平面 and L2,LOW-LOW*0.02,'⊙←买
'),coloryellow;
DRAWTEXT(全 and L2,LOW+LOW*0.02,'⊙←全仓买 '),Color0000FF;
DRAWTEXT(FILTER(FLY1>ref(FLY1,2)AND((c/ref(c,3)>1.1)AND(vol/ref(vol,1)>1.7)),5),high*1.05,'⊙←卖
'),Color0000FF;
DRAWTEXT(cross(ma(c,30),ma(c,36))AND(c>ref(c,5)),high*1.03,'⊙←卖
');
大智慧也能用。
a:=(3*c+l+o+h)/6;
FLY1:(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;
FLY2:ma(FLY1,10),ColorCF2100;
xL1:=(2*C+H+L)/4;
xL2:=LLV(LOW,34);
xL3:=HHV(HIGH,34);
xL4:=EMA((xL1-xL2)/(xL3-xL2)*xL3,7);
xL5:=EMA(0.667*REF(xL4,2)+0.333*xL4,1);
xL6:=CROSS(xL4,MA(xL4,10));
L1:=(INDEXC-HHV(INDEXC,8))/HHV(INDEXC,8)<-0.05 and
MA(INDEXA,125)/MA(INDEXV,125)/(MA(INDEXA,5)/MA(INDEXV,5))>1.12;
L2:=BARSLAST(L1)<13;
L3:=(close-ma(close,58))/ma(close,58)<-0.07;
x1:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55);
x2:=EMA(CLOSE,3);
x3:=(2*CLOSE+LOW+HIGH)/4;
x4:=x1-x2;
海底:EMA(x3,89)*0.74,LINETHICK1,Color4DA1FF;
水平面: EMA(x3,89)*0.84,LINETHICK2,ColorEE8400;
天际: EMA(x3,134)*0.98,Color0000FF;
半:=xL6 AND FLY1<=水平面 AND c>=海底;
全:=xL6 and c<=海底;
DRAWTEXT(xL6 AND c>水平面 and L2,LOW-LOW*0.02,'⊙←买
'),coloryellow;
DRAWTEXT(全 and L2,LOW+LOW*0.02,'⊙←全仓买 '),Color0000FF;
DRAWTEXT(FLY1>ref(FLY1,2)AND((c/ref(c,3)>1.1)AND(vol/ref(vol,1)>1.7)),high,'⊙←卖
'),Color0000FF;
DRAWTEXT(cross(ma(c,30),ma(c,36))AND(c>ref(c,5)),high,'⊙←卖
'),Color00ff00;
|
|