副图公式源码支持 手机/电脑
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,6,0),COLORYELLOW;
DRAWTEXT(GUP40 AND GUP54,LOW*0.99,'★擒牛'),COLORYELLOW;
GUA:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,35)-LLV(LOW,34)),3);
GUB1:=MA(CLOSE,5);
GUB2:=MA(CLOSE,13);
GUB3:=MA(CLOSE,21);
GUB44:=MA(CLOSE,60);
GUB55:=MA(CLOSE,144);
GUB4:=OPEN<GUB1 OR OPEN<GUB2 OR OPEN<GUB3;
GUB5:=CLOSE>MAX(GUB1,MAX(GUB2,MAX(GUB3,GUB44)));
GUB6:=VOL/MA(VOL,30)>1.2;
GUB7:=CLOSE/REF(CLOSE,1)>1.049;
GUB8:=GUB4 AND GUB5 AND GUB6 AND GUB7;
GUB9:=GUB8 AND (REF(BARSLAST(GUB8),1)>60 OR BARSSINCE(GUB8)=0);
DRAWICON(GUB9,L*0.98,1);
DRAWICON(FILTER(CROSS(GUA,60),20),L*0.96,38),COLORYELLOW;
STICKLINE(GUA>60,H,L,0,0),COLORRED;
STICKLINE(GUA>60,O,C,2,0),COLORRED;
STICKLINE(GUA<60,H,L,0,1),COLORGREEN;
STICKLINE(GUA<60,O,C,2,1),COLORGREEN;
STICKLINE(GUB9,H,L,0,0),LINETHICK3,COLORBLACK;
STICKLINE(GUB9,O,C,2,0),LINETHICK3,COLORBLACK;
选股公式源码
{选股公式一:擒牛}
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;
擒牛:GUP40 AND GUP54;
{选股公式二:红箭头图标}
GUB1:=MA(CLOSE,5);
GUB2:=MA(CLOSE,13);
GUB3:=MA(CLOSE,21);
GUB44:=MA(CLOSE,60);
GUB55:=MA(CLOSE,144);
GUB4:=OPEN<GUB1 OR OPEN<GUB2 OR OPEN<GUB3;
GUB5:=CLOSE>MAX(GUB1,MAX(GUB2,MAX(GUB3,GUB44)));
GUB6:=VOL/MA(VOL,30)>1.2;
GUB7:=CLOSE/REF(CLOSE,1)>1.049;
GUB8:=GUB4 AND GUB5 AND GUB6 AND GUB7;
GUB9:=GUB8 AND (REF(BARSLAST(GUB8),1)>60 OR BARSSINCE(GUB8)=0);
红箭头图标:GUB9;
{选股公式三:红三角图标}
GUA:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,35)-LLV(LOW,34)),3);
红三角图标:FILTER(CROSS(GUA,60),20);
|