副图公式源码 支持: 手机/电脑
趋势线:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),COLORRED;
强弱:30,COLORWHITE;
逃顶:90,COLORWHITE;
JBS:=C/REF(C,1)>1.05 AND C=H AND BETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,12));
升:=FILTER(JBS,28)*100;
GUP1A:=IF((C/REF(C,1)>1.05 AND H/C<1.01 AND C>REF(C,1)),91,0);
GUP2A:=FILTER((GUP1A>90),45) AND FILTER((GUP1A>90),35) AND 升>0;
抄:=GUP2A AND COUNT(GUP2A,60)=1;
STICKLINE(抄,75,66,1,0),COLORRED;
STICKLINE(抄,66,57,2,0),COLORMAGENTA;
STICKLINE(抄,57,48,3,0),COLORGREEN;
STICKLINE(抄,48,39,4,0),COLORBLUE;
STICKLINE(抄,30,21,6,0),COLORBROWN;
STICKLINE(抄,39,30,5,0),COLORCYAN;
STICKLINE(抄,21,12,7,0),COLORYELLOW;
STICKLINE(抄,12,3,8,0),COLORWHITE;
DRAWTEXT(抄,90,'抄'),COLORRED;
DRAWICON(抄,80,25);
GUP1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
GUP2:=SMA(ABS(LOW-GUP1),13,1)/SMA(MAX(LOW-GUP1,0),10,1);
GUP3:=EMA(GUP2,10);
GUP4:=LLV(LOW,33);
GUP5:=EMA(IF(LOW<=GUP4,GUP3,0),3);
Z:0,COLORBLACK;
进场:IF(GUP5>REF(GUP5,1),GUP5,0),COLORRED,NODRAW;
洗盘:IF(GUP5<REF(GUP5,1),GUP5,0),COLORGREEN,NODRAW;
STICKLINE(GUP5<REF(GUP5,1),0,GUP5,3,0),COLORGREEN;
STICKLINE(GUP5>REF(GUP5,1),0,GUP5,3,0 ),COLOR000055;
STICKLINE(GUP5>REF(GUP5,1),0,GUP5,2.6,0 ),COLOR000077;
STICKLINE(GUP5>REF(GUP5,1),0,GUP5,2.1,0 ),COLOR000099;
STICKLINE(GUP5>REF(GUP5,1),0,GUP5,1.5,0 ),COLOR0000BB;
STICKLINE(GUP5>REF(GUP5,1),0,GUP5,0.9,0 ),COLOR0000DD;
STICKLINE(GUP5>REF(GUP5,1),0,GUP5,0.3,0 ),COLOR0000FF;
STICKLINE(GUP5<REF(GUP5,1),0,GUP5,3,0),COLOR005500;
STICKLINE(GUP5<REF(GUP5,1),0,GUP5,2.6,0),COLOR007700;
STICKLINE(GUP5<REF(GUP5,1),0,GUP5,2.1,0),COLOR009900;
STICKLINE(GUP5<REF(GUP5,1),0,GUP5,1.5,0),COLOR00BB00;
STICKLINE(GUP5<REF(GUP5,1),0,GUP5,0.9,0),COLOR00DD00;
STICKLINE(GUP5<REF(GUP5,1),0,GUP5,0.3,0),COLOR00FF00;
GUP21:=SMA(ABS(HIGH-GUP1),13,1)/SMA(MIN(HIGH-GUP1,0),10,1);
GUP31:=EMA(GUP21,10);
GUP41:=HHV(HIGH,33);
GUP51:=EMA(IF(HIGH>=GUP41,GUP31,0),3);
拉高:IF(GUP51<REF(GUP51,1),GUP51,0),COLORYELLOW,NODRAW;
STICKLINE(GUP51<REF(GUP51,1),0,GUP51,3,0),COLORYELLOW;
出货:IF(GUP51>REF(GUP51,1),GUP51,0),COLORCYAN,NODRAW;
STICKLINE(GUP51>REF(GUP51,1),0,GUP51,3,0 ),COLORCYAN;
SS:=MA(C,60)>REF(MA(C,60),1);
N:=10;
A:=(3*CLOSE+LOW+OPEN+HIGH)/6;
D1:=(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))/211;
D2:=EMA(D1,2);
D3:=EMA(D2,2);
K1:=EMA(D3,2);
起涨:IF(CROSS(D1,K1),30,0),COLORFFCC66;
选股公式源码:
{选股公式一:红钻图标}
GUP1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
GUP2:=SMA(ABS(LOW-GUP1),13,1)/SMA(MAX(LOW-GUP1,0),10,1);
GUP3:=EMA(GUP2,10);
GUP4:=LLV(LOW,33);
GUP5:=EMA(IF(LOW<=GUP4,GUP3,0),3);
JBS:=C/REF(C,1)>1.05 AND C=H AND BETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,12));
升:=FILTER(JBS,28)*100;
GUP1A:=IF((C/REF(C,1)>1.05 AND H/C<1.01 AND C>REF(C,1)),91,0);
GUP2A:=FILTER((GUP1A>90),45) AND FILTER((GUP1A>90),35) AND 升>0;
抄:=GUP2A AND COUNT(GUP2A,60)=1;
红钻图标:抄;
{选股公式二:起涨}
SS:=MA(C,60)>REF(MA(C,60),1);
N:=10;
A:=(3*CLOSE+LOW+OPEN+HIGH)/6;
D1:=(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))/211;
D2:=EMA(D1,2);
D3:=EMA(D2,2);
K1:=EMA(D3,2);
起涨:IF(CROSS(D1,K1),30,0),COLORFFCC66; |