飞狐飞天格格主图指标
源码
P1:=13;N:=13;P1:=13;
{211.XJYY-3 (创幻修改版(不用设流通市值指数))}
VadsrA:=(HIGH+LOW+CLOSE)/3;
VadsrB:=SUM(MAX(0,HIGH-REF(VadsrA,1)),26)/SUM(MAX(0,REF(VadsrA,1)-LOW),26)*100;
VadsrC:=REF(MA(VadsrB,3),2.2);
VadsrF:=CROSS(VadsrC,VadsrB) AND VadsrB>150;
DRAWTEXT(VadsrF,HIGH,'逃顶');
DRAWTEXT(CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),HIGH*1.01,'落袋为安');
{N:17 .1.60
a:=(3*c+l+o+h)/6;
上穿五日:MA(CLOSE,P1),colorwhite;
FLY2:HHV(HIGH,N),Coloryellow;
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,LINETHICK2,Color4DA1FF;
水平面: EMA(x3,89)*0.84,LINETHICK2,ColorEE8400;
天际:EMA(x3,134)*0.98,LINETHICK2,COLORred;
突或压: HHV(HIGH,P2)*0.99,pointdot,COLORGREEN,LINETHICK2;
半:=xL6 AND 上穿五日<=水平面 AND c>=海底;
全:=xL6 AND c<=海底;
DRAWTEXT(xL6 AND c>水平面 and L2,LOW-LOW*0.01,'⊙←少量买 '),coloryellow;
DRAWTEXT(xL6 AND c>水平面 and L3,LOW-LOW*0.01,'⊙←少量买 '),coloryellow;
DRAWTEXT(半,LOW+LOW*0.02,'⊙←半仓买'),Color00FF00;
DRAWTEXT(全 AND L2,LOW+0.12,'⊙←全仓买 '),Colorffff66;
DRAWTEXT(上穿五日>ref(上穿五日,2)AND((c/ref(c,3)>1.1)AND(vol/ref(vol,1)>1.7)),high,'⊙←卖 '),Coloree66ee;
var6:=REF(CLOSE,1);
var7:=SMA(MAX(CLOSE-var6,0),6,1)/SMA(ABS(CLOSE-var6),6,1)*100;
DRAWTEXT(CROSS(84,var7),high+0.08,'⊙←逃顶'),ColorEE8400;
Var51:=EMA(AMOUNT/VOL/100,3);
Var52:=EMA(Var51,88);
Var53:=EMA(Var51,88)*0.85;
Var54:=Var53*0.87;
Var55:=LOW<Var54 AND CLOSE>REF(CLOSE,1)*1.02;
DRAWTEXT(FILTER(Var55,6),LOW+0.1,'坚决买进'),
DRAWTEXT(CROSS(75,SMA(MAX(CLOSE-REF(CLOSE,1),0),8,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),8,1)*100),HIGH+0.15,'卖出'),COLORCYAN;
DRAWTEXT(CROSS(-5,MA((LLV(LOW,45)-CLOSE)/(HHV(HIGH,45)-LLV(LOW,45))*100,5)),LOW+0.05,'买进'),COLORWHITE;