副图公式 源码支持手机/电脑
GUPA:=(O+H+L+C)/4;
GUPB:=MA(GUPA,3);
GUPC:=SUM(IF(GUPA>REF(GUPA,1),GUPA*VOL,0),4)/SUM(IF(GUPA<REF(GUPA,1),GUPA*VOL,0),4);
GUPD:=REF(100-(100/(1+GUPC)),1);
GUPA1:=HHV(GUPA,15);
GUPA2:=LLV(GUPA,15);
GUPA3:=GUPA1-GUPA2;
GUPA4:=EMA((GUPA-GUPA2)/GUPA3,2)*100;
GUPB1:=HHV(GUPA,60);
GUPB2:=LLV(GUPA,60);
GUPB3:=GUPB1-GUPB2;
GUPB4:=EMA((GUPA-GUPB2)/GUPB3,2)*100;
GUPC1:=HHV(GUPA,240);
GUPC2:=LLV(GUPA,240);
GUPC3:=GUPC1-GUPC2;
GUPC4:=EMA((GUPA-GUPC2)/GUPC3,2)*100;
短期:GUPA4,COLORGREEN;
中期:GUPB4,COLORYELLOW;
长期:GUPC4,COLORFF00FF;
卖:IF(FILTER(中期<REF(中期,1) AND 中期>90 AND GUPB<REF(GUPB,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;
GUPD1:=中期>REF(中期,1) AND 短期>REF(短期,1) AND 长期>REF(长期,1) AND 长期<8 AND 中期<10 AND 短期<15;
GUPD2:=CROSS(短期,中期) AND 中期<8;
GUPD3:=CROSS(短期,长期) AND 长期<8 AND 中期<20;
DRAWICON(FILTER((GUPD1 OR GUPD2 OR GUPD3) AND GUPD<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;
选股公式源码
{选股公式一:买}
GUPA:=(O+H+L+C)/4;
GUPB:=MA(GUPA,3);
GUPC:=SUM(IF(GUPA>REF(GUPA,1),GUPA*VOL,0),4)/SUM(IF(GUPA<REF(GUPA,1),GUPA*VOL,0),4);
GUPD:=REF(100-(100/(1+GUPC)),1);
GUPA1:=HHV(GUPA,15);
GUPA2:=LLV(GUPA,15);
GUPA3:=GUPA1-GUPA2;
GUPA4:=EMA((GUPA-GUPA2)/GUPA3,2)*100;
GUPB1:=HHV(GUPA,60);
GUPB2:=LLV(GUPA,60);
GUPB3:=GUPB1-GUPB2;
GUPB4:=EMA((GUPA-GUPB2)/GUPB3,2)*100;
中期:=GUPB4,COLORYELLOW;
买:FILTER(中期>REF(中期,1) AND 中期<5 AND C>REF(C,1),5),COLORRED,LINETHICK2;
{选股公式二:红箭头图标}
GUPA:=(O+H+L+C)/4;
GUPB:=MA(GUPA,3);
GUPC:=SUM(IF(GUPA>REF(GUPA,1),GUPA*VOL,0),4)/SUM(IF(GUPA<REF(GUPA,1),GUPA*VOL,0),4);
GUPD:=REF(100-(100/(1+GUPC)),1);
GUPA1:=HHV(GUPA,15);
GUPA2:=LLV(GUPA,15);
GUPA3:=GUPA1-GUPA2;
GUPA4:=EMA((GUPA-GUPA2)/GUPA3,2)*100;
GUPB1:=HHV(GUPA,60);
GUPB2:=LLV(GUPA,60);
GUPB3:=GUPB1-GUPB2;
GUPB4:=EMA((GUPA-GUPB2)/GUPB3,2)*100;
GUPC1:=HHV(GUPA,240);
GUPC2:=LLV(GUPA,240);
GUPC3:=GUPC1-GUPC2;
GUPC4:=EMA((GUPA-GUPC2)/GUPC3,2)*100;
短期:=GUPA4,COLORGREEN;
中期:=GUPB4,COLORYELLOW;
长期:=GUPC4,COLORFF00FF;
GUPD1:=中期>REF(中期,1) AND 短期>REF(短期,1) AND 长期>REF(长期,1) AND 长期<8 AND 中期<10 AND 短期<15;
GUPD2:=CROSS(短期,中期) AND 中期<8;
GUPD3:=CROSS(短期,长期) AND 长期<8 AND 中期<20;
红箭头图标:FILTER((GUPD1 OR GUPD2 OR GUPD3) AND GUPD<15 AND C>REF(C,1),5); |