副图公式源码 :支持手机/电脑
N:=60;
M:=30;
GUP2:=MA(CLOSE,5);
GUP3:=MA(CLOSE,10);
GUP4:=MA(CLOSE,20);
GUP5:=MA(CLOSE,30);
GUP6:=(GUP2+GUP3+GUP4+GUP5)/4;
GUP7:=(GUP6-REF(GUP6,15))/REF(GUP6,15)*100;
GUP8:=(GUP6-REF(GUP6,15))/REF(GUP6,15)*100;
GUP9:=EMA(GUP7,8);
反转:STICKLINE(GUP9>1*REF(GUP9,1),GUP7,0,5,0),COLORRED;
持股:STICKLINE(GUP7>1*REF(GUP7,1),GUP7,GUP9,5,0),COLORRED;
持币:STICKLINE(GUP7<1*REF(GUP7,1),GUP7,GUP9,5,1),COLORRED;
洗盘:STICKLINE(GUP7<1*REF(GUP7,1) AND GUP9>1*REF(GUP9,1),GUP7,GUP9,10,0),COLORRED;
GUP26:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
GUP27:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
GUP28:=EMA(GUP27,9);
GUP29:=2*(GUP27-GUP28);
RSVV:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
GS0:=SMA(RSVV,3,1),COLORRED,LINETHICK1;
GS1:=SMA(GS0,3,1),COLORYELLOW,LINETHICK1;
RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;
GS2:=SMA(RSV1,5,1),COLORFF00FF,LINETHICK1;
GS3:=SMA(GS2,10,1),COLORGREEN,LINETHICK1;
DRAWTEXT(GUP27<(-50) AND GUP26>7 AND GUP27<GUP28,(-10),'底'),COLORRED;
DRAWTEXT(GUP27<(-50) AND GUP26>7 AND GUP27>=GUP28,5,'追'),COLORRED;
STICKLINE(GUP27<(-50) AND GUP26>7,0,(-10),5,0),COLORRED;
线1:=100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M)),COLORRED;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
线2:=EMA(J,6),COLORYELLOW;
GUP299:=REF(LOW,1);
GUP39:=SMA(ABS(LOW-GUP299),3,1)/SMA(MAX(LOW-GUP299,0),3,1)*100;
GUP49:=EMA(IF(CLOSE*1.3,GUP39*10,GUP39/10),3);
GUP59:=LLV(LOW,30);
GUP69:=HHV(GUP49,30);
GUP79:=IF(MA(CLOSE,58),1,0);
GUP89:=EMA(IF(LOW<=GUP59,(GUP49+GUP69*2)/2,0),3)/618*GUP79;
GUP99:=IF(GUP89>100,100,GUP89);
吸筹:=STICKLINE(GUP99>-120,0,GUP99,6,1),COLORRED;
AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
势:=CEILING(SMA(AA5,13,8)),COLORRED,LINETHICK2;
买入:CROSS(线2,线1) AND 势>线2,COLORYELLOW,POINTDOT;
STICKLINE(CROSS(线2,线1) AND 势>线2 AND GS2>GS3,15,0,4,0),COLORYELLOW;
选股公式源码
{选股公式一:黄柱买入}
N:=60;M:=30;
RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;
GS2:=SMA(RSV1,5,1),COLORFF00FF,LINETHICK1;
GS3:=SMA(GS2,10,1),COLORGREEN,LINETHICK1;
线1:=100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M)),COLORRED;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
线2:=EMA(J,6),COLORYELLOW;
AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
势:=CEILING(SMA(AA5,13,8)),COLORRED,LINETHICK2;
STICKLINE(CROSS(线2,线1) AND 势>线2 AND GS2>GS3,15,0,4,0),COLORYELLOW;
{选股公式二:底}
GUP26:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
GUP27:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
GUP28:=EMA(GUP27,9);
底:GUP27<(-50) AND GUP26>7 AND GUP27<GUP28;
{选股公式三:追}
GUP26:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
GUP27:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
GUP28:=EMA(GUP27,9);
追:GUP27<(-50) AND GUP26>7 AND GUP27>=GUP28; |