公式如下
{N:5,250,14;}
K:=N/2;
DTPL:=MA(C,N)>MA(C,N*1.5) AND MA(C,N*1.5)>MA(C,N*3) AND MA(C,3)>MA(C,N*6);
連續(xù)走強(qiáng):=COUNT(C>MA(C,N),K)=K;
ZQSJ:=BARSLAST(連續(xù)走強(qiáng));
STICKLINE(連續(xù)走強(qiáng) ,0 ,K*0.3 ,5 ,1 ),COLORYELLOW;
下穿:=CROSS(MA(C,N),C);
{網(wǎng)址:WWW.SYDTZRJ.COM 水鴨的投資日記}
GL:=MA(C,N/2)/MA(C,N*2)>=1.05;
跌:(下穿 AND ZQSJ<=3 and="" dtpl="" and="">=3>
連續(xù)走弱:=COUNT(C<>
ZRSJ:=BARSLAST(連續(xù)走弱);
STICKLINE(連續(xù)走弱 ,0 ,K*-0.3 ,5 ,1 ),COLORGREEN,LINETHICK5;
上穿:=CROSS(C,MA(C,N));
秘密買點(diǎn)漲:(上穿 AND ZRSJ<>
強(qiáng):連續(xù)走強(qiáng)*K*0.3,COLORYELLOW,LINETHICK3;
秘密買點(diǎn)弱:連續(xù)走弱*K*-0.3,COLORRED,LINETHICK3;
VAR6:=4*SMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5,1),3,1);
VAR7:=8;
準(zhǔn)備: IF(VAR6<>
趨勢(shì):=(5)*(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))* (100),5,1))-(3)*(SMA(SMA(((CLOSE-LLV(LOW,27))
/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1))-SMA(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1),2,1);
趨勢(shì)1:=(3)*(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))* (100),5,1))-(2)
*(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1));
探底趨勢(shì):IF((趨勢(shì)<>
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA60:=MA(CLOSE,60);
BB:=REF(INDEXC,1)[=REF(C,1) AND REF(O,1)/REF(C,1)>=1.05]AND REF(C,1)[O AND C/O>=1.05 AND C>REF(O,1)]AND REF(VOL,1)<>
VAR1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);
VAR2:=8;
CC:=CROSS(VAR1,VAR2);
DRAWTEXT(CC,5,'波段買!'),COLORRED,LINETHICK6;
STICKLINE(CC,1.6,4,0,0),COLORRED;
VP1:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
VP2:=SMA(SMA(VP1,3,1),3,1);
VP3:=EMA(VP2,5);
無(wú)敵:=3*VP2-2*VP3;
超級(jí)無(wú)敵:IF(CROSS(無(wú)敵,VP2) AND 無(wú)敵<>
AA:=LLV(LOW,13);
風(fēng)險(xiǎn):=80,COLORFF00FF;
狼狗:=87.5,COLOR00FF00;
DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25);
股海神偷:=DD,COLORRED,LINETHICK2;
股海:=(((DD-LLV(DD,21))/(HHV(DD,13)-LLV(DD,21)))*(4))*(25);
目標(biāo)出現(xiàn):IF(CROSS(股海,90) AND (股海神偷<>
控盤(pán):= (EMA(EMA(CLOSE,9),9)-REF(EMA(EMA(CLOSE,9),9),1))/REF(EMA(EMA(CLOSE,9),9),1)*400;
A10:=CROSS(控盤(pán),0);
開(kāi)始控盤(pán):IF(A10,5,0),COLORYELLOW;
{波段王抄底}{結(jié)合波段王指標(biāo)}
趨勢(shì)線:=3*SMA((CLOSE- LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
CROSS(趨勢(shì)線,10) AND 趨勢(shì)線>=REF(MA(趨勢(shì)線,10),1);
A1:=REF(CLOSE,2);
A2:=SMA(MAX(CLOSE-A1,0),7,1)/SMA(ABS(CLOSE-A1),7,1)*100;
波段介入:IF(A2<>
VAR8:=(CLOSE-LLV(LOW,60.135))/
(HHV(HIGH,60.135)-LLV(LOW,60))*80;
VAR9:=SMA(VAR8,7,1);
VARA:=SMA(VAR9,5,1);
底1: IF(CROSS(VAR9,VARA) AND VAR9<>
買入: IF(CROSS((4*SMA((CLOSE- LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5,1),3,1)),(8)),7,0),STICK,COLOR0099FF,LINETHICK2;
DRAWTEXT(買入,7.98,'-我買'),COLORBLUE,LINETHICK8;
VAR10:=LLV(LOW,10);
VAR13:=HHV(HIGH,25);
M:=EMA((CLOSE-VAR10)/(VAR13-VAR10)*4,4)*25,COLORYELLOW,;
RSV10:= (HHV(HIGH,11)-CLOSE)/(HHV(HIGH,11)-LLV(LOW,11))*100;
LWR1:=SMA(RSV10,3,1),COLORRED,LINETHICK2;
LWR2:=SMA(LWR1,3,1),COLORWHITE;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100;
很準(zhǔn)殺入:CROSS(RSI,11)*7,COLORBLUE,LINETHICK8;
K2:=EMA(C,5),COLORFFFF00;
K3:=EMA(C,10),COLORFFFF00;
K5:=EMA(C,30),COLORFFFF00;KK5:=EMA(INDEXC,30),COLORFFFF00;
K6:=2*(K2-K5);K7:=2*(K2-K3);K8:=2*(K7+K6),COLORRED;
STICKLINE(CROSS(K8,0),0,3,8,0) ,COLORRED;
K1:=IF(K8>REF(K8,5) AND K3
K21:=IF(K8>REF(K8,7) AND K3
K31:=IF(K8>REF(K8,9) AND K3
K4:=IF(K8>REF(K8,11) AND K3
底部:STICKLINE((K1 OR K21 OR K31 OR K4) AND K8<0 and="" k8="">REF(K8,1),1.5,0,8,0),COLORYELLOW;
A:=(3*CLOSE+LOW+OPEN+HIGH)/6;
D1:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)
+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/211;
D2:=EMA(D1,2);
D3:=EMA(D2,2);
波段買入:IF(CROSS(D1,K1),5,0),COLOR0099FF,POINTDOT;
STICKLINE(CROSS(D1,K1),5,0,4,0),COLOR0099FF;
多方趨勢(shì):=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)
-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)
-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)
,3,1),2,1);
VAR1D:=EMA(CLOSE,2)-EMA(CLOSE,89);
VAR1E:=EMA(VAR1D,30);
VAR1F:=2*(VAR1D-VAR1E)*10;
VAR20:=POW(VAR1F,3)*0.1+POW(VAR1F,2);
VAR25:=IF(VAR1F>0.015,VAR20,0)/45;
拉線:=VAR25,COLORYELLOW ;
拉線區(qū):IF(拉線>0, 3,0), COLOR00FF00;
拉線買點(diǎn):IF(拉線>0 AND REF(拉線,1)=0,2,0), COLORBLUE,COLORSTICK ;
DIFF:=(EMA(CLOSE,12) - EMA(CLOSE,26));
DEA:=EMA(DIFF,9),COLORBLUE,LINETHICK2;
CD:=2*(DIFF-DEA),COLORSTICK,LINETHICK2;
低位起漲:IF(DIFF<>
圖形如下
A2:=EMA(C,5);
A3:=EMA(C,10);
A5:=EMA(C,30);
A6:=2*(A2-A5);
A7:=2*(A2-A3);
A8:=2*(A7+A6);
B:=14/2;
{網(wǎng)址:WWW.SYDTZRJ.COM 水鴨的投資日記}
股海:=COUNT(C>MA(C,14),B)=B;
海:=股海*B*0.3;
海 AND CROSS(A8,0);
測(cè)試一下,平倉(cāng)規(guī)則是,不論盈虧,以持股5天后平倉(cāng)為條件。
勝率46.31%
0>