副图公式 源码支持手机/电脑
GUA1:=(2*CLOSE+HIGH+LOW)/4;
GUA2:=LLV(LOW,5);
GUA3:=HHV(HIGH,5);
GUA4:=EMA((GUA1-GUA2)/(GUA3-GUA2)*27,5);
GUA5:=EMA(GUA4,3);
GUA6:=C/REF(C,1)>=1.093 AND H=C;
GUA7:=(C/REF(C,1)-1)*100;
GUA8:=FILTER(WINNER(CLOSE)-REF(WINNER(CLOSE),1)>0.1 AND CLOSE/REF(CLOSE,1)<1.05 AND CAPITAL<1000000000 AND EVERY(GUA4>17,3) AND EVERY(GUA5>17,3),30) AND COUNT(GUA6,5)<=1 AND C>O AND SUM(GUA7,5)<15;
STICKLINE(GUA8,CLOSE,OPEN,1,0),COLORRED;
DRAWTEXT(GUA8,L*0.99,'★伏击'),COLORRED;
GUP2:=HHV(CLOSE,2);
GUP3:=LLV(CLOSE,2);
GUP4:=MA(CLOSE,3);
GUP5:=(3*CLOSE+LOW+OPEN+HIGH)/6;
GUP6:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
GUP7:=REF(GUP6,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
GUP8:=REF(GUP7,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
GUP9:=REF(GUP8,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
GUP10:=REF(GUP9,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
GUP11:=REF(GUP10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
GUP12:=REF(GUP11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
GUP13:=REF(GUP12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
GUP14:=REF(GUP13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
GUP15:=REF(GUP14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
GUP16:=REF(GUP15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
GUP17:=REF(GUP16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
GUP18:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
GUP19:=REF(GUP18,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
GUP20:=REF(GUP19,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
GUP21:=REF(GUP20,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
GUP22:=REF(GUP21,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
GUP23:=REF(GUP22,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
GUP24:=REF(GUP23,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
GUP25:=REF(GUP24,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
GUP26:=REF(GUP25,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
GUP27:=REF(GUP26,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
GUP28:=REF(GUP27,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
GUP29:=REF(GUP28,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
GUP30:=REF(GUP18 OR GUP19 OR GUP20 OR GUP21 OR GUP22 OR GUP23 OR GUP24 OR GUP25 OR GUP26 OR GUP27 OR GUP28 OR GUP29,1) AND GUP6;
GUP31:=REF(GUP6 OR GUP7 OR GUP8 OR GUP9 OR GUP10 OR GUP11 OR GUP12 OR GUP13 OR GUP14 OR GUP15 OR GUP16 OR GUP17,1) AND GUP18;
GUP32:=GUP6 OR GUP7 OR GUP8 OR GUP9 OR GUP10 OR GUP11 OR GUP12 OR GUP13 OR GUP14 OR GUP15 OR GUP16 OR GUP17;
GUP33:=IF(GUP32,GUP3,DRAWNULL);
GUP34:=GUP33;
GUP35:=REF(GUP33,1);
GUP36:=GUP18 OR GUP19 OR GUP20 OR GUP21 OR GUP22 OR GUP23 OR GUP24 OR GUP25 OR GUP26 OR GUP27 OR GUP28 OR GUP29;
GUP37:=IF(GUP36,GUP2,DRAWNULL);
GUP38:=GUP37;
GUP39:=REF(GUP38,1);
GUP40:=GUP30;
GUP41:=GUP31;
GUP42:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<(-14);
GUP43:=(20*GUP5+19*REF(GUP5,1)+18*REF(GUP5,2)+17*REF(GUP5,3)+16*REF(GUP5,4)+15*REF(GUP5,5)+14*REF(GUP5,6)+13*REF(GUP5,7)+12*REF(GUP5,8)+11*REF(GUP5,9)+10*REF(GUP5,10)+9*REF(GUP5,11)+8*REF(GUP5,12)+7*REF(GUP5,13)+6*REF(GUP5,14)+5*REF(GUP5,15)+4*REF(GUP5,16)+3*REF(GUP5,17)+2*REF(GUP5,18)+REF(GUP5,20))/211;
GUP44:=MA(CLOSE,26);
GUP45:=IF(GUP4>GUP43,GUP43,GUP4);
GUP46:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);
GUP47:=HIGH-REF(HIGH,1);
GUP48:=REF(LOW,1)-LOW;
GUP49:=SUM(IF(GUP47>0 AND GUP47>GUP48,GUP47,0),14);
GUP50:=SUM(IF(GUP48>0 AND GUP48>GUP47,GUP48,0),14);
GUP51:=GUP49*100/GUP46;
GUP52:=GUP50*100/GUP46;
GUP53:=GUP51-GUP52;
GUP54:=GUP53>=0 AND REF(GUP53,1)<0;
STICKLINE(GUP40 AND GUP54,OPEN,CLOSE,1,0),COLORMAGENTA;
DRAWTEXT(GUP40 AND GUP54,LOW*0.99,'★龙头'),COLORMAGENTA;
选股公式源码
{选股公式一:伏击}
GUA1:=(2*CLOSE+HIGH+LOW)/4;
GUA2:=LLV(LOW,5);
GUA3:=HHV(HIGH,5);
GUA4:=EMA((GUA1-GUA2)/(GUA3-GUA2)*27,5);
GUA5:=EMA(GUA4,3);
GUA6:=C/REF(C,1)>=1.093 AND H=C;
GUA7:=(C/REF(C,1)-1)*100;
伏击:FILTER(WINNER(CLOSE)-REF(WINNER(CLOSE),1)>0.1 AND CLOSE/REF(CLOSE,1)<1.05 AND CAPITAL<1000000000 AND EVERY(GUA4>17,3) AND EVERY(GUA5>17,3),30) AND COUNT(GUA6,5)<=1 AND C>O AND SUM(GUA7,5)<15;
{选股公式二:龙头}
GUP2:=HHV(CLOSE,2);
GUP3:=LLV(CLOSE,2);
GUP4:=MA(CLOSE,3);
GUP5:=(3*CLOSE+LOW+OPEN+HIGH)/6;
GUP6:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
GUP7:=REF(GUP6,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
GUP8:=REF(GUP7,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
GUP9:=REF(GUP8,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
GUP10:=REF(GUP9,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
GUP11:=REF(GUP10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
GUP12:=REF(GUP11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
GUP13:=REF(GUP12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
GUP14:=REF(GUP13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
GUP15:=REF(GUP14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
GUP16:=REF(GUP15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
GUP17:=REF(GUP16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
GUP18:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
GUP19:=REF(GUP18,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
GUP20:=REF(GUP19,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
GUP21:=REF(GUP20,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
GUP22:=REF(GUP21,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
GUP23:=REF(GUP22,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
GUP24:=REF(GUP23,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
GUP25:=REF(GUP24,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
GUP26:=REF(GUP25,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
GUP27:=REF(GUP26,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
GUP28:=REF(GUP27,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
GUP29:=REF(GUP28,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
GUP30:=REF(GUP18 OR GUP19 OR GUP20 OR GUP21 OR GUP22 OR GUP23 OR GUP24 OR GUP25 OR GUP26 OR GUP27 OR GUP28 OR GUP29,1) AND GUP6;
GUP31:=REF(GUP6 OR GUP7 OR GUP8 OR GUP9 OR GUP10 OR GUP11 OR GUP12 OR GUP13 OR GUP14 OR GUP15 OR GUP16 OR GUP17,1) AND GUP18;
GUP32:=GUP6 OR GUP7 OR GUP8 OR GUP9 OR GUP10 OR GUP11 OR GUP12 OR GUP13 OR GUP14 OR GUP15 OR GUP16 OR GUP17;
GUP33:=IF(GUP32,GUP3,DRAWNULL);
GUP34:=GUP33;
GUP35:=REF(GUP33,1);
GUP36:=GUP18 OR GUP19 OR GUP20 OR GUP21 OR GUP22 OR GUP23 OR GUP24 OR GUP25 OR GUP26 OR GUP27 OR GUP28 OR GUP29;
GUP37:=IF(GUP36,GUP2,DRAWNULL);
GUP38:=GUP37;
GUP39:=REF(GUP38,1);
GUP40:=GUP30;
GUP41:=GUP31;
GUP42:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<(-14);
GUP43:=(20*GUP5+19*REF(GUP5,1)+18*REF(GUP5,2)+17*REF(GUP5,3)+16*REF(GUP5,4)+15*REF(GUP5,5)+14*REF(GUP5,6)+13*REF(GUP5,7)+12*REF(GUP5,8)+11*REF(GUP5,9)+10*REF(GUP5,10)+9*REF(GUP5,11)+8*REF(GUP5,12)+7*REF(GUP5,13)+6*REF(GUP5,14)+5*REF(GUP5,15)+4*REF(GUP5,16)+3*REF(GUP5,17)+2*REF(GUP5,18)+REF(GUP5,20))/211;
GUP44:=MA(CLOSE,26);
GUP45:=IF(GUP4>GUP43,GUP43,GUP4);
GUP46:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);
GUP47:=HIGH-REF(HIGH,1);
GUP48:=REF(LOW,1)-LOW;
GUP49:=SUM(IF(GUP47>0 AND GUP47>GUP48,GUP47,0),14);
GUP50:=SUM(IF(GUP48>0 AND GUP48>GUP47,GUP48,0),14);
GUP51:=GUP49*100/GUP46;
GUP52:=GUP50*100/GUP46;
GUP53:=GUP51-GUP52;
龙头:GUP53>=0 AND REF(GUP53,1)<0; |