分享

通达信【主力抄底跟踪】主图指标+通达信【多维共振神剑】副图指标,源码CJM99分享

 辣辣辣豆腐干 2024-12-16

通达信【主力抄底跟踪】主图指标+通达信【多维共振神剑】副图指标,源码CJM99分享

两个指标分别导入哦

通达信【主力抄底跟踪】主图指标

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,9);

DEA :=EMA(DIFF,6);

EMA250:MA(C,250),COLORRED;

EMA6:MA(C,6),COLORRED,LINETHICK2;

EMA18:MA(C,18),COLORYELLOW;

EMA21:MA(C,21),COLORFF00FF;

EMA10:MA(C,10),COLORGREEN;

EMA288:MA(C,288),COLORBLUE;

买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;

买进条件:=crOSS(C,买进价) AND 买进价>REF(买进价,1);

中线买入:=COUNT(CLOSE<EMA18,5)=4 AND CLOSE/EMA18>1.004 AND CROSS(CLOSE,EMA18) AND EMA18>=REF(EMA18,1)AND C>REF(C,1)*1.05;

DRAWTEXT(中线买入,LOW*0.95,' ★中线买入'),COLORRED;

STICKLINE(买进条件,O,C,10/4,0),COLORFFFFFF;

STICKLINE(买进条件,O,C,8/4,0),COLORFFFFFF;

STICKLINE(买进条件,O,C,4/4,0),COLORFFFFFF;

STICKLINE(买进条件,H,L,0.5/4,0),COLORFFFFFF;

VL:=REF(LOW,1);

VAR12:=(SMA(Abs(LOW-VL),13,

1))/(SMA(MAX(LOW-VL,0),13,1))*100;

VAR14:=MA(VAR12,13);

VAR15:=LLV(LOW,34);

VAR18:=EMA(IF(LOW<=VAR15,VAR14,0),3);

加码价:=((C-REF(MA(C,18),1))/18+MA(C,18))*1.004;

加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);

VAR110:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1);

VAR111:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-VAR110*10.9;

T:=FILTER(IF(VAR111<=VAR110 AND VAR18>REF(VAR18,1),VAR18*8,0),20);

STICKLINE(加码条件,O,C,10/4,0),COLOR00FFFF;

STICKLINE(加码条件,O,C,8/4,0),COLOR00FFFF;

STICKLINE(加码条件,O,C,4/4,0),COLOR00FFFF;

STICKLINE(加码条件,H,L,0.5/4,0),COLOR00FFFF;

DRAWTEXT(T,LOW-0.4,'←洗盘结束'),COLORFF00FF;

DRAWTEXT(T,LOW-0.2,'|'),COLORFF00FF;

VAR21:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;

VAR22:=SMA(VAR21,3,1);

VAR23:=SMA(VAR22,3,1);

VAR24:=SMA(VAR23,3,1);

VAR25:=CROSS(VAR23,VAR24) AND VAR23<20;

ZDF:=(C-REF(C,1))/REF(C,1)*100;

DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.1,'←好股吧WWW.CJM99.COM抄底'),COLORFF44FF,LINETHICK3;

DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.2,'★|'),COLORRED;

VAR29:=CROSS(VAR24,VAR23) AND VAR23>80;

STICKLINE(ZDF>9.8,O,C,10/4,1),COLOR0000FF;

STICKLINE(ZDF>9.8,O,C,8/4,1),COLOR0000FF;

STICKLINE(ZDF>9.8,O,C,4/4,1),COLOR0000FF;

STICKLINE(ZDF<-9.8,O,C,10/4,1),COLOR00FF00;

STICKLINE(ZDF<-9.8,O,C,8/4,1),COLOR00FF00;

STICKLINE(ZDF<-9.8,O,C,4/4,1),COLOR00FF00;

DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.9,'←逃顶'),COLORGREEN;

DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.2,'|'),COLORGREEN;

通达信【多维共振神剑】副图指标

{看平滑异同平均线macd值:SHORT=12;LONG=26;MID=9; 也可8,13,5; 也可10,20,7};

SHORT:=8;

LONG:=13;

MID:=5;

DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);

DEA:=EMA(DIF,MID);

MACD:=(DIF-DEA)*2;

MACDLINE:=IF(crOSS(DIF,DEA),1+1,IF(CROSS(DEA,DIF),1-0.5,1+0));

A1:=DIF>DEA;

DRAWICON(DIF>DEA,1,1); {当MACD为红柱,画红箭头};

DRAWICON(DIF<DEA,1,2); {当MACD为绿柱,画绿箭头};

{看随机指标kdj值:N=9,M1=3,M2=3; 也有人用8,3,3};

N:=9;

M1:=3;

M2:=3;

RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;

K:=SMA(RSV,M1,1);

D:=SMA(K,M2,1);

J:=3*K-2*D;

kdJLINE:=IF(CROSS(K,D) AND CROSS(J,K),1,IF(CROSS(D,K) AND CROSS(K,J),0-0.5,0));

A2:=K>D;

DRAWICON(K>D,2,1); {当KDJ向好,画红箭头};

DRAWICON(K<D,2,2); {当KDJ向坏,画绿箭头};

{看相对强弱指标rsi值:N1=6; N2=12; N3=24; 也有人用5,13,};

N1:=6; N2:=12; N3:=24;

LC:=REF(CLOSE,1);

RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(Abs(CLOSE-LC),N1,1)*100;

RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;

RSI3:=SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;

A3:=RSI1>RSI2;

DRAWICON(RSI1>RSI2,3,1); {当RSI向好,画红箭头};

DRAWICON(RSI1<RSI2,3,2); {当RSI向坏,画绿箭头};

{看威廉指标Lwr:WN:=9; WM1:=3; WM2:=3; 也有人用WN:=13; WM1:=3; WM2:=3; 威廉指标采用反向,所以加“负号”};

WN:=9; WM1:=3; WM2:=3;

WRSV:=-(HHV(HIGH,WN)-CLOSE)/(HHV(HIGH,WN)-LLV(LOW,WN))*100; {威廉指标采用反向,所以加“负号”};

LWR1:=SMA(WRSV,WM1,1);

LWR2:=SMA(LWR1,WM2,1);

A4:=LWR1>LWR2;

DRAWICON(LWR1>LWR2,4,1); {当LWR向好,画红箭头};

DRAWICON(LWR1<LWR2,4,2); {当LWR向坏,画绿箭头};

{看多空均线bbi:BM1:=3; BM2:=6; BM3:=12; BM4:=24; };

BM1:=3; BM2:=6; BM3:=12; BM4:=24;

BBI:=(MA(CLOSE,BM1)+MA(CLOSE,BM2)+MA(CLOSE,BM3)+MA(CLOSE,BM4))/4;

A5:=CLOSE>BBI;

DRAWICON(CLOSE>BBI,5,1); {当BBI向好,画红箭头};

DRAWICON(CLOSE<BBI,5,2); {当BBI向坏,画绿箭头};

{看动量线mtm: 不采用原来的公式,采用改造的MTM};

{MN:=12; MM:=6;

MTM:CLOSE-REF(CLOSE,MN);

MTMMA:MA(MTM,M)};

MTM:=CLOSE-REF(CLOSE,1);

mms:=100*EMA(EMA(MTM,5),3)/EMA(EMA(ABS(MTM),5),3);

MMM:=100*EMA(EMA(MTM,13),8)/EMA(EMA(ABS(MTM),13),8);

A6:=MMS>MMM;

DRAWICON(MMS>MMM,6,1); {当MTM向好,画红箭头};

DRAWICON(MMS<MMM,6,2); {当MTM向坏,画绿箭头};

MACD红:=IF(A1,1,0),COLORRED;

KDJ红 :=IF(A2,2,1),COLORMAGENTA;

RSI红 :=IF(A3,3,2),COLORLIRED;

LWR红 :=IF(A4,4,3),COLORYELLOW;

BBI红 :=IF(A5,5,4),COLORCYAN;

MTM红 :=IF(A6,6,5),COLORFF4700;

红数:A1+A2+A3+A4+A5+A6, COLORYELLOW,NODRAW;

买入:(红数=6 AND REF(红数,1)<>6)*3, COLORYELLOW;

卖出:红数<4 AND REF(红数,1)>=4, COLORCYAN;

{DRAWTEXT(买入, 6.3, '买'),COLORYELLOW;

DRAWTEXT(卖出, 6.3, '卖'),COLORCYAN;};

    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约