副图公式 源码支持手机/电脑
GUA:=(O+H+L+C)/4;
GUB:=MA(GUA,3);
GUC:=SUM(IF(GUA>REF(GUA,1),GUA*VOL,0),4)/SUM(IF(GUA<REF(GUA,1),GUA*VOL,0),4);
GUD:=REF(100-(100/(1+GUC)),1);
GUA1:=HHV(GUA,15);
GUA2:=LLV(GUA,15);
GUA3:=GUA1-GUA2;
GUA4:=EMA((GUA-GUA2)/GUA3,2)*100;
GUB1:=HHV(GUA,60);
GUB2:=LLV(GUA,60);
GUB3:=GUB1-GUB2;
GUB4:=EMA((GUA-GUB2)/GUB3,2)*100;
GUC1:=HHV(GUA,240);
GUC2:=LLV(GUA,240);
GUC3:=GUC1-GUC2;
GUC4:=EMA((GUA-GUC2)/GUC3,2)*100;
短线:GUA4,COLORGREEN;
中线:GUB4,COLORYELLOW;
长线:GUC4,COLORFF00FF;
IF(FILTER(中线<REF(中线,1) AND 中线>90 AND GUB<REF(GUB,1),5),80,100),COLORBLUE,LINETHICK2;
IF(FILTER(中线>REF(中线,1) AND 中线<5 AND C>REF(C,1),5),20,0),COLORRED,LINETHICK2;
STICKLINE(短线>90 AND 中线>70,95,100,1,0),COLORFF00FF;
STICKLINE(短线<5 AND 中线<30,0,5,1,0),COLORFF00FF;
GUD1:=中线>REF(中线,1) AND 短线>REF(短线,1) AND 长线>REF(长线,1) AND 长线<8 AND 中线<10 AND 短线<15;
GUD2:=CROSS(短线,中线) AND 中线<8;
GUD3:=CROSS(短线,长线) AND 长线<8 AND 中线<20;
DRAWICON(FILTER((GUD1 OR GUD2 OR GUD3) AND GUD<15 AND C>REF(C,1),5),5,1);
DRAWICON(FILTER((中线<REF(中线,1) AND 短线<REF(短线,1) AND 长线<REF(长线,1) AND 中线>95 AND 短线>85)OR (长线>100 AND 中线>100 AND 短线>100),5),95,2);
顶部线:90,LINETHICK1,COLORWHITE;
牛熊线:50,LINETHICK1,COLORYELLOW;
底部线:20,COLORFFFF00;
选股公式源码
{选股公式一:红色信号}
GUA:=(O+H+L+C)/4;
GUB:=MA(GUA,3);
GUC:=SUM(IF(GUA>REF(GUA,1),GUA*VOL,0),4)/SUM(IF(GUA<REF(GUA,1),GUA*VOL,0),4);
GUD:=REF(100-(100/(1+GUC)),1);
GUA1:=HHV(GUA,15);
GUA2:=LLV(GUA,15);
GUA3:=GUA1-GUA2;
GUA4:=EMA((GUA-GUA2)/GUA3,2)*100;
GUB1:=HHV(GUA,60);
GUB2:=LLV(GUA,60);
GUB3:=GUB1-GUB2;
GUB4:=EMA((GUA-GUB2)/GUB3,2)*100;
GUC1:=HHV(GUA,240);
GUC2:=LLV(GUA,240);
GUC3:=GUC1-GUC2;
GUC4:=EMA((GUA-GUC2)/GUC3,2)*100;
短线:=GUA4,COLORGREEN;
中线:=GUB4,COLORYELLOW;
长线:=GUC4,COLORFF00FF;
红色信号:FILTER(中线>REF(中线,1) AND 中线<5 AND C>REF(C,1),5),COLORRED,LINETHICK2;
{选股公式二:绿箭头图标}
GUA:=(O+H+L+C)/4;
GUB:=MA(GUA,3);
GUC:=SUM(IF(GUA>REF(GUA,1),GUA*VOL,0),4)/SUM(IF(GUA<REF(GUA,1),GUA*VOL,0),4);
GUD:=REF(100-(100/(1+GUC)),1);
GUA1:=HHV(GUA,15);
GUA2:=LLV(GUA,15);
GUA3:=GUA1-GUA2;
GUA4:=EMA((GUA-GUA2)/GUA3,2)*100;
GUB1:=HHV(GUA,60);
GUB2:=LLV(GUA,60);
GUB3:=GUB1-GUB2;
GUB4:=EMA((GUA-GUB2)/GUB3,2)*100;
GUC1:=HHV(GUA,240);
GUC2:=LLV(GUA,240);
GUC3:=GUC1-GUC2;
GUC4:=EMA((GUA-GUC2)/GUC3,2)*100;
短线:=GUA4,COLORGREEN;
中线:=GUB4,COLORYELLOW;
长线:=GUC4,COLORFF00FF;
GUD1:=中线>REF(中线,1) AND 短线>REF(短线,1) AND 长线>REF(长线,1) AND 长线<8 AND 中线<10 AND 短线<15;
GUD2:=CROSS(短线,中线) AND 中线<8;
GUD3:=CROSS(短线,长线) AND 长线<8 AND 中线<20;
绿箭头图标:FILTER((GUD1 OR GUD2 OR GUD3) AND GUD<15 AND C>REF(C,1),5); |