本帖最后由 九转妖 于 2023-5-20 10:15 编辑
副图公式源码支持 手机/电脑
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
J1:=REVERSE(J);
AA:=REF(MA(C,1),10)>REF(MA(C,60),10);
买入:CROSS(J,J1) AND AA;
STICKLINE(买入,0,30,6,0),COLORBLUE;
STICKLINE(买入,30,60,4,0),COLORWHITE;
STICKLINE(买入,60,80,2,0),COLORYELLOW;
DRAWTEXT(买入,70,'跟庄买'),COLORRED;
GUP1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
GUP2:=SMA(ABS(LOW-GUP1),13,1)/SMA(MAX(LOW-GUP1,0),10,1);
GUP3:=EMA(GUP2,10);
GUP4:=LLV(LOW,33);
GUP5:=EMA(IF(LOW<=GUP4,GUP3,0),3);
庄进:IF(GUP5>REF(GUP5,1),GUP5,0),COLORRED,NODRAW;
STICKLINE(GUP5>REF(GUP5,1),0,GUP5,3,0 ),COLORRED;
STICKLINE(GUP5>REF(GUP5,1),0,GUP5,3,0 ),COLOR000055;
STICKLINE(GUP5>REF(GUP5,1),0,GUP5,2.6,0 ),COLOR000077;
STICKLINE(GUP5>REF(GUP5,1),0,GUP5,2.1,0 ),COLOR000099;
STICKLINE(GUP5>REF(GUP5,1),0,GUP5,1.5,0 ),COLOR0000BB;
STICKLINE(GUP5>REF(GUP5,1),0,GUP5,0.9,0 ),COLOR0000DD;
STICKLINE(GUP5>REF(GUP5,1),0,GUP5,0.3,0 ),COLOR0000FF;
洗盘:IF(GUP5<REF(GUP5,1),GUP5,0),COLORGREEN,NODRAW;
STICKLINE(GUP5<REF(GUP5,1),0,GUP5,3,0),COLORGREEN;
STICKLINE(GUP5<REF(GUP5,1),0,GUP5,3,0),COLOR005500;
STICKLINE(GUP5<REF(GUP5,1),0,GUP5,2.6,0),COLOR007700;
STICKLINE(GUP5<REF(GUP5,1),0,GUP5,2.1,0),COLOR009900;
STICKLINE(GUP5<REF(GUP5,1),0,GUP5,1.5,0),COLOR00BB00;
STICKLINE(GUP5<REF(GUP5,1),0,GUP5,0.9,0),COLOR00DD00;
STICKLINE(GUP5<REF(GUP5,1),0,GUP5,0.3,0),COLOR00FF00;
GUP12:=SMA(ABS(GUP1-H),13,1)/SMA(MAX(GUP1-H,0),10,1);
GUP13:=EMA(GUP12,10);
GUP14:=HHV(H,33);
GUP15:=EMA(IF(H>=GUP14,GUP13,0),3);
顶部:IF(GUP15>REF(GUP15,1),GUP15,0),COLORFF00FF,NODRAW;
STICKLINE(GUP15>REF(GUP15,1),0,GUP15,3,0),COLORFF00FF;
STICKLINE(GUP15>REF(GUP15,1),0,GUP15,3,0 ),COLOR550055;
STICKLINE(GUP15>REF(GUP15,1),0,GUP15,2.6,0 ),COLOR770077;
STICKLINE(GUP15>REF(GUP15,1),0,GUP15,2.1,0 ),COLOR990099;
STICKLINE(GUP15>REF(GUP15,1),0,GUP15,1.5,0 ),COLORBB00BB;
STICKLINE(GUP15>REF(GUP15,1),0,GUP15,0.9,0 ),COLORDD00DD;
STICKLINE(GUP15>REF(GUP15,1),0,GUP15,0.3,0 ),COLORFF00FF;
庄出:IF(GUP15<REF(GUP15,1),GUP15,0),COLORYELLOW,NODRAW;
STICKLINE(GUP15<REF(GUP15,1),0,GUP15,3,0 ),COLORYELLOW;
STICKLINE(GUP15<REF(GUP15,1),0,GUP15,3,0),COLOR005555;
STICKLINE(GUP15<REF(GUP15,1),0,GUP15,2.6,0),COLOR007777;
STICKLINE(GUP15<REF(GUP5,1),0,GUP15,2.1,0),COLOR009999;
STICKLINE(GUP15<REF(GUP15,1),0,GUP15,1.5,0),COLOR00BBBB;
STICKLINE(GUP15<REF(GUP15,1),0,GUP15,0.9,0),COLOR00DDDD;
STICKLINE(GUP15<REF(GUP15,1),0,GUP15,0.3,0),COLOR00FFFF;
A1:=REF(CLOSE,2);
A2:=SMA(MAX(CLOSE-A1,0),7,1)/SMA(ABS(CLOSE-A1),7,1)*100;
N1:=8;
MTM:=C-REF(C,1);
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
庄家埋伏:COUNT(MACD<0,10)=10,COLORCYAN;
STICKLINE(庄家埋伏,0,MACD*(-0.1),2.8,0),LINETHICK6,,COLORCYAN;
DRAWICON(庄家埋伏,MACD*(-0.1),13);
选股公式源码
{选股公式一:跟庄买}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
J1:=REVERSE(J);
AA:=REF(MA(C,1),10)>REF(MA(C,60),10);
买入:=CROSS(J,J1) AND AA;
{GUP1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
GUP2:=SMA(ABS(LOW-GUP1),13,1)/SMA(MAX(LOW-GUP1,0),10,1);
GUP3:=EMA(GUP2,10);
GUP4:=LLV(LOW,33);
GUP5:=EMA(IF(LOW<=GUP4,GUP3,0),3);}
{STICKLINE(买入,0,30,6,0),COLORBLUE;
STICKLINE(买入,30,60,4,0),COLORWHITE;
STICKLINE(买入,60,80,2,0),COLORYELLOW;
DRAWTEXT(买入,70,'跟庄买'),COLORRED;}
跟庄买:买入;
{选股公式二:庄家埋伏}
A1:=REF(CLOSE,2);
A2:=SMA(MAX(CLOSE-A1,0),7,1)/SMA(ABS(CLOSE-A1),7,1)*100;
N1:=8;
MTM:=C-REF(C,1);
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
{GUP12:=SMA(ABS(GUP1-H),13,1)/SMA(MAX(GUP1-H,0),10,1);
GUP13:=EMA(GUP12,10);
GUP14:=HHV(H,33);
GUP15:=EMA(IF(H>=GUP14,GUP13,0),3);}
{STICKLINE(庄家埋伏,0,MACD*(-0.1),2.8,0),LINETHICK6,,COLORCYAN;
DRAWICON(庄家埋伏,MACD*(-0.1),13);}
庄家埋伏:COUNT(MACD<0,10)=10,COLORCYAN; |