副图公式 源码支持手机/电脑
MA(C,3);N:=10;
GUA1:=CONST(HHVBARS(V,N));
GUA2:IF(CURRBARSCOUNT<=N+3,CONST(IF(GUA1=0,C,REF(C,GUA1))),DRAWNULL),COLORFF00FF;
IF(CURRBARSCOUNT=GUA1+1,GUA2,DRAWNULL),CIRCLEDOT,COLORFF00FF;
GUDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;
GUDB20*GUDA+19*REF(GUDA,1)+18*REF(GUDA,2)+17*REF(GUDA,3 )+16*REF(GUDA,4)+15*REF(GUDA,5)+14*REF(GUDA,6) +13*REF(GUDA,7)+12*REF(GUDA,8)+11*REF(GUDA,9)+10*REF(GUDA,10 )+9*REF(GUDA,11)+8*REF(GUDA,12) +7*REF(GUDA,13)+6*REF(GUDA,14)+5*REF(GUDA,15)+4*REF(GUDA,16) +3*REF(GUDA,17)+2*REF(GUDA,18)+ REF(GUDA,20))/210,COLORYELLOW;
GUDC:MA(GUDB,5),COLORRED;
MA1:MA(C,5),COLORRED,LINETHICK1;
MA2:MA(C,10),COLORYELLOW,LINETHICK1;
MA3:MA(C,30),COLOR9933CC,LINETHICK1;
MA4:MA(C,60),COLORGREEN,LINETHICK1;
压力位:HHV(HIGH,19),LINETHICK1,NODRAW;
GUB1:=C>MA(C,5) AND OPEN<MA(C,5);
GUB3:=C>MA(C,10) AND OPEN<MA(C,10);
GUB5:=C>MA(C,30) AND OPEN<MA(C,30);
DRAWTEXT(GUB1 AND GUB5 AND GUB3,LOW*0.97,'龙头买入'),COLORRED;
GUP1:=HHV(HIGH,25);
GUP2:=LLV(LOW,25);
GUP3:=EMA((CLOSE-GUP2)/(GUP1-GUP2)*100,20);
GUP4:=EMA((CLOSE-GUP2)/(GUP1-GUP2)*100,5);
DRAWICON(CROSS(GUP4,GUP3),LOW*0.97,13);
GUC1RAWICON(CROSS(MA1,MA2),MA2,1);
GUC2RAWICON(CROSS(MA1,MA3),MA3,1);
GUC3RAWICON(CROSS(MA2,MA3),MA3,1);
选股公式源码
{选股公式一:龙头买入}
GUB1:=C>MA(C,5) AND OPEN<MA(C,5);
GUB3:=C>MA(C,10) AND OPEN<MA(C,10);
GUB5:=C>MA(C,30) AND OPEN<MA(C,30);
龙头买入:GUB1 AND GUB5 AND GUB3;
{选股公式二:红球}
GUP1:=HHV(HIGH,25);
GUP2:=LLV(LOW,25);
GUP3:=EMA((CLOSE-GUP2)/(GUP1-GUP2)*100,20);
GUP4:=EMA((CLOSE-GUP2)/(GUP1-GUP2)*100,5);
红球:CROSS(GUP4,GUP3);
{选股公式三:红箭头1}
MA1:=MA(C,5),COLORRED,LINETHICK1;
MA2:=MA(C,10),COLORYELLOW,LINETHICK1;
MA3:=MA(C,30),COLOR9933CC,LINETHICK1;
红箭头:CROSS(MA1,MA2);
{选股公式四:红箭头2}
MA1:=MA(C,5),COLORRED,LINETHICK1;
MA2:=MA(C,10),COLORYELLOW,LINETHICK1;
MA3:=MA(C,30),COLOR9933CC,LINETHICK1;
红箭头:CROSS(MA1,MA3);
{选股公式五:红箭头3}
MA1:=MA(C,5),COLORRED,LINETHICK1;
MA2:=MA(C,10),COLORYELLOW,LINETHICK1;
MA3:=MA(C,30),COLOR9933CC,LINETHICK1;
红箭头:CROSS(MA2,MA3); |