送大家一個不錯的選股公式
AA:=REF(CLOSE,1);
BBB:=SMA(MAX(CLOSE-AA,0),5,1)/SMA(ABS(CLOSE-AA),5,1)*1000;
HHH:=BBB-LLV(BBB,10);
SS:=(MA(HHH,2)*3+HHH*13)/16;
短線買點:=IF(SS>13,MA(SS,2),SS)/6;
短線出擊:=CROSS(短線買點,1) AND 短線買點<30;
RSVA1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
RSVA2:=100*(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9));
VAR21:=SMA(RSVA2,9,1)+100;
VAR11:=SMA(RSVA1,3,1);
VAR51:=SMA(VAR11,3,1)+100;
頂?shù)拙€:=VAR51-VAR21+50;
VAR2:=LLV(LOW,33);
VAR3:=HHV(HIGH,21);
VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*100,10)*-1+100;
送大家一個主圖和選股!
【主圖】
{小金角技巧 }
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
YHD:=COUNT(REF(MA10<MA20,3),16)>=15 AND COUNT(MA5>MA10,3)>2;
小金角:=YHD AND CROSS(MA10,MA20) AND MA20>REF(MA20,1);
DRAWTEXT(小金角,L*0.99,'★小金角'),COLORCC00CC;
{大金角技巧}
MA62:=MA(C,62);
V1:=V>REF(V,1);
大金角:=CROSS(MA20,MA62)AND MA62>REF(MA62,1) AND COUNT(V1,3)>2;
DRAWTEXT(大金角,L*0.995,'★大金角'),COLORCC00CC;
{小金邊技巧 }
MA4:=MA(C,4);
V11:=COUNT(CROSS(MA10,MA20),15);
V2:=C<REF(CLOSE,1) AND REF(CLOSE,1)<REF(CLOSE,2);
XJB:=V11=1 AND V2 AND MA10>C AND C>MA20 AND SLOPE(MA20,4)>0 AND SLOPE(MA10,3)>0;
小金邊:=REF(XJB,2)=1 AND MA4>REF(MA4,1) AND V1;
DRAWTEXT(小金邊,L*0.985,'★小金邊'),COLORCC00CC;
{大金邊技巧}
DJJ:=CROSS(MA20,MA62)AND MA62>REF(MA62,1) AND COUNT(V1,3)>2;
大金邊:=COUNT(DJJ,30)>0 AND C<MA20 AND C>MA62 AND MA62>REF(MA62,1);
DRAWTEXT(大金邊,L*0.98,'★大金邊'),COLORCC00CC;
{MACD騎墻技巧}
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
MACD騎墻:=DIFF>=0 AND CROSS(DIFF,DEA) AND V/MA(V,5)>1.5;
DRAWTEXT(MACD騎墻,L*0.975,'★MACD騎墻'),COLORCC00CC;
{半山水庫技巧}
MA60:MA(C,60);
半山水庫:=CROSS(MA20,MA60) AND MA60>REF(MA60,1);
DRAWTEXT(半山水庫,L*0.97,'★半山水庫'),COLORCC00CC;
{隔谷底背離技巧}
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1) AND MACD<0);
底背離:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS (DIFF,DEA) AND MACD>0;
DRAWTEXT(底背離,L*0.965,'★底背離'),COLORCC00CC;
{海豚張嘴技巧}
VAR1:=SLOPE(MA20,3)>0;
VAR2:=ABS(SLOPE(MA62,3))<0.19;
VAR3:=SLOPE(MA62,3)>REF(SLOPE(MA62,3),1);
V1A:=MA62<MA20;
V2A:=COUNT(CROSS(MA20,MA62),10);
海豚張嘴一:=C>MA62 AND C<REF(CLOSE,1) AND REF(CLOSE,1)<REF(CLOSE,2) AND VAR1 AND VAR2 AND VAR3 AND V1A AND V2A=1;
DRAWTEXT(海豚張嘴一,H*1.07,'★海豚張嘴一'),COLORCC00CC;
{海豚張嘴2}
海豚張嘴二:=CROSS(MA20,MA62)AND MA20>REF(MA20,1)AND COUNT(MA4/MA20>1.05,10)>5 AND ABS(MA4/MA20-1)<0.02 AND V/MA(V,5)>1.5;
DRAWTEXT(海豚張嘴二,H*1.03,'★海豚張嘴二'),COLORCC00CC;
{金足底技巧 }
W1:=MA10>REF(MA10,1);
W2:=MA20>=REF(MA20,1);
W3:=V>MA(V,5);
金足底:=(MA4<MA20 AND MA4>=REF(MA4,1) AND C>MA4 AND W1 AND W2 AND W3);
DRAWTEXT(金足底,H*1.001,'★金足底'),COLORCC00CC;
{搭下中小陽增后陰}
V1K:=MA(V,5);
V2K:=MA(V,10);
W1K:=REF(ABS(V1K-V2K)/V2K,1);
W11K:=W1K<0.05 AND REF(C,1)>REF(O,2);
W2K:=REF(C,2)>REF(O,3);
W3K:=C<O;
W4K:=REF(V,2)<REF(V,1);
陽增后陰:=W11K AND W2K AND W3K AND W4K AND MA(C,10)>REF(MA(C,10),1) AND MA(C,20)>REF(MA(C,20),1);
DRAWTEXT(陽增后陰,H*1.05,'★陽增后陰'),COLORCC00CC;
{上叉陰增}
W1T:=ABS(V1K-V2K)/V2K<0.05 AND V2K>V1K;
W2T:=W1T AND C<O;
W3T:=REF(W1T,1) AND C<O;
W4T:=REF(V,1)<V;
上叉陰增:=W1T AND W2T AND W3T AND W4T AND MA(C,5)<REF(MA(C,5),1) AND MA(C,10)<REF(MA(C,10),1) AND MA(C,20)<REF(MA(C,20),1);
DRAWTEXT(上叉陰增,H*1.07,'★上叉陰增'),COLORCC00CC;
{分久必合,合久必分}
MA21:=MA(C,21);
A3:=(MA5+MA21)/2;
IF (MA5>MA21,MA5,A3),COLORRED,LINETHICK2;
IF (MA5>MA21,MA21,A3),COLORRED,LINETHICK2;
IF (MA5<=MA21,MA5,A3),COLOR00FF00,LINETHICK2;
IF (MA5<=MA21,MA21,A3),COLOR00FF00,LINETHICK2;
A3,COLORWHITE,LINETHICK2;
BOLL:MA(CLOSE,26),POINTDOT,COLORWHITE,LINETHICK2;
上:BOLL+2*STD(CLOSE,26),POINTDOT,COLORGREEN,LINETHICK2;
下:BOLL-2*STD(CLOSE,26),POINTDOT,COLORRED,LINETHICK2;
VAR31:=HHVBARS(ZIG(3, 19)>REF(ZIG(3,19),1) AND REF(ZIG(3,19), 1)<REF(ZIG(3,19), 2),0);
趨勢:=100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1);
趨勢線:=100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1);
選股:短線出擊 AND 趨勢線<50;
【選股】
R1:=EMA(HHV(HIGH,500),21);
R2:=EMA(HHV(HIGH,250),21);
R3:=EMA(HHV(HIGH,90),21);
R4:=EMA(LLV(LOW,500),21);
R5:=EMA(LLV(LOW,250),21);
R6:=EMA(LLV(LOW,90),21);
R7:=EMA((R4*0.96+R5*0.96+R6*0.96+R1*0.558+R2*0.558+R3*0.558)/6,21);
R8:=EMA((R4*1.25+R5*1.23+R6*1.2+R1*0.55+R2*0.55+R3*0.65)/6,21);
R9:=EMA((R4*1.3+R5*1.3+R6*1.3+R1*0.68+R2*0.68+R3*0.68)/6,21);
RA:=EMA((R7*3+R8*2+R9)/6*1.738,21);
RB:=REF(LOW,1);
RC:=SMA(ABS(LOW-RB),3,1)/SMA(MAX(LOW-RB,0),3,1)*100;
RD:=EMA(IF(CLOSE*1.35<=RA,RC*10,RC/10),3);
RE:=LLV(LOW,30);
RF:=HHV(RD,30);
R10:=IF(MA(CLOSE,58),1,0);
主力建倉:EMA(IF(LOW<=RE,(RD+RF*2)/2,0),3)/618*R10,COLORSTICK;
V1:=MA(V,5);
V2:=MA(V,10);
W1:=REF(ABS(V1-V2)/V2,1) ;
W9:=W1<0.05 AND REF(C,1)>REF(O,2);
W2:=REF(C,2)>REF(O,3);
W3:=C<O;
W4:=REF(V,2)<REF(V,1);
搭下陽:W9 AND W2 AND W3 AND W4 AND MA(C,10)>REF(MA(C,10),1) AND MA(C,20)>REF(MA(C,20),1);
W5:=ABS(V1-V2)/V2<0.05 AND V2>V1;
W6:=W5 AND C<O;
W7:=REF(W5,1) AND C<O;
W8:=REF(V,1)<V;
上叉陰:W5 AND W6 AND W7 AND W8 AND MA(C,5)<REF(MA(C,5),1) AND MA(C,10)<REF(MA(C,10),1) AND MA(C,20)<REF(MA(C,20),1);
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
YHD:=COUNT(REF(MA10<MA20,3),16)>=15 AND COUNT(MA5>MA10,3)>2;
小金角:YHD AND CROSS(MA10,MA20)AND MA20>REF(MA20,1);
MA62:=MA(C,62);
V3:=V>REF(V,1);
大金角:CROSS(MA20,MA62)AND MA62>REF(MA62,1) AND COUNT(V3,3)>2;
MA4:=MA(C,4);
L1:=V>REF(V,1);
V4:=COUNT(CROSS(MA10,MA20),15);
V5:=C<REF(CLOSE,1) AND REF(CLOSE,1)<REF(CLOSE,2);
V6:=V4=1 AND V5 AND MA10>C AND C>MA20 AND SLOPE(MA20,4)>0 AND SLOPE(MA10,3)>0;
小金邊:REF(V6,2)=1 AND MA4>REF(MA4,1) AND L1;
V7:=V>REF(V,1);
DJJ:=CROSS(MA20,MA62)AND MA62>REF(MA62,1) AND COUNT(V7,3)>2;
大金邊:COUNT(DJJ,30)>0 AND C<MA20 AND C>MA62 AND MA62>REF(MA62,1);
DIF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=2*(DIF-DEA), COLORSTICK,LINETHICK2;
MACD騎墻: DIF>=0 AND CROSS(DIF,DEA) AND V/MA(V,5)>1.5;
MA60:=MA(C,60);
半山水庫:CROSS(MA20,MA60) AND MA60>REF(MA60,1);
A1:=BARSLAST(REF(CROSS(DIF,DEA),1) AND MACD<0);
隔谷底背:REF(CLOSE,A1+1)>CLOSE AND DIF>REF(DIF,A1+1) AND CROSS(DIF,DEA) AND MACD>0;
W10:=MA10>REF(MA10,1);
W11:=MA20>=REF(MA20,1);
W12:=V>MA(V,5);
金足底:(MA4<MA20 AND MA4>=REF(MA4,1) AND C>MA4 AND W10 AND W11 AND W12);
M5:=MA(CLOSE,5);
M4:=MA(CLOSE,4);
MA3:=MA(CLOSE,3);
VOL5:=MA(VOL,5);
雨青抄底:M5>M4 AND SLOPE(M5,5)<0 AND SLOPE(M4,4)<0 AND SLOPE(MA3,3) AND REF(M4>MA3,1) AND CROSS(MA3,M4) AND VOL>VOL5;
VAR1:=SLOPE(MA20,3)>0;
VAR2:=ABS(SLOPE(MA62,3))<0.19;
VAR3:=SLOPE(MA62,3)>REF(SLOPE(MA62,3),1);
V8:=MA62<MA20;
V9:=COUNT(CROSS(MA20,MA62),10);
海豚欲張嘴:C>MA62 AND C<REF(CLOSE,1) AND REF(CLOSE,1)<REF(CLOSE,2) AND VAR1 AND VAR2 AND VAR3 AND V8 AND V9=1;
A4:=MA(C,4);
A20:=MA(C,20);
A62:=MA(C,62);
海豚張嘴1:CROSS(A20,A62)AND A20>REF(A20,1)AND COUNT(A4/A20>1.05,10)>5 AND ABS(A4/A20-1)<0.02 AND V/MA(V,5)>1.5;
AR1:=EMA(CLOSE,12)-EMA(CLOSE,26);
AR2:=EMA(AR1,9);
AR3:=AR1-AR2;
AR4:=MA(CLOSE,4);
AR5:=MA(CLOSE,20);
AR6:=MA(CLOSE,62);
AR7:=LLVBARS(AR4,4);
AR8:=LLVBARS(AR6,30);
AR9:=COUNT(AR7=1,10);
海豚張嘴2:3<AR8<29 AND AR7=1 AND AR4>AR5 AND AR5>AR6 AND AR3>-0.022 AND AR9=1 AND SLOPE(AR6,5)<0.035;