副图公式源码支持: 手机/电脑
VOLUME:VOL,VOLSTICK;
GUP1:=VOL/((H-L)*2-ABS(C-O));
买进:IF(C>O,GUP1*(H-L),IF(C<O,GUP1*((H-O)+(C-L)),VOL/2)),COLORRED,LINETHICK0;
卖出:IF(C>O,0-GUP1*((H-C)+(O-L)),IF(C<O,0-GUP1*(H-L),0+V/2)),COLOR00FF00,LINETHICK0;
DDX:=买进+卖出;
DX:=MA(DDX,5)*5;
DDX1:SMA(DX,3,1),COLORRED,LINETHICK1;
DDX2:SMA(DDX1,3,1),COLORYELLOW,LINETHICK1;
DDX3:EMA(DDX2,5),COLORF0F000,LINETHICK1;
X1:=(3*C+L+H+O)/6;
GUP10:=C=HHV(C,4) AND REF(C,1)=LLV(C,4);
GUP20:=C=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) AND C<REF(C,1) AND C<REF(C,2);
GUP30:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);
GUP40:=(20*X1+19*REF(X1,1)+18*REF(X1,2)+17*REF(X1,3)+16*REF(X1,4)+15*REF(X1,5)+
14*REF(X1,6)+13*REF(X1,7)+12*REF(X1,8)+11*REF(X1,9)+10*REF(X1,10)+9*REF(X1,11)+8*REF(X1,12)
+7*REF(X1,13)+6*REF(X1,14)+5*REF(X1,15)+4*REF(X1,16)+3*REF(X1,17)+2*REF(X1,18)+REF(X1,20))/210;
MTM:=C-REF(C,1);
DX1:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
卖:=HHV(DX1,2)=HHV(DX1,7) AND COUNT(DX1>50,2) AND CROSS(MA(DX1,2),DX1);
DRAWTEXT(FILTER(卖=1,1),VOLUME*-0.1,'逃'),COLOR00C800;
买:=LLV(DX1,2)=LLV(DX1,7) AND COUNT(DX1<0,2) AND CROSS(DX1,MA(DX1,2));
DRAWTEXT(FILTER(DDX1>=DDX2 AND 买=1,5),VOLUME*-0.1,'进'),COLORYELLOW;
选股公式源码
{选股公式:进}
GUP1:=VOL/((H-L)*2-ABS(C-O));
买进:=IF(C>O,GUP1*(H-L),IF(C<O,GUP1*((H-O)+(C-L)),VOL/2)),COLORRED,LINETHICK0;
卖出:=IF(C>O,0-GUP1*((H-C)+(O-L)),IF(C<O,0-GUP1*(H-L),0+V/2)),COLOR00FF00,LINETHICK0;
DDX:=买进+卖出;
DX:=MA(DDX,5)*5;
DDX1:=SMA(DX,3,1),COLORRED,LINETHICK1;
DDX2:=SMA(DDX1,3,1),COLORYELLOW,LINETHICK1;
MTM:=C-REF(C,1);
DX1:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
买:=LLV(DX1,2)=LLV(DX1,7) AND COUNT(DX1<0,2) AND CROSS(DX1,MA(DX1,2));
进:FILTER(DDX1>=DDX2 AND 买=1,5); |