副图公式源码支持: 手机/电脑
走势线:SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1);
GUA:=(3*C+L+O+H)/6;
GUX:=(20*GUA+19*REF(GUA,1)+18*REF(GUA,2)+17*REF(GUA,3)+16*REF(GUA,4)+15*REF(GUA,5)+14*REF(GUA,6)+13*REF(GUA,7)+12*REF(GUA,8)+11*REF(GUA,9)+10*REF(GUA,10)+9*REF(GUA,11)+8*REF(GUA,12)+7*REF(GUA,13)+6*REF(GUA,14)+5*REF(GUA,15)+4*REF(GUA,16)+3*REF(GUA,17)+2*REF(GUA,18)+REF(GUA,20))/210;
中线:=EMA(GUX,13);
成本:=EMA(CLOSE,17);
持币:BARSLAST(成本>中线),COLORGREEN;
持股:BARSLAST(成本<中线),COLORRED;
GUP2:=LLV(LOW,33);
GUP3:=HHV(HIGH,21);
GUP4:=EMA((CLOSE-GUP2)/(GUP3-GUP2)*100,20)*0.998;
通道:20,COLORGREEN;
短线:EMA(0.667*REF(GUP4,1)+0.333*GUP4,1);
DRAWTEXT(CROSS(短线,通道),短线,'短线买'),COLORYELLOW;
STICKLINE(CROSS(短线,通道),20,0,2,0) ,COLORRED;
短线买:CROSS(短线,通道),COLORRED;
GUP5:=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);
趋势线:GUP5,LINETHICK2,COLORFF84FF;
DRAWTEXT(CROSS(趋势线,49),47,'转强买'),COLORYELLOW;
STICKLINE(CROSS(趋势线,49),40,0,2,0) ,COLORYELLOW;
转强买:CROSS(趋势线,49),COLORRED;
选股公式源码
{选股公式一:短线买}
走势线:=SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1);
GUA:=(3*C+L+O+H)/6;
GUX:=(20*GUA+19*REF(GUA,1)+18*REF(GUA,2)+17*REF(GUA,3)+16*REF(GUA,4)+
15*REF(GUA,5)+14*REF(GUA,6)+13*REF(GUA,7)+12*REF(GUA,8)+11*REF(GUA,9)+
10*REF(GUA,10)+9*REF(GUA,11)+8*REF(GUA,12)+7*REF(GUA,13)+6*REF(GUA,14)+
5*REF(GUA,15)+4*REF(GUA,16)+3*REF(GUA,17)+2*REF(GUA,18)+REF(GUA,20))/210;
中线:=EMA(GUX,13);
成本:=EMA(CLOSE,17);
持币:=BARSLAST(成本>中线),COLORGREEN;
持股:=BARSLAST(成本<中线),COLORRED;GUP2:=LLV(LOW,33);
GUP3:=HHV(HIGH,21);
GUP4:=EMA((CLOSE-GUP2)/(GUP3-GUP2)*100,20)*0.998;
通道:=20,COLORGREEN;
短线:=EMA(0.667*REF(GUP4,1)+0.333*GUP4,1);
短线买:CROSS(短线,通道);
{选股公式二:转强买}
走势线:=SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1);
GUA:=(3*C+L+O+H)/6;
GUX:=(20*GUA+19*REF(GUA,1)+18*REF(GUA,2)+17*REF(GUA,3)+16*REF(GUA,4)+
15*REF(GUA,5)+14*REF(GUA,6)+13*REF(GUA,7)+12*REF(GUA,8)+11*REF(GUA,9)+
10*REF(GUA,10)+9*REF(GUA,11)+8*REF(GUA,12)+7*REF(GUA,13)+6*REF(GUA,14)+
5*REF(GUA,15)+4*REF(GUA,16)+3*REF(GUA,17)+2*REF(GUA,18)+REF(GUA,20))/210;
GUP5:=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);
趋势线:=GUP5,LINETHICK2,COLORFF84FF;
转强买:CROSS(趋势线,49);
|