副图公式源码支持 手机/电脑
M2:=EMA(CLOSE,8);M3:=EMA(M2,13);M4:=EMA(M2,55);
GUP1A:=EMA(M3,55);
GUP2A:=(REF(HIGH,1)+REF(LOW,1))/2;
GUP3A:=MA(CLOSE,21)+2*STD(CLOSE,21);
A7:=(2*C+H+L)/4;
SK:=EMA((A7-GUP1A)/(GUP2A-GUP1A)*100,7);
SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);
买:=(COUNT(CLOSE<REF(CLOSE,1),8)/8 > 6/10 AND VOL>=1.5*MA(VOL,5) AND
COUNT(SK>=SD,3) AND REF(LOW,1)=LLV(LOW,120));
买1:=(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10 AND
COUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND
REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND
OPEN>REF(CLOSE,1));
买进:买 OR 买1;
GUP1B:=(HIGH+LOW+OPEN+2*CLOSE)/5;
GUP2B:=REF(GUP1B,1);
GUP3B:=SMA((CLOSE-GUP2B),6,1)/SMA(ABS(CLOSE-GUP2B),6,1)*100;
GUP4B:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
GUP5B:=EMA(0.667*REF(GUP4B,1)+0.333*GUP4B,5);
GUP6B:=IF(VOL>=1.3*MA(VOL,5) AND COUNT(GUP4B>=GUP5B AND GUP4B<-17,3) AND REF(LOW,1)=LLV (LOW,120),1,0);
GUP7B:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
GUP8B:=SMA(MAX(GUP1B-GUP2B,0),10,1)/SMA(ABS(GUP1B-GUP2B),10,1)*100;
GUP9B:=IF(COUNT(GUP8B<20,5)>=1 AND COUNT(GUP1B=LLV(GUP1B,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0);
DRAWTEXT(FILTER(GUP9B OR GUP6B,5),20,'买入关注'),COLORGREEN;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势线:EMA(V11,3),LINETHICK2,COLORLIMAGENTA;
V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
准备买:STICKLINE(趋势线<11,趋势线,11,5,0),COLORYELLOW;
准备卖:STICKLINE(趋势线>89,趋势线,89,5,0),COLORWHITE;
顶:89;
底:11,COLORRED;
中:50,POINTDOT,COLORWHITE;
GUT1:=CROSS(EMA(C,13),EMA(C,34));
GUK1:=EMA(C,13)>EMA(C,55) AND EMA(C,34)>EMA(C,55);
GUK:=GUT1 AND GUK1;
DRAWTEXT(GUK,22,'加仓'),COLORADEAEA;
选股公式源码
{选股公式一:买进}
M2:=EMA(CLOSE,8);M3:=EMA(M2,13);M4:=EMA(M2,55);
GUP1A:=EMA(M3,55);
GUP2A:=(REF(HIGH,1)+REF(LOW,1))/2;
GUP3A:=MA(CLOSE,21)+2*STD(CLOSE,21);
A7:=(2*C+H+L)/4;
SK:=EMA((A7-GUP1A)/(GUP2A-GUP1A)*100,7);
SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);
买:=(COUNT(CLOSE<REF(CLOSE,1),8)/8>6/10 AND VOL>=1.5*MA(VOL,5) AND
COUNT(SK>=SD,3) AND REF(LOW,1)=LLV(LOW,120));
买1:=(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10 AND
COUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND
REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND
OPEN>REF(CLOSE,1));
买进:买 OR 买1;
{选股公式二:加仓}
GUT1:=CROSS(EMA(C,13),EMA(C,34));
GUK1:=EMA(C,13)>EMA(C,55) AND EMA(C,34)>EMA(C,55);
GUK:=GUT1 AND GUK1;
加仓:GUK;
{选股公式三:买入关注}
GUP1B:=(HIGH+LOW+OPEN+2*CLOSE)/5;
GUP2B:=REF(GUP1B,1);
GUP3B:=SMA((CLOSE-GUP2B),6,1)/SMA(ABS(CLOSE-GUP2B),6,1)*100;
GUP4B:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
GUP5B:=EMA(0.667*REF(GUP4B,1)+0.333*GUP4B,5);
GUP6B:=IF(VOL>=1.3*MA(VOL,5) AND COUNT(GUP4B>=GUP5B AND GUP4B<-17,3) AND REF(LOW,1)=LLV (LOW,120),1,0);
GUP7B:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
GUP8B:=SMA(MAX(GUP1B-GUP2B,0),10,1)/SMA(ABS(GUP1B-GUP2B),10,1)*100;
GUP9B:=IF(COUNT(GUP8B<20,5)>=1 AND COUNT(GUP1B=LLV(GUP1B,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0);
买入关注:FILTER(GUP9B OR GUP6B,5); |