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