副图公式源码支持 手机/电脑
M2:=EMA(CLOSE,8);M3:=EMA(M2,13);M4:=EMA(M2,55);
CHP1A:=EMA(M3,55);
CHP2A:=(REF(HIGH,1)+REF(LOW,1))/2;
CHP3A:=MA(CLOSE,21)+2*STD(CLOSE,21);
A7:=(2*C+H+L)/4;
SK:=EMA((A7-CHP1A)/(CHP2A-CHP1A)*100,7);
SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);
买:=(COUNT(CLOSE[ 6/10 AND VOL>=1.5*MA(VOL,5) AND]
COUNT(SK>=SD,3) AND REF(LOW,1)=LLV(LOW,120));
买1:=(COUNT(CLOSE[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;
CHP1B:=(HIGH+LOW+OPEN+2*CLOSE)/5;
CHP2B:=REF(CHP1B,1);
CHP3B:=SMA((CLOSE-CHP2B),6,1)/SMA(ABS(CLOSE-CHP2B),6,1)*100;
CHP4B:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
CHP5B:=EMA(0.667*REF(CHP4B,1)+0.333*CHP4B,5);
CHP6B:=IF(VOL>=1.3*MA(VOL,5) AND COUNT(CHP4B>=CHP5B AND CHP4B<-17,3) AND REF(LOW,1)=LLV (LOW,120),1,0);
CHP7B:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
CHP8B:=SMA(MAX(CHP1B-CHP2B,0),10,1)/SMA(ABS(CHP1B-CHP2B),10,1)*100;
CHP9B:=IF(COUNT(CHP8B<20,5)>=1 AND COUNT(CHP1B=LLV(CHP1B,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0);
DRAWTEXT(FILTER(CHP9B OR CHP6B,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;
CHT1:=CROSS(EMA(C,13),EMA(C,34));
CHK1:=EMA(C,13)>EMA(C,55) AND EMA(C,34)>EMA(C,55);
CHK:=CHT1 AND CHK1;
DRAWTEXT(CHK,22,'加仓'),COLORADEAEA;
选股公式源码
{选股公式一:买进}
M2:=EMA(CLOSE,8);M3:=EMA(M2,13);M4:=EMA(M2,55);
CHP1A:=EMA(M3,55);
CHP2A:=(REF(HIGH,1)+REF(LOW,1))/2;
CHP3A:=MA(CLOSE,21)+2*STD(CLOSE,21);
A7:=(2*C+H+L)/4;
SK:=EMA((A7-CHP1A)/(CHP2A-CHP1A)*100,7);
SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);
买:=(COUNT(CLOSE[6/10 AND VOL>=1.5*MA(VOL,5) AND]
COUNT(SK>=SD,3) AND REF(LOW,1)=LLV(LOW,120));
买1:=(COUNT(CLOSE[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;
{选股公式二:加仓}
CHT1:=CROSS(EMA(C,13),EMA(C,34));
CHK1:=EMA(C,13)>EMA(C,55) AND EMA(C,34)>EMA(C,55);
CHK:=CHT1 AND CHK1;
加仓:CHK;
{选股公式三:买入关注}
CHP1B:=(HIGH+LOW+OPEN+2*CLOSE)/5;
CHP2B:=REF(CHP1B,1);
CHP3B:=SMA((CLOSE-CHP2B),6,1)/SMA(ABS(CLOSE-CHP2B),6,1)*100;
CHP4B:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
CHP5B:=EMA(0.667*REF(CHP4B,1)+0.333*CHP4B,5);
CHP6B:=IF(VOL>=1.3*MA(VOL,5) AND COUNT(CHP4B>=CHP5B AND CHP4B<-17,3) AND REF(LOW,1)=LLV (LOW,120),1,0);
CHP7B:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
CHP8B:=SMA(MAX(CHP1B-CHP2B,0),10,1)/SMA(ABS(CHP1B-CHP2B),10,1)*100;
CHP9B:=IF(COUNT(CHP8B<20,5)>=1 AND COUNT(CHP1B=LLV(CHP1B,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0);
买入关注:FILTER(CHP9B OR CHP6B,5); |