副图公式 源码支持手机/电脑
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
MA5:=MA(G1,5);
MA13:=MA(G1,13);
MA21:=MA(G1,21);
MA55:=MA(G1,55);
GUA1:=(INDEXC-MA(INDEXC,6))/MA(INDEXC,6)*100;
GUA2:=(INDEXC-MA(INDEXC,12))/MA(INDEXC,12)*100;
GUA3:=(INDEXC-MA(INDEXC,24))/MA(INDEXC,24)*100;
大盘线GUA1+GUA2+GUA3)/3;
GUB1:=(C-MA(C,6))/MA(C,6)*100;
GUB2:=(C-MA(C,12))/MA(C,12)*100;
GUB3:=(C-MA(C,24))/MA(C,24)*100;
个股线GUB1+GUB2+GUB3)/3,COLORRED;
强势上攻:IF(CROSS(个股线,大盘线),10,0 ),NODRAW,COLORF00FF0;
STICKLINE(强势上攻,0.1,5,3,0),COLORF00FF0;
DRAWTEXT(强势上攻, 5,' 上攻'),COLORF00FF0;
GUC1:=IF(CROSS(个股线,0),5,0);
GUC2:=IF(CROSS(个股线,大盘线),10,0);
GUC3:=(G4+G2+G1)/3;
GUP0:=VOL/IF(G4=G2,4,G4-G2);
GUP1:=GUP0*(MIN(G3,G1)-G2);
GUP2:=GUP0*(GUC3-MIN(G1,G3));
GUP3:=GUP0*(G4-MAX(G3,G1));
GUP4:=GUP0*(MAX(G1,G3)-GUC3);
DDX:=IF(G4=G2,4*GUP0,((GUP1+GUP2)-(GUP3+GUP4)))/SUM(VOL,10)*100;
DDY:=((GUP2+GUP4)-(GUP1+GUP3))/SUM(VOL,10)*100;
DDZ:=((GUP1+GUP2)-(GUP3+GUP4))/((GUP1+GUP2)+(GUP3+GUP4))*100*17;
警戒:=DDX>2 AND DDZ>100 AND DDY>3 AND VOL/CAPITAL*100>3;
上攻警戒:GUB3>0 AND GUC1>0 AND GUC2>0 AND 警戒>0 AND MA13>REF(MA13,1),COLORRED;
GUD1:=MA5>REF(MA5,1);
GUD2:=MA13>REF(MA13,1);
GUD3:=MA21>REF(MA21,1);
GUD4:=GUD1 AND GUD2 AND GUD3;
GUD5:=VOL/((G4-G2)*2-ABS(G1-G3));
GUD6:=IF(G1>G3,GUD5*(G4-G2),IF(G1<G3,GUD5*((G4-G3)+(G1-G2)),VOL/2));
资金主升:警戒>0 AND GUD4>0 AND GUD6>2700,COLORGREEN;
STICKLINE(资金主升,0.3,10,3,0),COLORYELLOW;
DRAWTEXT(资金主升,8,' 拉升'),COLORYELLOW;
选股公式源码
{选股公式一:上攻}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
MA5:=MA(G1,5);
MA13:=MA(G1,13);
MA21:=MA(G1,21);
MA55:=MA(G1,55);
GUA1:=(INDEXC-MA(INDEXC,6))/MA(INDEXC,6)*100;
GUA2:=(INDEXC-MA(INDEXC,12))/MA(INDEXC,12)*100;
GUA3:=(INDEXC-MA(INDEXC,24))/MA(INDEXC,24)*100;
大盘线:=(GUA1+GUA2+GUA3)/3;
GUB1:=(C-MA(C,6))/MA(C,6)*100;
GUB2:=(C-MA(C,12))/MA(C,12)*100;
GUB3:=(C-MA(C,24))/MA(C,24)*100;
个股线:=(GUB1+GUB2+GUB3)/3,COLORRED;
强势上攻:=IF(CROSS(个股线,大盘线),10,0 ),COLORF00FF0;
上攻:强势上攻;
{选股公式二:拉升}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
MA5:=MA(G1,5);
MA13:=MA(G1,13);
MA21:=MA(G1,21);
MA55:=MA(G1,55);
GUA1:=(INDEXC-MA(INDEXC,6))/MA(INDEXC,6)*100;
GUA2:=(INDEXC-MA(INDEXC,12))/MA(INDEXC,12)*100;
GUA3:=(INDEXC-MA(INDEXC,24))/MA(INDEXC,24)*100;
大盘线:=(GUA1+GUA2+GUA3)/3;
GUB1:=(C-MA(C,6))/MA(C,6)*100;
GUB2:=(C-MA(C,12))/MA(C,12)*100;
GUB3:=(C-MA(C,24))/MA(C,24)*100;
个股线:=(GUB1+GUB2+GUB3)/3,COLORRED;
GUC1:=IF(CROSS(个股线,0),5,0);
GUC2:=IF(CROSS(个股线,大盘线),10,0);
GUC3:=(G4+G2+G1)/3;
GUP0:=VOL/IF(G4=G2,4,G4-G2);
GUP1:=GUP0*(MIN(G3,G1)-G2);
GUP2:=GUP0*(GUC3-MIN(G1,G3));
GUP3:=GUP0*(G4-MAX(G3,G1));
GUP4:=GUP0*(MAX(G1,G3)-GUC3);
DDX:=IF(G4=G2,4*GUP0,((GUP1+GUP2)-(GUP3+GUP4)))/SUM(VOL,10)*100;
DDY:=((GUP2+GUP4)-(GUP1+GUP3))/SUM(VOL,10)*100;
DDZ:=((GUP1+GUP2)-(GUP3+GUP4))/((GUP1+GUP2)+(GUP3+GUP4))*100*17;
警戒:=DDX>2 AND DDZ>100 AND DDY>3 AND VOL/CAPITAL*100>3;
GUD1:=MA5>REF(MA5,1);
GUD2:=MA13>REF(MA13,1);
GUD3:=MA21>REF(MA21,1);
GUD4:=GUD1 AND GUD2 AND GUD3;
GUD5:=VOL/((G4-G2)*2-ABS(G1-G3));
GUD6:=IF(G1>G3,GUD5*(G4-G2),IF(G1<G3,GUD5*((G4-G3)+(G1-G2)),VOL/2));
资金主升:=警戒>0 AND GUD4>0 AND GUD6>2700,COLORGREEN;
拉升:资金主升;
|