东家精品组合 风险防范

 2023-05-24 22:25:02    通达信指标网  

MA20:=MA(CLOSE,20);   

MA60:=MA(CLOSE,60);   

MA120:=MA(CLOSE,120);   

MA240:=MA(CLOSE,240);   

P:=((2)*(CLOSE) + HIGH + LOW + OPEN)/(5);   

中短A:=HHV(P,20);   

中短B:=LLV(P,20);   

中短C:=中短A - 中短B;   

中短D:=(EMA((P - 中短B)/(中短C),2))*(100);   

中A:=HHV(P,60);   

中B:=LLV(P,60);   

中C:=中A - 中B;   

中D:=(EMA((P - 中B)/(中C),2))*(100);   

中长A:=HHV(P,120);   

中长B:=LLV(P,120);   

中长C:=中长A - 中长B;   

中长D:=(EMA((P - 中长B)/(中长C),2))*(100);   

长A:=HHV(P,240);   

长B:=LLV(P,240);   

长C:=长A - 长B;   

长D:=(EMA((P - 长B)/(长C),2))*(100);   

N:=20;   

RSV1:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;   

K1A:=SMA(RSV1,10,1);   

D1B:=SMA(K1A,5,1);   

KKC:=INTPART(K1A);   

DDC:=INTPART(D1B);   

TFXXS:=KKC+DDC,LINETHICK0,COLORYELLOW;   

TGLXS:=(TFXXS-REF(TFXXS,1))*10,LINETHICK0,COLORGREEN;   

TYCFX:=TFXXS+TGLXS,LINETHICK0,COLORGREEN;   

A0:=(L+H+C*2)/4;   

A1C:=EMA(A0,N);   

A1X:=(A1C-REF(A1C,1))/REF(A1C,1)*100;   

XXX:=EMA((C-LLV(L,11))/(HHV(H,25)-LLV(L,11))*4,8)+1;   

XX:=IF(1=1,POW(XXX,2)-10,DRAWNULL);   

YYY:=EMA((INDEXC-LLV(INDEXL,11))/(HHV(INDEXH,25)-LLV(INDEXL,11))*4,8)+1;   

YY:=POW(YYY,2)-10;   

RSV2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;   

K:=SMA(RSV2,3,1);   

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

J:=3*K-2*D;   

KL:=CROSS(J,0);   

KH:=CROSS(100,J);   

LC:=REF(C,1);   

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

RL:=CROSS(WRSI,20);   

RH:=CROSS(80,WRSI);   

CCI背:=IF(LLV(CCI,2)>LLV(CCI,7) AND LLV(L,2)<=LLV(L,7)  AND HHV(H,10)>MA(CLOSE,60),1,0),COLORWHITE;   

T1:=IF((DATE<=1090314),1,0);   

VAR7W:=REF(CLOSE,1);   

VAR8W:=((SMA(MAX(CLOSE-VAR7W,0),7,1))/(SMA(ABS(CLOSE-VAR7W),7,1)))*(100);   

VAR9W:=CROSS(70,VAR8W);   

VARA:=(FILTER(VAR9W,4))*(T1);   

BIAS1:=(C-MA(C,12))/MA(C,6)*100;   

BIAS2:=(C-MA(C,24))/MA(C,12)*100;   

BIAS3:=(C-MA(C,48))/MA(C,24)*100;   

BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;   

乖离:=MA(BIAS,6);   

  

STICKLINE(C,100,90,5,0),COLORFF4433;   

STICKLINE(C,90,80,5,0),COLORFF6633;   

STICKLINE(A1X>=0,20,80,4,0)COLOR000055;   

STICKLINE(A1X<0,20,80,4,0)COLOR663300;   

STICKLINE(C,20,10,4,0),COLORFF6633;   

STICKLINE(C,10,0,4,0),COLORFF4433;   

  

近期风险:TFXXS,NODRAW;   

预测风险:TYCFX,NODRAW;   

乖离系数:=TGLXS,NODRAW;   

长线:长D,LINETHICK2,COLORWHITE;    

中长线:中长D,LINETHICK2,COLOR990000;   

中线:中D,LINETHICK2,COLORYELLOW;   

中短线:中短D,LINETHICK2,COLORRED;   

  

DRAWTEXT(ISLASTBAR,5,'   高安全区'),COLORWHITE;   

DRAWTEXT(ISLASTBAR,15,'   安全区'),COLORWHITE;   

DRAWTEXT(ISLASTBAR,85,'   风险区'),COLORWHITE;   

DRAWTEXT(ISLASTBAR,95,'   高风险区'),COLORWHITE;   

DRAWTEXT(CCI背 AND REF(CCI,1)<-150  AND C>O,2,'C'),COLORYELLOW;   

DRAWTEXT(RL,8,'R'),COLORGREEN;   

DRAWTEXT((CROSS(BIAS,乖离)  AND 乖离<-9),14,'B'),COLORWHITE;   

DRAWTEXT(KL,20,'K'),COLORWHITE;   

DRAWTEXT(VARA,86,'S'),COLORFFFFFF;   

DRAWTEXT(KH,92,'K'),COLORWHITE;   

DRAWTEXT(RH,98,'R'),COLORGREEN;   

  

STICKLINE(CURRBARSCOUNT=53 ,100,0,82,0),COLOR333344;   

STICKLINE(CURRBARSCOUNT=53 ,100,90,82,0),COLORRED;   

DRAWTEXT(CURRBARSCOUNT=59,95,'      ☆☆☆  东家专用指标  ☆☆☆'),COLORGREEN;   

DRAWTEXT(CURRBARSCOUNT=59,75,'●风险与收益共存,时限与收益相关'),COLORGREEN;   

DRAWTEXT(CURRBARSCOUNT=59,65,'●股况趋势常分析,追涨杀跌风险大'),COLORGREEN;   

DRAWTEXT(CURRBARSCOUNT=59,55,'●不设止损不买股,分批买入降成本'),COLORGREEN;   

DRAWTEXT(CURRBARSCOUNT=59,45,'●年季月线压于底,留意低点才进货,'),COLORGREEN;   

DRAWTEXT(CURRBARSCOUNT=59,35,'●年季月线托于顶,风险已存需留心'),COLORGREEN;   

DRAWTEXT(CURRBARSCOUNT=59,25,'●风险偏大看量能,忙用量神保平安'),COLORWHITE;   

DRAWTEXT(CURRBARSCOUNT=59,15,'■ B=BIAS    C=CCI    K=KDJ    R=RSI'),COLORGREEN;   

DRAWTEXT(CURRBARSCOUNT=59,5,'■ S卖出、尚可持有、短期减持为短期行为'),COLORGREEN;   

DRAWTEXT(中短D<=8  AND 中D<=8 AND 中长D<=8 AND 长D<=8 AND ISLASTBAR,25,'关注底部'),COLORGREEN;   

DRAWTEXT(中短D<=20 AND 中D<=20 AND 中长D<=20 AND 长D<=20 AND ISLASTBAR,35,'安全弱势'),COLORGREEN;   

DRAWTEXT(中短D>=80 AND 中D>=80 AND 中长D>=80 AND 长D>=80 AND ISLASTBAR,75,'已有风险'),COLORGREEN;   

DRAWTEXT(中短D>93 AND 中D>93 AND 中长D>93 AND 长D>93 AND ISLASTBAR,65,'风险极高'),COLORGREEN;   

DRAWTEXT(近期风险/预测风险 >=1 AND ISLASTBAR,50,'短期减持'),COLORGREEN;   

DRAWTEXT(近期风险/预测风险<1 AND ISLASTBAR,50,'尚可持有'),COLORGREEN;   

  •  标签:  

原文链接:https://www.tdxzb.com/?id=1316

本文版权:如无特别标注,本站文章均为原创。

相关文章

服务热线

18020657357

微信客服

微信客服