這幾天在很多老師的幫助下,按自己的思路做了兩個(gè)選股指標(biāo);現(xiàn)在把自己的研究成果都共享出來,!
思路:主要用21和55均線開始上翹,配合macd,、kdj,、cci、boll指標(biāo)選股,!
現(xiàn)想把他們整合起來,,發(fā)出的信號(hào)在主圖標(biāo)注出來!謝謝
選股公式一:強(qiáng)勢(shì)區(qū)選股,請(qǐng)?jiān)谥鲌D的信號(hào)用紅箭頭顯示
A1:=COUNT(V>REF(V,1),2)>=2;
{A2:=CR.CR<180 AND CR.MA4<CR.MA3 AND CR.MA1>CR.MA3;}
A3:={KDJ.J>KDJ.K AND KDJ.K>KDJ.D AND} KDJ.D>68;
A4:=MACD>0 AND MACD.DEA>0 AND MACD.DIF>MACD.DEA;
A5:="CCI.CCI">100;
A6:=C>"BOLL.BOLL";
ST:=IF(NAMELIKE('S'),0,1) AND IF(NAMELIKE('*'),0,1);
S1:=(CAPITAL/100)/10000<=10;
S2:=DYNAINFO(4)>0;
A0 AND A1 AND A3 AND A4 AND A5 AND A6 AND ST AND S1 AND S2;
選股公式二:強(qiáng)勢(shì)區(qū)回調(diào)選股,,請(qǐng)?jiān)谥鲌D的信號(hào)用B顯示
A0:=COUNT(V<REF(V,1),2)<2;
A1:=M21>REF(M21,1)
AND M55>REF(M55,1);
A2:=M21>M55;
A3:="MACD.DIF">0 AND "MACD.DEA">0 AND "MACD.DIF"<"MACD.DEA";
A4:="CCI.CCI">-100;
A5:=KDJ.J>KDJ.K;
A6:=C<"BOLL.BOLL";
ST:=IF(NAMELIKE('S'),0,1) AND IF(NAMELIKE('*'),0,1);
S1:=(CAPITAL/100)/10000<=10;
S2:=DYNAINFO(4)>0;
S3:=CR.MA3>CR.MA4 AND CR.CR>CR.MA4;
A1 AND A2 AND A3 AND A4 AND A5 AND A6 AND ST AND S1 AND S2 AND S3;
要整合的主圖是:
{M1=1,100,21 M2=1,100,55}
MA1:MA(CLOSE,M1);
MA2:MA(CLOSE,M2);
修改后的代碼:
M21:MA(C,21);
M55:MA(C,55);
A0:=M21>REF(M21,1) AND M55>REF(M55,1);
A1:=COUNT(V>REF(V,1),2)>=2;
A3:=KDJ.D>68;
A4:=MACD>0 AND MACD.DEA>0 AND MACD.DIF>MACD.DEA;
A5:="CCI.CCI">100;
A6:=C>"BOLL.BOLL";
ST:=IF(NAMELIKE('S'),0,1) AND IF(NAMELIKE('*'),0,1);
S1:=(CAPITAL/100)/10000<=10;
S2:=DYNAINFO(4)>0;
AA:=A0 AND A1 AND A3 AND A4 AND A5 AND A6 AND ST AND S1 AND S2;
A00:=COUNT(V<REF(V,1),2)<2;
A11:=M21>REF(M21,1) AND M55>REF(M55,1);
A2:=M21>M55;
A33:="MACD.DIF">0 AND "MACD.DEA">0 AND "MACD.DIF"<"MACD.DEA";
A44:="CCI.CCI">-100;
A55:=KDJ.J>KDJ.K;
A66:=C<"BOLL.BOLL";
S3:=CR.MA3>CR.MA4 AND CR.CR>CR.MA4;
AC:=A11 AND A2 AND A33 AND A44 AND A55 AND A66 AND ST AND S1 AND S2 AND S3;
DRAWICON(AA,L*0.99,1);
DRAWICON(AC,L*0.99,7);
|