副图公式源码支持: 手机/电脑
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);
建: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),COLORLIBLUE;
拉:IF(GUP51<REF(GUP51,1),GUP51,0),COLORYELLOW;
STICKLINE(GUP51<REF(GUP51,1),0,GUP51,2,0),COLORYELLOW;
出:IF(GUP51>REF(GUP51,1),GUP51,0),COLORCYAN,NODRAW;
STICKLINE(GUP51>REF(GUP51,1),0,GUP51,2,0 ),COLORCYAN;
趋势线:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA
(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
底部:=CROSS(趋势线,8),COLORYELLOW;
A:=建>0;
B:=洗>0;
D:=A OR B;
买进:底部 AND D;
STICKLINE(买进>0 ,-5,-20,3,0),COLORRED;
DRAWTEXT(买进>0,-30,'买点'),COLORRED;
N1:=9;N2:=5;
MTM:=C-REF(C,1);
主力:100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1),COLORWHITE;
主力线:MA(主力,N2),COLORYELLOW;
选股公式源码
{选股公式:买点}
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);
建:=IF(GUP5>REF(GUP5,1),GUP5,0),COLORRED;
洗:=IF(GUP5<REF(GUP5,1),GUP5,0),COLORGREEN;
趋势线:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA
(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
底部:=CROSS(趋势线,8),COLORYELLOW;
A:=建>0;
B:=洗>0;
D:=A OR B;
买进:=底部 AND D;
买点:买进>0; |