1、 AA20:MA(C,20)colorwhite; BB20:=atan((aa20-ref(aa20,1)))*3.1416*10; STICKLINE(BB20>1 and AA20>ref(AA20,1), AA20,REF(AA20,1),8,0)colorred,linethick2; STICKLINE(BB20<1 and AA20<ref(AA20,1), AA20,REF(AA20,1),8,1),COLORgreen;
20線大于45角的選股公式:
AA20:=MA(C,20); BB20:=atan((aa20-ref(aa20,1)))*3.1416*10; BB20>1 and AA20>ref(AA20,1);
2、5日、10日、20日、30日均線走平并且股價(jià)在3%幅度內(nèi)形成四線粘合的公式
{n: 1 20 5 m: 1 10 3} aH:=max(ma(c,5),max(ma(c,10),max(ma(c,20),ma(c,30)))); aL:=min(ma(c,5),min(ma(c,10),min(ma(c,20),ma(c,30)))); b1:=hhv(max(c,o),n)/llv(min(c,o),n); 結(jié)果:filter(b1<=(1+m/100) and ah/al<=(1+m/150),n),stick;
3、編寫(xiě)三線粘合”,條件:MA5,MA13,MA21三條均線發(fā)生粘合(在10%的范圍內(nèi),即視為粘合)
MAX(MA(CLOSE,5),MA(CLOSE,13),MA(CLOSE,21))/MIN(MA(CLOSE,5),MA(CLOSE,13),MA(CLOS E,21)) <1.1;
4、120線和250線之間的距離不超過(guò)5%的公試
MAX(MA(CLOSE,120),MA(CLOSE,250))/MIN(MA(CLOSE,120),MA(CLOSE,250))<1.05;
5、高手發(fā)一個(gè)籌碼集中的指標(biāo)! ⑦:100*(cost(85)-cost(15))/(cost(85)+cost(15)); ⑨:100*(cost(95)-cost(5))/(cost(95)+cost(5));
*** 集中度的指標(biāo) 90%成本集中:(COST(95)-COST(5))/(COST(95)+COST(5))*100; 70%成本集中:(COST(85)-COST(15))/(COST(85)+COST(15))*100;
6、今日一根陽(yáng)線上穿30日、60日、90日、120日均線的公式如何編寫(xiě)?謝謝! 答: 一陽(yáng)穿四線: CROSS(CLOSE,MA(CLOSE,30)) AND CROSS(CLOSE,MA(CLOSE,60)) AND CROSS(CLOSE,MA(CLOSE,90)) AND CROSS(CLOSE,MA(CLOSE,120)); p1:=CROSS(CLOSE,MA(CLOSE,20)); p2:=CROSS(CLOSE,MA(CLOSE,40)); p3:=CROSS(CLOSE,MA(CLOSE,60)); 出水芙蓉:p1 AND P2 AND P3 ,coloryellow;
7、研究趨勢(shì)不是研究它的平常,而是研究它的異常.今年幾個(gè)龍頭股的走勢(shì).股價(jià)30日MA與大盤(pán)30日MA 發(fā)生背離.
編個(gè)公式,當(dāng)個(gè)股的30MA持續(xù)上升,對(duì)應(yīng)大盤(pán)30日MA持續(xù)下降發(fā)生背離,第十天后發(fā)出買 進(jìn)信號(hào). COUNT(MA(C,30)>REF(MA(C,30),1),10)=10 AND COUNT(MA(INDEXC,30)<REF(MA INDEXC,30),1),10)=10 ;
8、一根陽(yáng)線同時(shí)上穿MA(120,250)均線,且成交量比昨日放大2倍以上 c>o and cross(c,ma(c,120)) and cross(c,ma(c,250)) and v>ref(v,1)*2 ;
9、30日均線平拐向上,股價(jià)上穿250日均線或股價(jià)高于250日均線價(jià)格0.1-5.0元之間.
a30:=ma(c,30); a250:=ma(c,250); t1:=(hhv(a30,7)-llv(a30,7))/llv(a30,7); count(t1>ref(t1,1),2)=2 and (cross(c,a250) or between(c,a250+0.1,a250+5));
10、公式: a:今日收盤(pán)的前某日有一漲幅大于4%的陽(yáng)線; b:隨后幾日股價(jià)在那根陽(yáng)線的范圍內(nèi)波動(dòng)(有時(shí)會(huì)略高于或略低于那根陽(yáng)線); c:今日股價(jià)放量收復(fù)那一根陽(yáng)線(或收復(fù)四分之三以上); v1:=c>ref(c,1)*1.04 and c>0; v>ma(v,5) and c>=ref(c,BARSLAST(v1)) and BETWEEN(c,ref(o,BARSLAST(v1)),ref(c,BARSLAST (v1)));
11、今天macd比昨天macd小且他們之間相差數(shù)值維持在0.1-0.3之間怎樣編寫(xiě)? "macd.macd"(12.26.9)<ref("macd.macd"(12.26.9),1) and abs("macd.macd"(12.26.9)-ref
("macd.macd"(12.26.9),1))>0.1 and abs("macd.macd"(12.26.9)-ref
("macd.macd"(12.26.9),1))<0.3
12、要判斷是正還是負(fù)值之后,在連續(xù)的5日內(nèi):5日值=100/(1+5日內(nèi)負(fù)值連加之和/5日內(nèi)正值連 加之和)上面公式的實(shí)現(xiàn)過(guò)程怎么樣呢? 當(dāng)日值:=(C-REF(C,1))-((VOL-REF(VOL,1))*(REF(H,1)-REF(L,1)))/REF(VOL,1); 正值:=SUM(當(dāng)日值>0,5);{五日內(nèi)正值連加} 負(fù)值:=SUM(當(dāng)日值<0,5);{五日內(nèi)負(fù)值連加} 五日值:100/(1+負(fù)值/正值);
13、島型反轉(zhuǎn)公式,股價(jià)先跳空下跌,后在30天內(nèi)再次跳空上揚(yáng)形成島型反轉(zhuǎn)的公式怎么寫(xiě)? tj1:=h<ref(l,1); tj2:=l>ref(h,1); BARSLAST(tj1)<30 and tj2;
14、在成交量上方加換手率柱狀線 換手率0.3--0.6 黃色柱狀線 換手率0.6--1 晶紅色柱狀線 換手率1--2.5 紅色柱狀線 換手率2.5--3.5 綠色柱狀線 換手率3.5--5 藍(lán)色柱狀線 換手率5--7.5 青色柱狀線 換手率7.5--10 白色柱狀線 換手率>10 灰色柱狀線
H1:=VOL+100; H2:=VOL/CAPITAL*100; CJL:VOL,VOLSTICK; Y1:IF(H2>=0.3,IF(H2<0.6,H1,0),0),CIRCLEDOT,COLORYELLOW,LINETHICK3; Y2:IF(H2>=0.6,IF(H2<1.0,H1,0),0),CIRCLEDOT,COLORFF00FF,LINETHICK3; Y3:IF(H2>=1.0,IF(H2<2.5,H1,0),0),CIRCLEDOT,COLORRED,LINETHICK3; Y4:IF(H2>=2.5,IF(H2<3.5,H1,0),0),CIRCLEDOT,COLORGREEN,LINETHICK3; Y5:IF(H2>=3.5,IF(H2<5,H1,0),0),CIRCLEDOT,COLORBLUE,LINETHICK3; Y6:IF(H2>=5.0,IF(H2<7.5,H1,0),0),CIRCLEDOT,COLOR00FF00,LINETHICK3; Y7:IF(H2>=7.5,IF(H2<10,H1,0),0),CIRCLEDOT,COLORWHITE,LINETHICK3; Y8:IF(H2>=10,H1,0),CIRCLEDOT,COLORFFCCCC,LINETHICK3;
15、 比如說(shuō)MACD持續(xù)下降了一段時(shí)間,開(kāi)始掉頭向上,掉頭的那一天該怎么寫(xiě)呢?用大于小于的話, 掉頭以后的全算上了? LONGCROSS(MACD.DIF,MACD.DEA,N); {平滑異同平均的DIF小于平滑異同平均的DEA保持N個(gè)交易日后交叉上穿}
16、編寫(xiě)雙底和頭肩底的公式
abs(llv(low,5)-ref(llv(low,20),n))<0.01*close;
17、5日、10日、120日、250日K線在正負(fù)2%范圍內(nèi)粘合的公式編寫(xiě)。 m:=ma(c,5): m1:=ma(c,10): m2:=ma(c,120): m5:=ma(c,250): d:=max(max(max(m,m1),m2),m5); x:=min(min(min(m,m1),m2),m5); d/x<1.02 ;
18、10日平均換手率大于3%, sum(100*VOL/CAPITAL,10)/10>3;
19、當(dāng)日股價(jià)收在55日均線之上,5日均線金叉10日均線(或已金叉),當(dāng)日成交量大于5日成交 量,5日成交量大于10成交量。
c>ma(c,55) and cross(ma(c,5),ma(c,10)) and v>ma(v,5 ) and ma(v,5)>ma(v,10);
20、可以選出接近年線的(距離年線10%之內(nèi))、年線向上的,兩年內(nèi)漲幅不超過(guò)80%的股票!
nc:=stkindi('','hqsj.cc',0,9); nn:=BARSLAST(nc<>ref(nc,1)); tc:=ref(nc,ref(nn,nn+1)+nn); oc:= ref(nc,nn+1); BETWEEN(c,nc*1.1,nc*0.9) and nc>oc and (nc-tc)/tc<0.8;
21、公式十九無(wú)敵,
Var1:=1; Var2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100; Var3:SMA(SMA(Var2*Var1,3,1),3,1); Var4:=EMA(Var3,5); 趨勢(shì):SMA(var4,40,1)COLORGREEN,linethick2; 頂線:95,COLORred,POINTDOT; 6.788,COLORwhite,POINTDOT; 49.048,COLORgreen,POINTDOT; BB:=Var4; 無(wú)敵: 3*Var3-2*Var4 , COLORCYAN; var5:=(CROSS(無(wú)敵,Var4) AND 無(wú)敵<21); var6:=(CROSS(Var4,無(wú)敵) AND 無(wú)敵>55); var7:=(cross(頂線,無(wú)敵) AND 無(wú)敵>90); DRAWicon(var5>=1,var4, 12); DRAWicon(var6>=1,無(wú)敵, 10); DRAWicon(var7>=1,無(wú)敵, 11); DRAWTEXT(var5>=1 ,var4,'進(jìn)'),coloryellow; DRAWTEXT(var6>=1 ,var4,'出'),coloryellow; DRAWTEXT(var7>=1 ,var4,'頭部區(qū)域'),coloryellow;
22、股價(jià)創(chuàng)出新高后,又調(diào)整到30日均線附近的選股公式 COUNT(C>=HHV(C,N),5)=1 AND C/MA(C,30)>=1 AND C/MA(C,30)<1.02 ;
23、60日均線走平或呈多頭排列,當(dāng)30日均線上穿60日均線時(shí)跟蹤觀察,當(dāng)股價(jià)回調(diào)至30日或60 日均 線處時(shí),買入 V1:=MA(C,60); V2:=MA(C,30); COUNT(V1>=REF(V1,1),3)=3 AND COUNT(CROSS(V2,V1),5)=1 ; AND C<V1*1.02 OR C<V2*1.02 ;
24、RSI(周線)在70天內(nèi)第二次上穿80, COUNT(CROSS("RSI.RSI1#WEEK",80),14)=2 ;
25、120天內(nèi)低點(diǎn)至今累積換手〉50%的選股公式 V1:=BARSLAST(LLV(C,120)=C); REF(SUM(V/CAPITAL*100,V1)>50,1)=0 AND (SUM(V/CAPITAL*100,V1)>50)>0 ;
26、前日漲4%~5.5%,昨日跌2%以上,今日漲3%~5.5%,買; 買:BETWEEN(ref(c,2),ref(c,3)*1.04,ref(c,3)*1.055) and ref(c,1)*1.02<ref(c,2) and
BETWEEN(c,ref(c,1)*1.03,ref(c,1)*1.055);
****當(dāng)10日內(nèi)的累計(jì)漲幅達(dá)20%以上,股價(jià)跌破5日均線,賣; 賣:SUMBARS(if(c>ref(c,1),(c-ref(c,1))/ref(c,1),0.2)<=10 and CROSS(ma(c,5),c);
27、60天內(nèi)的市場(chǎng)平均成本可以這么寫(xiě): V1:=WINNER(HHV(HIGH,60))*100; V2:=WINNER(LLV(LOW,60))*100; V3:=(V1-V2)/2; v4:=v2+v3; 60天內(nèi)的市場(chǎng)平均成本:cost(v4);
28、陽(yáng)后雙陰陽(yáng)
aa5:=(ref(c,3)-ref(o,3))/ref(c,4)>0.02;{陽(yáng)線實(shí)體漲幅大于2%} bb5:=ref(c,2)<ref(o,2) and ref(o,2)<ref(c,3) and ref(c,2)>ref(o,3) and ref(h,2)<ref(h,3) and ref(l,2)>ref(l,3);{陰線在前一根陽(yáng)線的實(shí)體內(nèi)} cc5:=ref(c,1)<ref(o,1) and ref(c,1)<ref(c,2) and ref(o,1)<ref(c,3) and ref(c,1)>ref (o,3) and ref(h,1)<ref(h,3) and ref(l,1)>ref(l,3);{陰線在前前一根陽(yáng)線的實(shí)體內(nèi),價(jià)漸低} dd5:=c>o*1.02 and l>ref(l,3) and c>ref(hhv(c,2),1);{陽(yáng)線實(shí)體漲幅大于2%} 陽(yáng)后雙陰陽(yáng):aa5 and bb5 and cc5 and dd5;
29、K線6組合
{隱蔽日出擊+陽(yáng)包陰+包孕線+兩陽(yáng)夾一陰+早晨之星 } AA:=REF(C,1)<REF(O,1) AND ( REF(O,1) -REF(C,1))/REF(C,2)>0.015;{確定昨天陰線實(shí)體大小} BB:=O<=REF(C,1) AND C>REF(O,1);{確定今天陽(yáng)線將昨天陰線全部吞沒(méi)} YBY:=AA AND BB; AA1:=REF(C,1)<REF(O,1) AND ( REF(O,1) -REF(C,1))/REF(C,2)>=0.03 ;{確定昨天陰線實(shí)體大小 } BB1:=L>REF(L,1) AND C>O AND H<REF(O,1);{確定今天陽(yáng)線在昨天陰線實(shí)體內(nèi)} BYX:=AA1 AND BB1; A1:=REF(C,2)>REF(O,2) AND ( REF(C,2) -REF(O,2))/REF(C,2)>0.02; A2:=REF(C,1)<REF(O,1)*1.005 AND REF(C,1)<REF(C,2); A3:=C>O*1.023 AND C>REF(C,1)*0.99; LYJYY:=A1 AND A2 AND A3; AA3:=REF(C,2)<REF(O,2) AND ( REF(O,2) -REF(C,2))/REF(C,3)>=0.03 ;{前天陰線實(shí)體大于-3%} BB3:=ABS(REF(C,1)-REF(O,1))<( REF(O,2) -REF(C,2))/3 AND (REF(H,1)<( REF(O,2) -REF (C,2))/3+REF(C,2)) AND ABS(REF(C,2)-REF(C,1))/REF(C,3)<=0.04;{昨天跌幅小于1%的小陰或小陽(yáng),小陰的開(kāi)盤(pán)價(jià), 小陽(yáng)的收盤(pán)價(jià)要在前天的收盤(pán)價(jià)附近} CC3:=C>REF(C,1)*1.03 AND C>( REF(O,2) -REF(C,2))/3*2+REF(C,2);{今天漲幅大與3%,實(shí)體進(jìn) 入前天的陰線實(shí)體的三分之一以上} ZCZX:=AA3 AND BB3 AND CC3; AA4:=(H-MAX(C,O))>3*(MIN(C,O)-L) AND (H-L)>ABS(C-O)*3.5 AND (H-L)/REF(C,1)>=0.03; BB4:=C>REF(H,1) AND REF(AA,1) AND O<REF(H,1) AND C>O; JBTP:=AA4 AND BB4; AA8:=REF(C,1)/REF(O,1)<=0.97 AND (MIN(C,O)-L)<(REF(O,1)-REF(C,1))/3; BB8:=C/O>1.01 AND O<REF(C,1) AND C>=(REF(C,1)+(REF(O,1)-REF(C,1))/3) AND H<REF(O,1); SGZX:=AA8 AND BB8; YBY OR BYX OR LYJYY OR ZCZX OR JBTP OR SGZX;
30、低位放量漲停
{1,低位放量漲停 換手較大,3%以上。 2,第二天在前一天的收盤(pán)價(jià)上方振蕩,換手率比前一交易日放大。 3,第三天股價(jià)回落到第二天收盤(pán)價(jià)3%以下,同時(shí)換手率不能低于第二日的一半時(shí)出現(xiàn)選股信號(hào) }
AA9:=C>=REF(C,1)*1.094 AND C/O>1.04 AND H=C AND L>REF(L,1) ; {放量漲停} BB9:=L<REF(C,1) AND (H-C+O-L)<(C-O) AND C>O AND (C-O)<(H-L)*0.6 AND (C-O)>(H-L)*0.2 AND C>REF(C,1);{第二天在前一天的收盤(pán)價(jià)上方振蕩,有上下引線} CC9:=L<=REF(C,1)*0.97 AND L>REF(O,2);{第三天股價(jià)回落到第二天收盤(pán)價(jià)3%以下} REF(AA9,2) AND REF(BB9,1) AND CC9 ;
31、短線暴漲的寫(xiě)法
hs:=v/capital*100; aa:=(c-o)/ref(c,1)>0.03 and (c-o)/ref(c,1)<0.06 and (h-c)/ref(c,1)<0.02 and (h-c)/ref(c,1)>0.005 and (o-l)/ref(c,1)<0.02 and (h-c)/ref(c,1)>0.005; {確定第一根陽(yáng)線實(shí)體大小和上下引線范圍} bb:=c<o and v<ref(v,1);{陰線縮量} cc:=c>o and v<ref(v,1);{陽(yáng)線縮量} dxbz:ref(aa,5) and ref(bb,4) and ref(bb,3) and ref(c,2)>ref(o,2) and ref(v,2)>ref(v,3) and ref(cc,1) and c>o and c>ref(hhv(h,4),1) and ref(llv(l,4),1)>ref(l,5) and ref(hhv (h,4),1)<ref(h,5)*1.05 and ref(hhv(abs(c-o),4),1)<ref((c-o),5); {確定調(diào)整低點(diǎn)不低于第一根陽(yáng)線低點(diǎn),不高于第一根陽(yáng)線高點(diǎn)的1.05倍,調(diào)整陰陽(yáng)實(shí)體小于 第一根陽(yáng)線的實(shí)體,突破日收盤(pán)價(jià)大于盤(pán)整期最高價(jià)}
32、公式:昨天,突然放量(小陰線,十字線,小陽(yáng)線,大陰線)這里的放量是 指相對(duì)其近期來(lái)說(shuō)的。但是,第2天,或者第3天就能以小的量,收復(fù)那天放量的K線。 陰線巨量收復(fù)
aa:=c<o and v>ref(hhv(v,10),1)*2.5; bb:=ref(aa,1) and c>o and v<ref(v,1)/2 and c>ref(h,1); cc:=ref(aa,2) and ref(c,1)<ref(h,2) and c>o and v<ref(v,2)/2 and c>ref(h,2); dd:=ref(aa,3) and ref(hhv(c,2),1)<ref(h,3) and ref(hhv(v,2),1)<ref(v,3) and c>o and v<ref(v,3)/2 and c>ref(h,2); ee:=ref(aa,4) and ref(hhv(c,3),1)<ref(h,4) and ref(hhv(v,3),1)<ref(v,4) and c>o and v<ref(v,4)/2 and c>ref(h,2); sf:bb or cc or dd or ee ;
33、陽(yáng)三陰陽(yáng)
aa10:=c>o and c>=hhv(c,8) and h=hhv(h,8) and (h-c)<(c-o)/3;{收盤(pán)價(jià)創(chuàng)八日來(lái)的新高或平, 最高價(jià)為八日的最高價(jià),有小上影線} bb10:=c<o and (h-o)/ref(c,1)<0.05;{收陰,每日的開(kāi)盤(pán)價(jià)就是當(dāng)日最高價(jià)或有小上影線} cc10:=c>o and c>ref(o,1);{收陽(yáng),收盤(pán)價(jià)高于昨天的開(kāi)盤(pán)價(jià)} 陽(yáng)三陰陽(yáng):ref(aa10,4) and ref(count(bb10,3)=3,1) and cc10; ***陽(yáng)二陰陽(yáng) aa10:=c>o and c>=hhv(c,8) and h=hhv(h,8) and (h-c)<(c-o)/3;{收盤(pán)價(jià)創(chuàng)八日來(lái)的新高或平, 最高價(jià)為八日的最高價(jià),有小上影線} bb10:=c<o and (h-o)/ref(c,1)<0.05;{收陰,每日的開(kāi)盤(pán)價(jià)就是當(dāng)日最高價(jià)或有小上影線} cc10:=c>o and c>ref(o,1);{收陽(yáng),收盤(pán)價(jià)高于昨天的開(kāi)盤(pán)價(jià)} 陽(yáng)二陰陽(yáng):ref(aa10,3) and ref(count(bb10,2)=2,1) and cc10;
34、共同點(diǎn): 1、前兩根陰線要有缺口 2、后一根陰線幅度要在7個(gè)點(diǎn)以上 3,后三根K線必須第一根是十字后面兩根類似即可,但最后一根K線的最低點(diǎn)不能超過(guò)第一根要求信號(hào)發(fā)出在大陽(yáng)之前的那根K線上,實(shí)際上5根K線組成 跳空陰線后星 aa:=o>c; bb:=h<ref(l,1) and (ref(c,1)-l)/ref(c,1)>0.07 and (o-c)/ref(c,1)>0.04;{最大跌幅大于7%,實(shí)體大于4%} cc:=abs(o-c)<ref((o-c),1)*0.3 and (h-l)>1.8*abs(c-o) and h>=ref(l,1) and (h-l)<ref((h-l),1)*0.75 and l<ref(c,1);{星線} dd:=abs(o-c)<ref((o-c),2)*0.3 and (h-l)>1.8*abs(c-o) and h>=ref(l,1) and (h-l)<ref((h-l),2)*0.75 and l<ref(max(c,o),1);{星線} ee:=l>ref(llv(l,2),1) and l<ref(max(c,o),1) and (h-l)<ref((h-l),3)*0.75;{星線} 跳空陰線后星:ref(aa,4) and ref(bb,3) and ref(cc,2) and ref(dd,1) and ee ;
35、:5日10日20日30日55日均線粘合,一根大陽(yáng)突破5.10.20.55均線,前提是 5.10.20.30,55大與144日之上,144日大與233日,陽(yáng)線最好大與3%成交量當(dāng)天大與13.34.55 均量線!
aa:=max(max(max(max(ma(c,5),ma(c,10)),ma(c,20)),ma(c,30)),ma(c,55)); bb:=min(min(min(min(ma(c,5),ma(c,10)),ma(c,20)),ma(c,30)),ma(c,55)); cc:=count(aa/bb<1.05,3)>=1; dd:=o<ma(c,10) and c>aa and c/o>1.03 ; ee:=bb>ma(c,144) and ma(c,144)>ma(c,233) and v>max(max(ma(v,13),ma(v,34)),ma (v,55)); cc and dd and ee ;
36、突破盤(pán)整 這個(gè)公式對(duì)盤(pán)整的描述應(yīng)該還算可以了,配合其他條件觀察也可用于實(shí)戰(zhàn)股票的 初選 aa:=HHv(c,5)/llv(c,5)<1.07 and count(c>o,5)>=1 and count(c<o,5)>=1 and count(l>ref(l,1),5)<=3; 突破盤(pán)整:ref(aa,1) and c>o and (c-o)>ref(hhv(abs(c-o),5),1)*1.5 and c>ref(hhv(h,5),1) ;
37、選股公式:上漲途中某日股價(jià)突然在頭天陽(yáng)線開(kāi)盤(pán)價(jià)附近低開(kāi),收盤(pán)在頭日收盤(pán) 價(jià)附近,形成并列中陽(yáng)線。 市場(chǎng)特征: 1.日均線系統(tǒng)(5天、10天、2O天、30天和60天平均線)必須已經(jīng)形成多頭排列。 2.股價(jià)剛剛脫離地面(股價(jià)箱頂),步入主升段。 3.股價(jià)一般沿著3天均線上揚(yáng),與5天均線始終保持距離。 并列陽(yáng)線
aa:=c>o and (c-o)/ref(c,1)>0.03; bb:= o<((ref(c,1)-ref(o,1))/2+ref(o,1)) and c>o and c>(ref((c-o),1)*0.5+ref (o,1)) and (o-l)<(h-l)/ 15 and (c-o)>=ref((c-o),1)*0.8 ; cc:=ma(c,3)>ma(c,5) and ma(c,10)>ma(c,20) and ma(c,20)>ma(c,30) and ma(c,30)>ma (c,60); 并列陽(yáng)線:ref(aa,1) and bb and cc ;
38、底開(kāi)大于2%,漲幅大于5%吧! 低開(kāi)大陽(yáng)線:=(c-ref(c,1))/ref(c,1)>0.05 and o<ref(c,1)*0.98 and c>o;
39、 強(qiáng)勢(shì)調(diào)整
1: 第一根陽(yáng)線漲幅在4%以上,量是10日均量的2.5倍以上。 2: 第二根是小陽(yáng)線,量是前1天的70%以下。 3:第三根是小陽(yáng)線, 量是前1天的70%以下。 2 3 要求的小陽(yáng)線有上下引線也可以,但要在第一天收 ... aa:=c>o*1.04 and v>ma(v,10)*2.5 and (h-l)<(c-o)*1.8; bb:=c>o and v<ref(v,1)*0.7; 強(qiáng)勢(shì)調(diào)整:ref(aa,2) and ref(bb,1) and bb and hhv((h-l),2)<ref((h-l),2) and hhv(c,2)<=ref(c,2)*1.03 and llv(c,2)>=ref(c,2)*0.97;
40、設(shè)計(jì)一下,有120周線的股票,股價(jià)必須站上才可以成立,沒(méi)有120周均線的股票,只 要以上條件成立變可以被選股系統(tǒng)選上 a1:=BARSCOUNT(c)<120; aa:=c>=ma(c,n) and c<=ma(c,n)*(1+m) and ma(c,10)>=ref(ma(c,10),1); aa2:=c>=ma(c,n) and c>ma(c,120) and c<=ma(c,n)*(1+m) and ma(c,10)>=ref(ma(c,10),1); xg:if(a1,aa,aa2) ;
41、編一個(gè)5日10日20日均線多頭排列,成交量5.10.20均線多頭排列,股價(jià)當(dāng)日收陽(yáng)的公式 aa:=ma(c,5)>ma(c,10) and ma(c,10)>ma(c,20) 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);{5日10日20日均線多頭排列} bb:=ma(v,5)>ma(v,10) and ma(v,10)>ma(v,20) and ma(v,5)>ref(ma(v,5),1) and ma(v,10)>ref(ma (v,10),1) and ma(v,20)>=ref(ma(v,20),1);{成交量5.10.20均線多頭排列} cc:=c>0;{股價(jià)當(dāng)日收陽(yáng)的公式} aa and bb and cc;
42、 1。上一日升幅不能超5%, 2。上4個(gè)交易日不能出現(xiàn)3根以上的陽(yáng)線。 3。上4個(gè)交易日總共升幅小于20%。 4。當(dāng)日漲停。
aa:=(ref(c,1)-ref(c,2))/ref(c,2)<=0.05;{上一日升幅不能超5%} bb:=ref(count(c>o,4)<=3,1);{上4個(gè)交易日不能出現(xiàn)3根以上的陽(yáng)線} cc:=(ref(c,1)-ref(llv(c,4),1))/ref(llv(c,4),1)<0.2;{上4個(gè)交易日總共升幅小于20%} dd:=(c-ref(c,1))/ref(c,1)>=0.094 and c=h;{當(dāng)日漲停} aa and bb and cc and dd ;
43、 倒錘正錘
1。昨日收上影正錘。 2。今日收下影倒錘。 3。二日的每日升幅小于3.8 aa:=(h-max(c,o))>=2.5*(min(c,o)-l) and (h-l)>abs(c-o)*1.5 and (h-l)/ref(c,1)>=0.03 and c>o and (c-ref(c,1))/ref(c,1)<0.038; bb:=(min(c,o)-l)>=(h-max(c,o))*2.5 and (h-l)>abs(c-o)*1.5 and (h-l)/ref(c,1)>=0.03 and c>o and (c-ref(c,1))/ref(c,1)<0.038; 倒錘正錘:ref(aa,1) and bb;
44、三兵二陰 aa:=count(c>ref(c,1),3)>=2 and count(c>o and l<=ref(h,1) and l>ref(l,1) ,3)=3 and count(o>=ref(o,1) and (c-o)>=ref((c-o),1),2)=2 and count((h-c)<(c-o),2)=2 and hhv((c-ref(c,1))/ref(c,1),3)>= 0.02 and (c-o)>ref((c-o),1);
三兵二陰:ref((c-o),5)<0 and ref(aa,2) and count(c<o,2)=2 and llv(l,2)>ref(l,2) and llv(l,2)<ref(h,2) and count(l<ref(h,1),2)=2;
45、1。5MA 10MA往上升。 2。昨日升幅在+/- 5%以內(nèi)。(即5%>升幅>-5%) 3. 今日升幅小于 7%。 4。今日量比大于 3. 5。近4天不能出現(xiàn)3根大于2.5%的大陽(yáng)線 6。近10天總升幅小于10% 7。近3天不能出現(xiàn)-6%以 ...
參考如下: aa:=ma(c,5)>ref(ma(c,5),1) and ma(c,10)>ref(ma(c,10),1); bb:=(ref(c,1)-ref(c,2))/ref(c,2); cc:=(c-ref(c,1))/ref(c,1)<0.08 and c>o; dd:=if(ref(c,1)>=ref(o,1),l>ref(h,1) and (l-ref(h,1))/ref(c,1)<0.015,l>ref(c,1) and (l-ref(c,1))/ref (c,1)<0.015); ee:=v>ref(ma(v,5),1)*2; ff:=ref((c-llv(c,10))/llv(c,10),1)<0.1; gg:=count(c<o and (c-ref(c,1))/ref(c,1)>0.06,3)=0; xg:aa and bb>-0.05 and bb<0.05 and cc and ee and dd and ff and gg ;
46、 春夏秋冬原碼能提供嗎 CXQD-春夏秋冬(n1 8 n2 21) DL: MA((HIGH+LOW+CLOSE)/3,N1); ML: MA((HIGH+LOW+CLOSE)/3,N2); Var1:=EMA((OPEN+CLOSE)/2,26); Var2:=MA(COST(30),3); 平均成本: MA(COST(50),3); Var3:=MA(COST(80),3); Var4:=(HIGH+LOW+CLOSE)/3; Var5:=EMA((OPEN+HIGH+LOW+CLOSE)/4,233); Var6:=Var5+Var5*6/100; 嚴(yán)冬: STICKLINE(Var4>0.1,HIGH,LOW,0.5,0); 早春: STICKLINE(Var4<平均成本 AND Var4>ML OR Var4<Var5 AND Var4>ML OR Var4>ML AND Var1>ML,HIGH,LOW,0.5,0); 初夏: STICKLINE(Var4>平均成本 AND Var4>Var1 AND Var4>Var5 AND Var2>REF(Var2,1) OR Var4>Var2 AND Var4>Var1 AND Var4>Var5 AND Var2>REF(Var2,1),HIGH,LOW,0.5,0); 深秋: STICKLINE(Var4>Var6 AND Var4>Var3 AND DL>ML AND Var1>REF(Var1,1),HIGH,LOW,0.5,0); STICKLINE(Var4>0.1 AND CLOSE<OPEN,OPEN,CLOSE,8,0); STICKLINE(Var4>0.1 AND CLOSE>=OPEN,OPEN,CLOSE,8,1); STICKLINE(Var4<平均成本 AND Var4>ML AND CLOSE<OPEN OR Var4<Var5 AND Var4>ML AND CLOSE<OPEN OR Var4>ML AND Var1>ML AND CLOSE<OPEN,OPEN,CLOSE,8,0); STICKLINE(Var4<平均成本 AND Var4>ML AND CLOSE>OPEN OR Var4<Var5 AND Var4>ML AND CLOSE>OPEN OR Var4>ML AND Var1>ML AND CLOSE>=OPEN,OPEN,CLOSE,8,1); STICKLINE(Var4>平均成本 AND Var4>Var1 AND Var4>Var5 AND Var2>REF(Var2,1) AND CLOSE<OPEN OR Var4>Var2 AND Var4>Var1 AND Var4>Var5 AND Var2>REF(Var2,1) AND CLOSE<OPEN,OPEN,CLOSE,8,0); STICKLINE(Var4>平均成本 AND Var4>Var1 AND Var4>Var5 AND Var2>REF(Var2,1) AND CLOSE>OPEN OR Var4>Var2 AND Var4>Var1 AND Var4>Var5 AND Var2>REF(Var2,1) AND CLOSE>=OPEN,OPEN,CLOSE,8,1); STICKLINE(Var4>Var6 AND Var4>Var3 AND DL>ML AND Var1>REF(Var1,1) AND CLOSE<OPEN,OPEN,CLOSE,8,0); STICKLINE(Var4>Var6 AND Var4>Var3 AND DL>ML AND Var1>REF(Var1,1) AND CLOSE>=OPEN,OPEN,CLOSE,8,1); 春夏秋冬 早春(綠色):萬(wàn)物復(fù)蘇,播種的時(shí)機(jī)。 初夏(紅色):茁壯成長(zhǎng),選苗兼除草。 深秋(黃色):碩果累累,收獲的季節(jié)。 嚴(yán)冬(灰色):冰天雪地,吃飽了休息。 注意: 1、大盤(pán)的季節(jié)決定一切,反季節(jié)的作物不會(huì)很好的生長(zhǎng),更不會(huì)結(jié)出豐碩的果實(shí)??! 2、未經(jīng)過(guò)嚴(yán)冬,春天的小苗也只能是曇花一現(xiàn)。 3、第一股春風(fēng)之后的倒春寒是吸籌的好時(shí)機(jī)。 4、第一個(gè)寒流之后的回暖期是派發(fā)的好時(shí)機(jī)。 5、在大盤(pán)季節(jié)明確時(shí),季節(jié)混亂的個(gè)股,只有兩種情況,一是底部吸籌,二是頂部派發(fā)
48、1。股價(jià)在5天內(nèi)有1天以上漲幅超過(guò)3%,且換手率也在3%以上。 2。5天內(nèi)股價(jià)的最高價(jià)創(chuàng)最近20天的新高。 答(5858): 1,COUNT(c/o>1.03 and vol/CAPITAL>0.03,5)>1; 2,hhv(h,5)=hhv(h,20); 答(bazooka): M:=COUNT(CLOSE/REF(CLOSE,1)>1.03,5)>1 ; N:=COUNT(VOL/FINANCE(2)>0.03,5)>1; M AND N ;
49、X價(jià)值體系(低買高賣) 缺省周期:日線 參數(shù)描述: M(1,250,10)
Var1:=DMA(AMOUNT/VOL/100,VOL/CAPITAL); Var2:=(HIGH+LOW+OPEN+2*CLOSE)/5; Var3:=(3*CLOSE+LOW+OPEN+HIGH)/6; Q: (20*Var3+19*REF(Var3,1)+18*REF(Var3,2)+17*REF(Var3,3)+16*REF(Var3,4)+15*Ref (Var3,5)+14*REF(Var3,6)+13*REF(Var3,7)+12*REF(Var3,8)+11*REF(Var3,9)+10*REF (Var3,10)+9*REF(Var3,11)+8*REF(Var3,12)+7*REF(Var3,13)+6*REF(Var3,14)+5*REF (Var3,15)+4*REF(Var3,16)+3*REF(Var3,17)+2*REF(Var3,18)+REF(Var3,20))/210; S: MA(Q,M); 價(jià)值: Var1{00020008}; 低估: Var1-Var1*26/100, COLORGREEN; 高估: Var1+Var1*16/100, COLORRED;
50、三陰不吃一陽(yáng):ref(c,1)<ref(o,1) and ref(c,2)<ref(o,2) and ref(c,3)<ref(o,3) and c>o and c>ref(c,1); 三陽(yáng)不吃一陰:ref(c,1)>ref(o,1) and ref(c,2)>ref(o,2) and ref(c,3)>ref(o,3) and c<o and c<ref(c,1); 答(qushi): ref(c>o,3) and count(c<o,3)=3 and llv(c,3)>ref(o,3); 此處定義,只要收盤(pán)價(jià)低于開(kāi)盤(pán)價(jià)就認(rèn)為本日收陰,本日收陽(yáng)的定義類似。
51、前10個(gè)交易日收盤(pán)價(jià)一直在MA(CLOSE,5)下,今日收盤(pán)價(jià)上穿MA(CLOSE,5)。
答(tianzhu): hhv(close,10)<ma(close,5) and cross(close,ma(close,5)) 答(qushi): ref(count(close<ma(close,5),10)=10,1) and close>ma(close,5);
52、連續(xù)收陰>7日,今日收陽(yáng) COUNT(o>c,8)=7 and c>o;
53、MACD 和 RSI 同時(shí)在兩天之內(nèi)出現(xiàn)底背離共振的選股公式:
A1:=BARSLAST(ref(cross("macd.diff","macd.dea"),1)); B1:=ref(c,A1+1)>c and ref("macd.diff",A1+1)<"macd.diff" and cross ("macd.diff","macd.dea"); DRAWTEXT(FILTER(B1>0,5),0,'MACD'),COLORGREEN,ALIGN0;; Stickline(FILTER(B1>0,5),-1,0,1,0),COLORGREEN;
A3:=BARSLAST(ref(cross("RSI.RSI1","RSI.RSI2"),1)); B3:=ref(c,A3+1)>c and ref("RSI.RSI1",A3+1)<"RSI.RSI1" and cross ("RSI.RSI1","RSI.RSI2"); DRAWTEXT(FILTER(B3>0,5),-0.25,'RSI'),COLORCYAN,ALIGN0;; Stickline(FILTER(B3>0,5),-1,-0.25,1,0),COLORCYAN; C1:=BARSLAST(ref(cross("macd.dea","macd.diff"),1)); D1:=ref(c,C1+1)<c and ref("macd.diff",C1+1)>"macd.diff" and cross ("macd.dea","macd.diff"); DRAWTEXT(FILTER(D1>0,5),-0.5,'MACD'),COLORwhite,ALIGN0; Stickline(FILTER(D1>0,5),-0.5,1,1,0),COLORwhite; C3:=BARSLAST(ref(cross("RSI.RSI2","RSI.RSI1"),1)); D3:=ref(c,C3+1)<c and ref("RSI.RSI1",C3+1)>"RSI.RSI1" and cross ("RSI.RSI2","RSI.RSI1"); DRAWTEXT(FILTER(D3>0,5),0.25,'RSI'),COLORMAGENTA,ALIGN0; Stickline(FILTER(D3>0,5),1,0.25,1,0),COLORMAGENTA; Xx1:=(count(FILTER(B1>0,5),2)>=1)*2; xx2:=count(FILTER(B3>0,5),2)>=1; xx3:=(xx1=2 and xx2=1)*5; xx4:ref(xx3,1)=0 and xx3=5; {底背共振} A1:=BARSLAST(ref(cross("macd.diff","macd.dea"),1)); B1:=ref(c,A1+1)>c and ref("macd.diff",A1+1)<"macd.diff" and cross ("macd.diff","macd.dea"); A3:=BARSLAST(ref(cross("RSI.RSI1","RSI.RSI2"),1)); B3:=ref(c,A3+1)>c and ref("RSI.RSI1",A3+1)<"RSI.RSI1" and cross ("RSI.RSI1","RSI.RSI2"); xx1:=(count(FILTER(B1>0,5),2)>=1)*2; xx2:=count(FILTER(B3>0,5),2)>=1; xx3:=(xx1=2 and xx2=1)*5; 底背共振:ref(xx3,1)=0 and xx3=5;
54、
|