副图公式源码支持: 手机/电脑
GUP1:=LLV(LOW,36);
GUP2:=HHV(HIGH,30);
GUP3:=EMA((CLOSE-GUP1)/(GUP2-GUP1)*4,4)*25;
BIAS1W:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
BIAS2W:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
BIAS3W:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
GM:=(BIAS1W+2*BIAS2W+3*BIAS3W)/6;
GN:=MA(GM,3);
D:=EMA((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,20);
J:=EMA((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,5);
K:EMA(D,3),COLOR00FF00,LINETHICK1;
M:EMA(J,7),COLORRED,LINETHICK1;
龙:J,COLORLIMAGENTA,LINETHICK2;
底观察:IF(GN<-4,10,0),COLORLIBLUE,LINETHICK2;
底背离:IF((GUP3<10),90,100), COLORGREEN,LINETHICK2;
顶背离:IF((GUP3>90),5,18), COLOR808000,LINETHICK2;
AA:=LLV(LOW,36);
BB:=HHV(HIGH,30);
DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25);
虎:=(((DD-LLV(DD,21))/(HHV(DD,21)-LLV(DD,21)))*(4))*(25);
跟踪:10,COLOR0000FF,LINETHICK1;
强买入:IF((COUNT((DD>REF(DD,1)),1)=1) AND (REF(DD,1)<REF(REF(DD,1),1)) AND (DD<跟踪),20,0),COLORF00FF0;
DRAWICON(CROSS(10,龙),5,1);
V1:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;
V2:=(CLOSE-LLV(LOW,43))/(HHV(HIGH,43)-LLV(LOW,43))*100;
V3:=SMA(V2,2,1);
顶:100+(-ABS(V1)),COLORGRAY;
底:ABS(V1),COLORGRAY;
GUA1:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
GUA2:=SMA(GUA1,3,1);
GUA3:=SMA(GUA2,3,1);
GUA4:=SMA(GUA3,3,1);
GUA5:=CROSS(GUA3,GUA4) AND GUA3<20;
GUA8:=CROSS(GUA2,GUA3) AND GUA3>80 AND GUA3>GUA4;
GUA9:=CROSS(GUA4,GUA3) AND GUA3>80;
DRAWTEXT(FILTER(GUA5,10)=1,21,'抄底'),COLORRED;
STICKLINE(FILTER(GUA5,10)=1,0,20,2,0),COLORRED;
STICKLINE(FILTER(GUA9,5)=1,80,100,2,0),COLORGREEN;
DRAWTEXT(FILTER(GUA9,5)=1,79,'逃顶'),COLORGREEN;
STICKLINE(GUA8,85,100,2,0),COLOR0099FF;
选股公式源码
{选股公式一:抄底}
GUA1:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
GUA2:=SMA(GUA1,3,1);
GUA3:=SMA(GUA2,3,1);
GUA4:=SMA(GUA3,3,1);
GUA5:=CROSS(GUA3,GUA4) AND GUA3<20;
抄底:FILTER(GUA5,10)=1;
{选股公式二:红箭头图标}
D:=EMA((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,20);
J:=EMA((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,5);
龙:=J,COLORLIMAGENTA,LINETHICK2;
红箭头图标:CROSS(10,龙);
{选股公式三:强买入}
AA:=LLV(LOW,36);
BB:=HHV(HIGH,30);
DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25);
跟踪:=10,COLOR0000FF,LINETHICK1;
强买入:IF((COUNT((DD>REF(DD,1)),1)=1) AND (REF(DD,1)<REF(REF(DD,1),1)) AND (DD<跟踪),20,0),COLORF00FF0;
|