副图公式源码支持: 手机/电脑
GUP1:=(O+H+L+C)/4;
GUP2:=MA(GUP1,3);
GUP3:=SUM(IF(GUP1>REF(GUP1,1),GUP1*VOL,0),4)/SUM(IF(GUP1<REF(GUP1,1),GUP1*VOL,0),4);
GUP4:=REF(100-(100/(1+GUP3)),1);
GUP5:=HHV(GUP1,15);
GUP6:=LLV(GUP1,15);
GUP7:=GUP5-GUP6;
GUP8:=EMA((GUP1-GUP6)/GUP7,2)*100;
GUP9:=HHV(GUP1,60);
GUP10:=LLV(GUP1,60);
GUP11:=GUP9-GUP10;
GUP12:=EMA((GUP1-GUP10)/GUP11,2)*100;
GUP13:=HHV(GUP1,240);
GUP14:=LLV(GUP1,240);
GUP15:=GUP13-GUP14;
GUP16:=EMA((GUP1-GUP14)/GUP15,2)*100;
短线:GUP8,COLORGREEN;
中线:GUP12,COLORYELLOW;
长线:GUP16,COLORFF00FF;
STICKLINE(短线>90 AND 中线>94,95,100,6,0),COLOR00FF00;
STICKLINE(短线<5 AND 中线<5,0,8,6,0);
卖出:IF(FILTER(中线<REF(中线,1)AND 中线>90 AND GUP2<REF(GUP2,1),5),80,100),COLORBLUE,LINETHICK2;
买入:IF(FILTER(中线>REF(中线,1)AND 中线<5 AND C>REF(C,1),5),20,0),COLORRED,LINETHICK2;
D1:=中线>REF(中线,1)AND 短线>REF(短线,1)AND 长线>REF(长线,1)AND 长线<8 AND 中线<10 AND 短线<15;
D2:=CROSS(短线,中线)AND 中线<8;
D3:=CROSS(短线,长线)AND 长线<8 AND 中线<20;
DRAWICON(FILTER((D1 OR D2 OR D3) AND GUP4<15 AND C>REF(C,1),5),10,25);
DRAWICON(FILTER((中线<REF(中线,1)AND 短线<REF(短线,1)AND 长线<REF(长线,1)AND 中线>95 AND 短线>85)OR (长线>100 AND 中线>100 AND 短线>100),5),90,27);
顶部:95,LINETHICK1,COLORWHITE;
底部:5,COLORFFFF00;
选股公式源码
{选股公式一:买入}
GUP1:=(O+H+L+C)/4;
GUP2:=MA(GUP1,3);
GUP3:=SUM(IF(GUP1>REF(GUP1,1),GUP1*VOL,0),4)/SUM(IF(GUP1<REF(GUP1,1),GUP1*VOL,0),4);
GUP4:=REF(100-(100/(1+GUP3)),1);
GUP5:=HHV(GUP1,15);
GUP6:=LLV(GUP1,15);
GUP7:=GUP5-GUP6;
GUP8:=EMA((GUP1-GUP6)/GUP7,2)*100;
GUP9:=HHV(GUP1,60);
GUP10:=LLV(GUP1,60);
GUP11:=GUP9-GUP10;
GUP12:=EMA((GUP1-GUP10)/GUP11,2)*100;
中线:=GUP12,COLORYELLOW;
买入:FILTER(中线>REF(中线,1)AND 中线<5 AND C>REF(C,1),5),COLORRED,LINETHICK2;
{选股公式二:红钻石图标}
GUP1:=(O+H+L+C)/4;
GUP2:=MA(GUP1,3);
GUP3:=SUM(IF(GUP1>REF(GUP1,1),GUP1*VOL,0),4)/SUM(IF(GUP1<REF(GUP1,1),GUP1*VOL,0),4);
GUP4:=REF(100-(100/(1+GUP3)),1);
GUP5:=HHV(GUP1,15);
GUP6:=LLV(GUP1,15);
GUP7:=GUP5-GUP6;
GUP8:=EMA((GUP1-GUP6)/GUP7,2)*100;
GUP9:=HHV(GUP1,60);
GUP10:=LLV(GUP1,60);
GUP11:=GUP9-GUP10;
GUP12:=EMA((GUP1-GUP10)/GUP11,2)*100;
GUP13:=HHV(GUP1,240);
GUP14:=LLV(GUP1,240);
GUP15:=GUP13-GUP14;
GUP16:=EMA((GUP1-GUP14)/GUP15,2)*100;
短线:=GUP8,COLORGREEN;
中线:=GUP12,COLORYELLOW;
长线:=GUP16,COLORFF00FF;
D1:=中线>REF(中线,1)AND 短线>REF(短线,1)AND 长线>REF(长线,1)AND 长线<8 AND 中线<10 AND 短线<15;
D2:=CROSS(短线,中线)AND 中线<8;
D3:=CROSS(短线,长线)AND 长线<8 AND 中线<20;
红钻石图标:FILTER((D1 OR D2 OR D3) AND GUP4<15 AND C>REF(C,1),5); |