副图公式源码 支持 手机/电脑
GUP2:=LLV(LOW,10);
GUP3:=HHV(HIGH,25);
GUP4:=EMA((CLOSE-GUP2)/(GUP3-GUP2)*4,4);
趋势线:MA(GUP4,2);
IF(趋势线>REF(趋势线,1),趋势线,DRAWNULL),COLORRED;
IF(趋势线<REF(趋势线,1),趋势线,DRAWNULL),COLORBLUE;
STICKLINE(趋势线>REF(趋势线,1) ,趋势线 ,REF(趋势线,1),1,0),COLORRED;
STICKLINE(趋势线<=REF(趋势线,1) ,趋势线 ,REF(趋势线,1),1,0),COLOR00FF00;
GUPA:=REF(CLOSE,1);
GUPB:=SMA(MAX(CLOSE-GUPA,0),5,1)/SMA(ABS(CLOSE-GUPA),5,1)*1000;
GUPH:=GUPB-LLV(GUPB,10);
GUPS:=(MA(GUPH,2)*3+GUPH*13)/16;
短线买点:=IF(GUPS>13,MA(GUPS,2),GUPS)/6;
短买:IF(CROSS(短线买点,1) AND (短线买点<30),1,0),COLORYELLOW;
X:=MA(AMOUNT,5)/MA(V,5)/100;
GUP13:=(X-MA(AMOUNT,125)/MA(V,125)/100)/X;
GUP14:=MA((LLV(L,45)-C)/(HHV(H,45)-LLV(L,45))*100,3);
GUP15:=C/MA(C,60)-1;
大底:IF(CROSS(-5,GUP14) AND GUP13<-0.4,-0.01,-1),COLORRED;
中底:IF(CROSS(-5,GUP14) AND GUP13<-0.25 AND GUP13>-0.4,-0.3,-1);
小底:IF(CROSS(-5,GUP14) AND GUP13<-0.15 AND GUP13>-0.25,-0.6,-1);
小顶:IF(CROSS(GUP14,-95) AND GUP15<0.2 AND GUP15>=0.1,0.6,1);
中顶:IF(CROSS(GUP14,-95) AND GUP15<0.35 AND GUP15>=0.2,0.3,1);
大顶:IF(CROSS(GUP14,-95) AND GUP15>=0.35,0,1),COLORGREEN;
选股公式源码
{选股公式一:短买}
GUPA:=REF(CLOSE,1);
GUPB:=SMA(MAX(CLOSE-GUPA,0),5,1)/SMA(ABS(CLOSE-GUPA),5,1)*1000;
GUPH:=GUPB-LLV(GUPB,10);
GUPS:=(MA(GUPH,2)*3+GUPH*13)/16;
短线买点:=IF(GUPS>13,MA(GUPS,2),GUPS)/6;
{短买:IF(CROSS(短线买点,1) AND (短线买点<30),1,0),COLORYELLOW;}
短买:CROSS(短线买点,1) AND (短线买点<30);
{选股公式二:小底}
X:=MA(AMOUNT,5)/MA(V,5)/100;
GUP13:=(X-MA(AMOUNT,125)/MA(V,125)/100)/X;
GUP14:=MA((LLV(L,45)-C)/(HHV(H,45)-LLV(L,45))*100,3);
GUP15:=C/MA(C,60)-1;
{小底:IF(CROSS(-5,GUP14) AND GUP13<-0.15 AND GUP13>-0.25,-0.6,-1);}
小底:CROSS(-5,GUP14) AND GUP13<-0.15 AND GUP13>-0.25;
{选股公式三:中底}
X:=MA(AMOUNT,5)/MA(V,5)/100;
GUP13:=(X-MA(AMOUNT,125)/MA(V,125)/100)/X;
GUP14:=MA((LLV(L,45)-C)/(HHV(H,45)-LLV(L,45))*100,3);
GUP15:=C/MA(C,60)-1;
{中底:IF(CROSS(-5,GUP14) AND GUP13<-0.25 AND GUP13>-0.4,-0.3,-1);}
中底:CROSS(-5,GUP14) AND GUP13<-0.25 AND GUP13>-0.4;
{选股公式四:大底}
X:=MA(AMOUNT,5)/MA(V,5)/100;
GUP13:=(X-MA(AMOUNT,125)/MA(V,125)/100)/X;
GUP14:=MA((LLV(L,45)-C)/(HHV(H,45)-LLV(L,45))*100,3);
GUP15:=C/MA(C,60)-1;
{大底:IF(CROSS(-5,GUP14) AND GUP13<-0.4,-0.01,-1),COLORRED;}
大底:CROSS(-5,GUP14) AND GUP13<-0.4; |