麻煩老師幫忙做個(gè)選股公式 [通達(dá)信]
-
咨詢內(nèi)容:
大智慧的K線主圖公式:
DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19)),COLORWHITE;
DEA:=EMA(DIFF,9),COLORF00FF0 ;
MACD:=0.90*(DIFF-DEA), COLORSTICK;
TJ:=(DIFF>=DEA);
TJ1:=(DIFF>=0);
STICKLINE(TJ,H,L,0.5,0),COLORYELLOW;
STICKLINE(TJ,O,C,4,0),COLORYELLOW;
STICKLINE(TJ1 AND TJ,H,L,0.5,0),COLORF00FF0;
STICKLINE(TJ1 AND TJ,O,C,4,1),COLORF00FF0;
STICKLINE(DIFF<DEA,H,L,0.5,0),COLORF0F000;
VAR1:=(CLOSE*2+HIGH+LOW)/4;
SK:= EMA(VAR1,13)-EMA(VAR1,73);
SD:= EMA(SK,2);
DRAWTEXT((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)) ,L*0.99,'短線'),COLORRED;
STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),H,L,0.5,0),COLORRED;
STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),O,C,10,1),LINETHICK3,COLORRED;
MA1:=MA(CLOSE,15);
MA6:=MA(C,5),COLORWHITE;
MA18:=MA(C,13),COLORGREEN;
TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
A:=REF(C,BARSLAST(HD)); B:=REF(L,BARSLAST(LD));
T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;
T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
頂:IF(T1,A,A),COLORYELLOW,POINTDOT;
底:IF(T2,B,B),COLORGREEN,POINTDOT;
加碼價(jià):=((C-REF(MA18,1))/18+MA18)*1.004;
加碼條件:=CROSS(C,加碼價(jià)) AND 加碼價(jià)>REF(加碼價(jià),1);
黃K加碼:IF(加碼條件,L,H),COLORYELLOW,POINTDOT;
STICKLINE(加碼條件,H,L,0,1),COLORYELLOW,LINETHICK2;
STICKLINE(加碼條件,O,C,4,1),COLORYELLOW,LINETHICK2;
買進(jìn)價(jià):=((C-REF(MA6,1))/6+MA6)*1.004;
買進(jìn)條件:=CROSS(C,買進(jìn)價(jià)) AND 買進(jìn)價(jià)>REF(買進(jìn)價(jià),1);
白K買進(jìn):IF(買進(jìn)條件,L,H),COLORWHITE,POINTDOT;
STICKLINE(買進(jìn)條件,H,L,0,1),COLORWHITE,LINETHICK2;
STICKLINE(買進(jìn)條件,O,C,4,1),COLORWHITE,LINETHICK2;
麻煩老師幫忙做一個(gè)突破箱頂?shù)倪x股公式,非常感謝!
-
通達(dá)信技術(shù)部:
DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19)),COLORWHITE;
DEA:=EMA(DIFF,9),COLORF00FF0 ;
MACD:=0.90*(DIFF-DEA), COLORSTICK;
TJ:=(DIFF>=DEA);
TJ1:=(DIFF>=0);
VAR1:=(CLOSE*2+HIGH+LOW)/4;
SK:= EMA(VAR1,13)-EMA(VAR1,73);
SD:= EMA(SK,2);
MA1:=MA(CLOSE,15);
MA6:=MA(C,5),COLORWHITE;
MA18:=MA(C,13),COLORGREEN;
TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
A:=REF(C,BARSLAST(HD)); B:=REF(L,BARSLAST(LD));
T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;
T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
頂:=IF(T1,A,A),COLORYELLOW,POINTDOT;
底:=IF(T2,B,B),COLORGREEN,POINTDOT;
選股:cross(c,頂);拿去試試。
-
通達(dá)信客服:
非常感謝!
- 網(wǎng)友交流: 好用,再次衷心感謝!
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 1145508240 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容