副图公式源码 支持 手机/电脑
CHP2:=LLV(LOW,10);
CHP3:=HHV(HIGH,25);
CHP4:=EMA((CLOSE-CHP2)/(CHP3-CHP2)*4,4);
趋势线:MA(CHP4,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;
CHPA:=REF(CLOSE,1);
CHPB:=SMA(MAX(CLOSE-CHPA,0),5,1)/SMA(ABS(CLOSE-CHPA),5,1)*1000;
CHPH:=CHPB-LLV(CHPB,10);
CHPS:=(MA(CHPH,2)*3+CHPH*13)/16;
短线买点:=IF(CHPS>13,MA(CHPS,2),CHPS)/6;
短买:IF(CROSS(短线买点,1) AND (短线买点<30),1,0),COLORYELLOW;
X:=MA(AMOUNT,5)/MA(V,5)/100;
CHP13:=(X-MA(AMOUNT,125)/MA(V,125)/100)/X;
CHP14:=MA((LLV(L,45)-C)/(HHV(H,45)-LLV(L,45))*100,3);
CHP15:=C/MA(C,60)-1;
大底:IF(CROSS(-5,CHP14) AND CHP13<-0.4,-0.01,-1),COLORRED;
中底:IF(CROSS(-5,CHP14) AND CHP13<-0.25 AND CHP13>-0.4,-0.3,-1);
小底:IF(CROSS(-5,CHP14) AND CHP13<-0.15 AND CHP13>-0.25,-0.6,-1);
小顶:IF(CROSS(CHP14,-95) AND CHP15<0.2 AND CHP15>=0.1,0.6,1);
中顶:IF(CROSS(CHP14,-95) AND CHP15<0.35 AND CHP15>=0.2,0.3,1);
大顶:IF(CROSS(CHP14,-95) AND CHP15>=0.35,0,1),COLORGREEN;
选股公式源码
{选股公式一:短买}
CHPA:=REF(CLOSE,1);
CHPB:=SMA(MAX(CLOSE-CHPA,0),5,1)/SMA(ABS(CLOSE-CHPA),5,1)*1000;
CHPH:=CHPB-LLV(CHPB,10);
CHPS:=(MA(CHPH,2)*3+CHPH*13)/16;
短线买点:=IF(CHPS>13,MA(CHPS,2),CHPS)/6;
{短买:IF(CROSS(短线买点,1) AND (短线买点<30),1,0),COLORYELLOW;}
短买:CROSS(短线买点,1) AND (短线买点<30);
{选股公式二:小底}
X:=MA(AMOUNT,5)/MA(V,5)/100;
CHP13:=(X-MA(AMOUNT,125)/MA(V,125)/100)/X;
CHP14:=MA((LLV(L,45)-C)/(HHV(H,45)-LLV(L,45))*100,3);
CHP15:=C/MA(C,60)-1;
{小底:IF(CROSS(-5,CHP14) AND CHP13<-0.15 AND CHP13>-0.25,-0.6,-1);}
小底:CROSS(-5,CHP14) AND CHP13<-0.15 AND CHP13>-0.25;
{选股公式三:中底}
X:=MA(AMOUNT,5)/MA(V,5)/100;
CHP13:=(X-MA(AMOUNT,125)/MA(V,125)/100)/X;
CHP14:=MA((LLV(L,45)-C)/(HHV(H,45)-LLV(L,45))*100,3);
CHP15:=C/MA(C,60)-1;
{中底:IF(CROSS(-5,CHP14) AND CHP13<-0.25 AND CHP13>-0.4,-0.3,-1);}
中底:CROSS(-5,CHP14) AND CHP13<-0.25 AND CHP13>-0.4;
{选股公式四:大底}
X:=MA(AMOUNT,5)/MA(V,5)/100;
CHP13:=(X-MA(AMOUNT,125)/MA(V,125)/100)/X;
CHP14:=MA((LLV(L,45)-C)/(HHV(H,45)-LLV(L,45))*100,3);
CHP15:=C/MA(C,60)-1;
{大底:IF(CROSS(-5,CHP14) AND CHP13<-0.4,-0.01,-1),COLORRED;}
大底:CROSS(-5,CHP14) AND CHP13<-0.4; |