大智慧50%的成功率選股公式
07-08
MA5:MA(CLOSE,5);MA10:MA(CLOSE,10);MA20:MA(CLOSE,20);MA30:MA(CLOSE,30);MA60:=MA(CLOSE,60);MA120:=MA(CLOSE,120);MA240:=MA(CLOSE,240);VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主買l:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL ));主賣l:=IF(CLOSE>OPEN,VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,VAR1*(HIGH-LOW),VOL ));ma1:=sum(amount,0)/sum(vol,0)/100;買入1:=(主買l-主賣l)*ma1/100;DDX2:=買入1/CAPITAL*100;VAR02:=MIN(COUNT(買入1,0),60); DX2:=買入1/CAPITAL*100;DDX12:=EMA(DDX2,VAR02)*VAR02;DDX22:=MA(DDX12,5);DDX32:=MA(DDX12,10);xg1:=(DDX12>=DDX22 and DDX22>=DDX32 and ddx12>ref(ddx12,1)and ddx22>ref(ddx22,1) and ddx32>ref(ddx32,1));JJ1:=(OPEN+HIGH+LOW+CLOSE)/4;AA:=IF(BETWEEN(C,JJ1,H) OR C=O,VOL,0);BB:=IF(BETWEEN(C,JJ1,L),VOL,0);CC:=IF(AA AND BB,0,VOL/3);買入2:=(AA+(BB+CC))*ma1/100;DDX3:=買入2/CAPITAL*100;VAR03:=MIN(COUNT(買入2,0),60); DX3:=買入2/CAPITAL*100;DDX13:=EMA(DDX3,VAR03)*VAR03;DDX23:=MA(DDX13,5);DDX33:=MA(DDX13,10);xg2:=(DDX13>=DDX23 and DDX23>=DDX33 and ddx13>ref(ddx13,1)and ddx23>ref(ddx23,1) and ddx33>ref(ddx33,1));WJ:=(HIGH+LOW+CLOSE)/3;VD1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));VD2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-WJ);VD3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);VD4:=IF(HIGH=LOW,1,WJ-MIN(CLOSE,OPEN));VD5:=VOL/IF(HIGH=LOW,4,HIGH-LOW);VD6:=(VD1*VD5);VD7:=(VD2*VD5);VD8:=(VD3*VD5);VD9:=(VD4*VD5);買入量:=(VD9+VD8);賣出量:=(VD6+VD7);買入資金:=買入量*ma1/100;賣出資金:=賣出量*ma1/100;買入3:=(買入資金-賣出資金);DDX4:=買入3/CAPITAL*100;VAR04:=MIN(COUNT(買入3,0),60); DX4:=買入3/CAPITAL*1000/3;DDX14:=EMA(DDX4,VAR04)*VAR04;DDX24:=MA(DDX14,5);DDX34:=MA(DDX14,10);xg3:=(DDX14>=DDX24 and DDX24>=DDX34 and ddx14>ref(ddx14,1)and ddx24>ref(ddx24,1) and ddx34>ref(ddx34,1));JE8:=VOL;JJ8:=(HIGH+LOW+CLOSE)/3;QJ08:=VOL/IF(HIGH=LOW,4,HIGH-LOW);WP8:=(QJ08*(JJ8-MIN(CLOSE,OPEN)));NP8:=(QJ08*(MIN(OPEN,CLOSE)-LOW));HS8:=VOL/CAPITAL*100;DLX:=(WP8-NP8)/V*HS8;DLX1:=EMA(DLX,60)*60; dx1:=(WP8-NP8)*ma1/100/CAPITAL*100;DLX2:=MA(DLX1,5);DLX3:=MA(DLX1,10);xg4:=(DlX1>=DlX2 and DlX2>=DlX3 and dlx1>ref(dlx1,1) and dlx2>ref(dlx2,1) and dlx3>ref(dlx3,1) );N:=20;JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));DDX5:=(((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,1000000,10000))*100000/CAPITAL;DX5:=MA(DDX5,60)*10;DDX15:=SMA(DX5,3,1); DX55:=(((QJ1+QJ2)-(QJ3+QJ4))*ma1/100/IF(CAPITAL=0,1000000,10000))/CAPITAL*1000000;DDX25:=SMA(DDX15,5,1);DDX35:=EMA(DDX25,10);xg5:=(DDX15>=DDX25 and DDX25>=DDX35 and ddx15>ref(ddx15,1)and ddx25>ref(ddx25,1) and ddx35>ref(ddx35,1));A1:=IF(O>REF(C,1) AND C>O,VOL,0);A2:=IF(O>REF(C,1) AND C<O AND C>REF(C,1),VOL,0);A3:=IF(O>REF(C,1) AND C<REF(C,1),VOL,0);A4:=IF(O>REF(C,1) AND C=REF(C,1),VOL,0);A5:=IF(O<REF(C,1) AND C>REF(C,1),VOL,0);A6:=IF(O<REF(C,1) AND C=REF(C,1),VOL,0);A7:=IF(O<REF(C,1) AND C>O AND C<REF(C,1),VOL,0);A8:=IF(O<REF(C,1) AND C<O AND C<REF(C,1),VOL,0);A9:=IF(O=REF(C,1) AND C>REF(C,1),VOL,0);A10:=IF(O=REF(C,1) AND C=REF(C,1),VOL,0);A11:=IF(O=REF(C,1) AND C<REF(C,1),VOL,0);A12:=IF(O>REF(C,1) AND C=H AND C=L,VOL,0);A13:=IF(O>REF(C,1) AND C=O,VOL,0);A14:=IF(O<REF(C,1) AND c=l,VOL,0);A15:=IF(O<REF(C,1) AND o=c and c=h and c=l,VOL,0);A16:=IF(O>REF(C,1) AND c=l,VOL,0);買入6:=(((A1+A5+A9+A12+A13)*1.2+A2*0.8)-((A3+A8+A10+A11+A14+A15+A16)*1.2+A6+A7+A4*0.8))*ma1/100;DDX6:=買入6/CAPITAL*100;VAR06:=MIN(COUNT(買入6,0),60);DDX16:=EMA(DDX6,VAR06)*VAR06;DDX26:=MA(DDX16,5);DDX36:=MA(DDX16,10);xg6:=(DDX16>=DDX26 and DDX26>=DDX36 and ddx16>ref(ddx16,1)and ddx26>ref(ddx26,1) and ddx36>ref(ddx36,1)); DX6:=買入6/CAPITAL*100;zz:=(hhv(h,4)+llv(l,4))/2;a:=if(c>zz,vol,0);b:=if(c<zz,vol,0);總0:=(a-b);BBD:=EMA(總0,3)/sum(vol,5)*100;DDX7:=BBD/CAPITAL*100;VAR07:=MIN(COUNT(BBD,0),60);DDX17:=EMA(DDX7,VAR07)*VAR07*800;DDX27:=MA(DDX17,5);DDX37:=MA(DDX17,10);xg7:=(DDX17>=DDX27 and DDX27>=DDX37 and ddx17>ref(ddx17,1)and ddx27>ref(ddx27,1) and ddx37>ref(ddx37,1)); DX7:=BBD*ma1/100/CAPITAL*10000;ja:=(c+o+h+l+ref(c,1)+ma1)/6.5;b1:=IF(c>=ja,VOL,0);b2:=IF(c<ja,VOL,0);買入8:=(b1-b2)*ma1/100;DDX8:=買入8/CAPITAL*100;VAR08:=MIN(COUNT(買入8,0),60);DDX18:=EMA(DDX8,VAR08)*VAR08;DDX28:=MA(DDX18,5);DDX38:=MA(DDX18,10);xg8:=(DDX18>=DDX28 and DDX28>=DDX38 and ddx18>ref(ddx18,1)and ddx28>ref(ddx28,1) and ddx38>ref(ddx38,1)); DX8:=買入8/CAPITAL*100;總資金:=ABS(O-L)+ABS(H-L)+ABS(H-C);拉升資金:=IF(CLOSE>OPEN,(HIGH-LOW),IF(CLOSE<OPEN,(HIGH-OPEN)+(CLOSE-LOW),(C-L)));打壓資金:=IF(CLOSE>OPEN,(HIGH-CLOSE)+(OPEN-LOW),IF(CLOSE<OPEN,(HIGH-LOW),(H-C)));主買9:=(拉升資金/總資金)*VOL;主賣9:=(打壓資金/總資金)*VOL;流通9:=CAPITAL/100;ddx9:=(主買9-主賣9)/流通9;DDX19:=EMA(DDX9,60)*60; dx9:=(主買9-主賣9)*ma1/100/CAPITAL*100/3;DDX29:=MA(DDX19,5);DDX39:=MA(DDX29,10);xg9:=(DDX19>=DDX29 and DDX29>=DDX39 and ddx19>ref(ddx19,1)and ddx29>ref(ddx29,1) and ddx39>ref(ddx39,1));買10:=IF(O=C AND (C-REF(C,1))/REF(C,1)*100>9.8,AMOUNT,AMOUNT/((H-L)*2-ABS(O-C))*(C-L));買101:=買10/AMOUNT*100;流入億元:=AMOUNT*買101/10000000000; 流出億元:=AMOUNT/100000000-流入億元;凈流億元:=流入億元-流出億元;ddx10:=凈流億元; dx10:=凈流億元*ma1/100/CAPITAL*1000000;DDX110:=EMA(DDX10,60)*60;DDX210:=MA(DDX110,5);DDX310:=MA(DDX210,10);xg10:=(DDX110>=DDX210 and DDX210>=DDX310 and ddx110>ref(ddx110,1)and ddx210>ref(ddx210,1) and ddx310>ref(ddx310,1));xg11:=if(XG1,1,-1);xg22:=if(XG2,1,-1);xg33:=if(XG3,1,-1);xg44:=if(XG4,1,-1);xg55:=if(XG5,1,-1);xg66:=if(XG6,1,-1);xg77:=if(XG7,1,-1);xg88:=if(XG8,1,-1);xg99:=if(XG9,1,-1);xg110:=if(XG10,1,-1);SD:=(XG11+XG22+XG33+2*XG44+XG55+XG66+XG77+xg88+3*XG99+4*xg110);SD1:=(XG11+XG22+XG33+2*XG44+XG55+XG66+XG77+xg88+3*XG99+4*xg110)/10;DDX106:=eMA(sd,60);DDX206:=MA(DDX106,5);DDX306:=MA(DDX106,10);p1:=(-((abs(DDX106)-abs(DDX306)))/abs(DDX206))*60;p2:=ema(p1,5);p3:=ema(p1,10);xg86:=p1>=p2 and p2>=p3 and p2>=ref(p2,1) and p3>=ref(p3,1);SDd:=(dx1+dx2+dx3+2*dx4+dx55+dx6+dx7+dx8+3*dx9+4*dx10);D106:=eMA(sdd,60)*60;D206:=MA(D106,5);D306:=MA(D106,10);xg87:=(D106>=D206 and D206>=D306 and d306>ref(d306,1));白色:=SMA(HIGH,21,2);綠色:=SMA(CLOSE,2,1);xg88:=綠色>=白色;nx:=9;ATR := SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),Nx,1);HD := HIGH-REF(HIGH,1);LD := REF(LOW,1)-LOW;DMP:= SMA(IF(HD>0 AND HD>LD,HD,0),Nx,1);DMM:= SMA(IF(LD>0 AND LD>HD,LD,0),Nx,1);PDI:= DMP*100/ATR;MDI:= DMM*100/ATR;ADX:=SMA(ABS(MDI-PDI)/(MDI+PDI)*100,Nx,1);ADXR:=(ADX+REF(ADX,Nx))/2;xg89:=ADX>=25;sd20:=ema(sd,4);sd96:=ema(sd20,24);sd144:=ema(sd20,60);sd288:=ema(sd20,89);sd432:=ema(sd20,124);xg432:=sd96>=sd144 and sd144>=sd288 and sd288>=sd432;xg123:xg87 and xg86 and xg88 and xg89 ,LINETHICK0;partline(MA5,xg123 ,rgb(255,0,0),1,rgb(0,255,0)),LINETHICK2,COLOR0000CC;xg225:=xg123 and xg432 and count((xg123 and xg432)=1,3)=1;DRAWTEXT(xg225,ma10,"o"),COLOR0000CC;月ma5:=MA("maa.ma5#MONTH"(4,2,2) ,20);月ma12:=MA("maa.ma12#MONTH"(4,2,2) ,20);月ma34:=MA("maa.ma34#MONTH"(4,2,2) ,20);xg226:=月ma5>=ref(月ma5,1) and 月ma12>=ref(月ma12,1) and 月ma34>=ref(月ma34,1) ;周ma5:=MA("maa.ma5#week"(4,2,2) ,5);周ma12:=MA("maa.ma12#week"(4,2,2) ,5);周ma34:=MA("maa.ma34#week"(4,2,2) ,5);周ma50:=MA("maa.ma50#week"(4,2,2) ,5);xg227:=周ma5>=ref(周ma5,1) and 周ma12>=ref(周ma12,1) and 周ma34>=ref(周ma34,1){ and周ma50>=ref(周ma50,1)};周DIFF:=MA("MACD.DIFF#WEEK"(26,12,9),5);周DEA:=MA("MACD.DEA#WEEK"(26,12,9),5);周MACD:=(周DIFF-周DEA)*2;HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;HHJSJDB:=(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)+16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12)+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF(HHJSJDA,18)+REF(HHJSJDA,20))/210;HHJSJDC:=MA(HHJSJDB,5);xg228:=HHJSJDA>=HHJSJDB and HHJSJDB>=HHJSJDC;xg229:=HHJSJDC*0.97 AND IF(COUNT(C>=REF(C,1)*1.065,16)>=1,1,0);月DIFF:=MA("MACD.DIFF#MONTH"(26,12,9),20);月DEA:=MA("MACD.DEA#MONTH"(26,12,9),20);月MACD:=(月DIFF-月DEA)*2;多空:=(EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/3.86,30))/MA((2*CLOSE+HIGH+LOW)/3.86,30)*100,3))/CAPITAL*100;DDX117:=EMA(多空,61)*5;DDX217:=MA(DDX117,5);DDX317:=MA(DDX117,10);xg117:=(DDX117>=DDX217 and DDX217>=DDX317 and ddx317>ref(ddx317,1)) and 多空>0 ;xg888:(xg226 or xg227) and xg123 and (周MACD>0 or 月MACD>0) and xg228 and ddx10>0 and xg117,LINETHICK0;xg230:xg888 and count((xg888)=1,10)=1 and sd>-0.01 ,LINETHICK0;DRAWTEXT(xg230,ma30,"6"),COLOR0000CC;xg889:(xg226 or xg227) and xg123 and (周MACD>0 or 月MACD>0) and xg229 and ddx10>0 and xg117,LINETHICK0;xg231:xg889 and count((xg889)=1,10)=1 and sd>-0.01 ,LINETHICK0;DRAWTEXT(xg231,ma60,"6"),COLOR0000CC;partline(MA30,xg888 and sd>-0.01,rgb(0,0,255),1,rgb(0,255,0)),LINETHICK3,Coloryellow;partline(MA60, xg889 and sd>-0.01,rgb(255,0,0),1,rgb(0,255,0)),LINETHICK4,COLOR0000CC;xg890:xg123 and xg228 and xg117,LINETHICK0;xg232:xg890 and count((xg890)=1,10)=1,LINETHICK0;partline(MA10, xg890,rgb(255,0,0),1,rgb(0,255,0)),LINETHICK2,COLOR0000CC;DRAWTEXT(xg232,ma10,"6"),COLOR0000CC;
推薦閱讀:
推薦閱讀:
※成功,不足以成為你的最終目標。
※成功者與平庸者之間的9大差距
※每一種疾病的心理原因
※鉤衣時絕對一次起邊成功的簡明教程(漁網針,方格針)
※說影解制|你未必看懂了《七月與安生》的製片「成功學」