副图公式源码支持 手机/电脑
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;
CHP1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
CHP2:=SMA(ABS(LOW-CHP1),13,1)/SMA(MAX(LOW-CHP1,0),10,1);
CHP3:=EMA(CHP2,10);
CHP4:=LLV(LOW,33);
CHP5:=EMA(IF(LOW<=CHP4,CHP3,0),3);
庄进:IF(CHP5>REF(CHP5,1),CHP5,0),COLORRED,NODRAW;
STICKLINE(CHP5>REF(CHP5,1),0,CHP5,3,0 ),COLORRED;
STICKLINE(CHP5>REF(CHP5,1),0,CHP5,3,0 ),COLOR000055;
STICKLINE(CHP5>REF(CHP5,1),0,CHP5,2.6,0 ),COLOR000077;
STICKLINE(CHP5>REF(CHP5,1),0,CHP5,2.1,0 ),COLOR000099;
STICKLINE(CHP5>REF(CHP5,1),0,CHP5,1.5,0 ),COLOR0000BB;
STICKLINE(CHP5>REF(CHP5,1),0,CHP5,0.9,0 ),COLOR0000DD;
STICKLINE(CHP5>REF(CHP5,1),0,CHP5,0.3,0 ),COLOR0000FF;
洗盘:IF(CHP5
STICKLINE(CHP5
STICKLINE(CHP5
STICKLINE(CHP5
STICKLINE(CHP5
STICKLINE(CHP5
STICKLINE(CHP5
STICKLINE(CHP5
CHP12:=SMA(ABS(CHP1-H),13,1)/SMA(MAX(CHP1-H,0),10,1);
CHP13:=EMA(CHP12,10);
CHP14:=HHV(H,33);
CHP15:=EMA(IF(H>=CHP14,CHP13,0),3);
顶部:IF(CHP15>REF(CHP15,1),CHP15,0),COLORFF00FF,NODRAW;
STICKLINE(CHP15>REF(CHP15,1),0,CHP15,3,0),COLORFF00FF;
STICKLINE(CHP15>REF(CHP15,1),0,CHP15,3,0 ),COLOR550055;
STICKLINE(CHP15>REF(CHP15,1),0,CHP15,2.6,0 ),COLOR770077;
STICKLINE(CHP15>REF(CHP15,1),0,CHP15,2.1,0 ),COLOR990099;
STICKLINE(CHP15>REF(CHP15,1),0,CHP15,1.5,0 ),COLORBB00BB;
STICKLINE(CHP15>REF(CHP15,1),0,CHP15,0.9,0 ),COLORDD00DD;
STICKLINE(CHP15>REF(CHP15,1),0,CHP15,0.3,0 ),COLORFF00FF;
庄出:IF(CHP15
STICKLINE(CHP15
STICKLINE(CHP15
STICKLINE(CHP15
STICKLINE(CHP15
STICKLINE(CHP15
STICKLINE(CHP15
STICKLINE(CHP15
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;
{CHP1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
CHP2:=SMA(ABS(LOW-CHP1),13,1)/SMA(MAX(LOW-CHP1,0),10,1);
CHP3:=EMA(CHP2,10);
CHP4:=LLV(LOW,33);
CHP5:=EMA(IF(LOW<=CHP4,CHP3,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);
{CHP12:=SMA(ABS(CHP1-H),13,1)/SMA(MAX(CHP1-H,0),10,1);
CHP13:=EMA(CHP12,10);
CHP14:=HHV(H,33);
CHP15:=EMA(IF(H>=CHP14,CHP13,0),3);}
{STICKLINE(庄家埋伏,0,MACD*(-0.1),2.8,0),LINETHICK6,,COLORCYAN;
DRAWICON(庄家埋伏,MACD*(-0.1),13);}
庄家埋伏:COUNT(MACD<0,10)=10,COLORCYAN; |