副图公式源码支持 手机/电脑
GUP1:=2;
GUP8:=(CLOSE+LOW+HIGH)/3;
GUP9:=ATAN(EMA(GUP8,13)-REF(EMA(GUP8,13),1))*3.1416*10;
GUP11:=EMA(EMA(CLOSE,2),2);
M1:EMA(HHV(GUP11,1),2),COLORWHITE;
M2:EMA(HHV(M1,GUP1),1),COLORFF99FF;
M3:EMA(HHV(M2,GUP1),2),COLORFF77FF;
M4:EMA(HHV(M3,GUP1),3),COLORFF55FF;
M5:EMA(HHV(M4,GUP1),4),COLORFF33FF;
M6:EMA(HHV(M5,GUP1),5),COLORFF11FF;
M7:EMA(HHV(M6,GUP1),6),COLORMAGENTA;
STICKLINE(OPEN>=CLOSE,HIGH,LOW,0,0),COLORCYAN;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),COLORCYAN;
STICKLINE(CLOSE>OPEN,LOW,HIGH,0,0),COLORRED;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,1),COLORRED;
IF(M1<REF(M1,1),M1,DRAWNULL),COLORDD1100;
IF(M2<REF(M2,1),M2,DRAWNULL),COLORDD2200;
IF(M3<REF(M3,1),M3,DRAWNULL),COLORDD3300;
IF(M4<REF(M4,1),M4,DRAWNULL),COLORDD4400;
IF(M5<REF(M5,1),M5,DRAWNULL),COLORDD5500;
IF(M6<REF(M6,1),M6,DRAWNULL),COLORDD6600;
IF(M7<REF(M7,1),M7,DRAWNULL),COLORDD7700;
GUP12:=EMA(CLOSE,5);
GUP13:=EMA(CLOSE,13);
GUP14:=EMA(CLOSE,34);
GUP15:=EMA(CLOSE,55);
GUP16:=EMA(CLOSE,89);
GUP17:=MAX(MAX(MAX(GUP12,GUP13),GUP14),GUP15)/MIN(MIN(MIN(GUP12,GUP13),GUP14),GUP15)<=1.01 AND GUP13>REF(GUP13,1) AND GUP14>REF(GUP14,1) AND GUP15>REF(GUP15,1);
GUP18:=MAX(MAX(GUP12,GUP13),GUP14)/MIN(MIN(GUP12,GUP13),GUP14)<=1.01 AND GUP12>REF(GUP12,1) AND GUP13>REF(GUP13,1) AND GUP14>REF(GUP14,1);
GUP19:=MAX(MAX(GUP12,GUP13),GUP16)/MIN(MIN(GUP12,GUP13),GUP16)<=1.01 AND GUP13>REF(GUP13,1);
GUP20:=MAX(MAX(GUP13,GUP14),GUP15)/MIN(MIN(GUP13,GUP14),GUP15)<=1.01 AND GUP13>REF(GUP13,1);
GUP21:=GUP17 OR GUP18 OR GUP19 OR GUP20;
STICKLINE(GUP21,LLV(CLOSE,5)*0.998,LLV(CLOSE,5)*0.995,50,0),COLOR33CCDD;
GUP22:=MA(CLOSE,60)>REF(MA(CLOSE,60),1) AND CLOSE>MA(CLOSE,60) AND M1>REF(M1,1) AND M2>REF(M2,1) AND M3>REF(M3,1) AND M4>REF(M4,1) AND M5>REF(M5,1) AND M6>REF(M6,1) AND M7>REF(M7,1);
DRAWICON(FILTER(GUP9>1 AND EMA(GUP8,13)>REF(EMA(GUP8,8),1),10),LOW*0.975,1);
IF(GUP22,MA(CLOSE,60),DRAWNULL),CIRCLEDOT,COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0,0,0,24),COLORYELLOW;
STICKLINE(OPEN>CLOSE,CLOSE,OPEN,3,0),COLORFF7700;
STICKLINE(OPEN>CLOSE,CLOSE,OPEN,2.2,0),COLORFF9900;
STICKLINE(OPEN>CLOSE,CLOSE,OPEN,1.5,0),COLORFFBB00;
STICKLINE(OPEN>CLOSE,CLOSE,OPEN,0.5,0),COLORCYAN;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR000099;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.2,0),COLOR0000CC;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0),COLORRED;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0),COLORCC66FF;
STICKLINE(CLOSE=OPEN,CLOSE,OPEN,3,0),COLORWHITE;
STICKLINE(CLOSE=OPEN,CLOSE,OPEN,2.2,0),COLORWHITE;
STICKLINE(CLOSE=OPEN,CLOSE,OPEN,1.5,0),COLORWHITE;
STICKLINE(CLOSE=OPEN,CLOSE,OPEN,0.5,0),COLORWHITE;
GUP48:=CLOSE/REF(CLOSE,1)>=1.05 AND NOT(CLOSE>=INTPART(REF(CLOSE,1)*1.1*100)/100);
STICKLINE(GUP48,CLOSE,OPEN,4,(-1)),COLORLIRED;
STICKLINE(GUP48,CLOSE,OPEN,3,(-1)),COLORYELLOW;
STICKLINE(GUP48,OPEN,CLOSE,2.5,0),COLORRED;
STICKLINE(GUP48,OPEN,CLOSE,1,0),COLORMAGENTA;
GUP49:=REF(CLOSE,1)/CLOSE<=1.099 AND REF(CLOSE,1)/CLOSE>=1.05;
STICKLINE(GUP49,CLOSE,OPEN,4,(-1)),COLORGREEN;
STICKLINE(GUP49,CLOSE,OPEN,3,(-1)),COLORFF9900;
STICKLINE(GUP49,OPEN,CLOSE,2.5,0),COLORFFBB00;
STICKLINE(GUP49,OPEN,CLOSE,1,0),COLORCYAN;
GUP50:=NAMELIKE(4) OR NAMELIKE(5);
GUP51:=CLOSE/REF(CLOSE,1)>=1.095 AND CLOSE=HIGH OR (CLOSE/REF(CLOSE,1)>=1.09 AND CLOSE=OPEN AND OPEN=LOW AND HIGH=LOW) OR (CLOSE/REF(CLOSE,1)>=1.048 AND GUP50=1 AND CLOSE=HIGH) OR (CLOSE/REF(CLOSE,1)>=1.045 AND CLOSE=OPEN AND OPEN=LOW AND HIGH=LOW AND GUP50=1);
STICKLINE(GUP51,CLOSE,OPEN,4,(-1)),COLORYELLOW;
STICKLINE(GUP51,OPEN,CLOSE,3.5,0),COLORRED;
STICKLINE(GUP51,OPEN,CLOSE,2.5,1),COLOR007FFF;
STICKLINE(GUP51,OPEN,CLOSE,1,0),COLORYELLOW;
选股公式源码
{选股公式一:红箭头图标}
GUP12:=EMA(CLOSE,5);
GUP13:=EMA(CLOSE,13);
GUP14:=EMA(CLOSE,34);
GUP15:=EMA(CLOSE,55);
GUP17:=MAX(MAX(MAX(GUP12,GUP13),GUP14),GUP15)/MIN(MIN(MIN(GUP12,GUP13),GUP14),GUP15)<=1.01 AND GUP13>REF(GUP13,1) AND GUP14>REF(GUP14,1) AND GUP15>REF(GUP15,1);
GUP8:=(CLOSE+LOW+HIGH)/3;
GUP9:=ATAN(EMA(GUP8,13)-REF(EMA(GUP8,13),1))*3.1416*10;
红箭头图标:FILTER(GUP9>1 AND EMA(GUP8,13)>REF(EMA(GUP8,8),1),10);
{选股公式二:黄柱信号}
GUP50:=NAMELIKE(4) OR NAMELIKE(5);
GUP51:=CLOSE/REF(CLOSE,1)>=1.095 AND CLOSE=HIGH OR (CLOSE/REF(CLOSE,1)>=1.09 AND CLOSE=OPEN AND OPEN=LOW AND HIGH=LOW) OR (CLOSE/REF(CLOSE,1)>=1.048 AND GUP50=1 AND CLOSE=HIGH) OR (CLOSE/REF(CLOSE,1)>=1.045 AND CLOSE=OPEN AND OPEN=LOW AND HIGH=LOW AND GUP50=1);
黄柱信号:GUP51; |