當前位置:首頁 > 時事 > 正文

成功出逃指标

{設置參數 n:1,100,9; m:1,100,14; n1:1,100,6; n2:1,100,8;}

SHORT:=6;
LONG:=20;
MIDN:=5;
DIFN:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEAN:=EMA(DIFN,MIDN);
MACD8:=(DIFN-DEAN)*2;

TYP8:= (HIGH + LOW + CLOSE)/3;
CC1:(TYP8-MA(TYP8,M))/(0.015*AVEDEV(TYP8,M)),COLORYELLOW;
C1:=SMA(CC1,3,1);
C2:=SMA(C1,3,1);
C3:=3*C1-2*C2;
CB1:=EMA(C3,5);
CB2:=REF(CB1,1);
DRAWBAND(CC1,RGB(00,85,85),0,RGB(255,200,90));
DRAWBAND(150,0,-120,0);

LC1 := REF(CLOSE,1);
RSI11:=SMA(MAX(CLOSE-LC1,0),N1,1)/SMA(ABS(CLOSE-LC1),N1,1)*100;
RSI:(RSI11-50)*5,LINETHICK2,COLOR515151;
R1:=SMA(RSI,3,1);
D1:=SMA(R1,3,1);
J1:=3*R1-2*D1;
RR1:=EMA(J1,5);
RR2:=REF(RR1,1);
RR:=RR1>RR2;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
KN:=SMA(RSV,3,1);
K1:=(KN-50)*5,COLORBLACK;
K2:=SMA(K1,3,1);
D2:=SMA(K2,3,1);
J2:=3*K2-2*D2;
BB1:=EMA(J2,5);
BB2:=REF(BB1,1);
賣出:REF(RR,1)=1 AND NOT(RR) AND CB1>100,LINETHICK0;

AAA:=100-100*(HHV(HIGH,8)-CLOSE)/(HHV(HIGH,8)-LLV(LOW,8));
BBB:=100-100*(HHV(HIGH,42)-CLOSE)/(HHV(HIGH,42)-LLV(LOW,42));
DDD:=100-100*(HHV(HIGH,89)-CLOSE)/(HHV(HIGH,89)-LLV(LOW,89));
短:=EMA(AAA,4);
中:=EMA(BBB,4);
長:=EMA(DDD,4);
STICKLINE(長>98 ,250,300,4,0),COLORGREEN;
STICKLINE(長>=98 AND 中>=93,170,275,3,1),COLORYELLOW;

LC7 := REF(CLOSE,1);
RSI7:=SMA(MAX(CLOSE-LC7,0),6,1)/SMA(ABS(CLOSE-LC7),6,1)*100;
STICKLINE(CROSS(80,RSI7),200,280,3,0),COLORGREEN,LINETHICK4;
DRAWICON(CROSS(80,RSI7),170,14),COLORGREEN;
周14:=CROSS(80,RSI7);

LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
DRAWICON(CROSS(RSI1,20),20,23);

周15:=FILTER(CROSS(80,RSI1) AND RSI1DRAWICON(周15,120,15);

X6:=REF(CLOSE,1);
X7:=((SMA(MAX((CLOSE - X6),0),7,1) / SMA(ABS((CLOSE - X6)),7,1)) * 100);
X8:=CROSS(79,X7);
X9:=FILTER(X8,4);
STICKLINE(X9=1.0,-40,60,2,0),COLORBLUE;

LC5:=REF(CLOSE,1);
RSI5:=SMA(MAX(CLOSE-LC5,0),6,1)/SMA(ABS(CLOSE-LC5),6,1)*100;
STICKLINE(CROSS(84,RSI5),-80,-30,2,0),COLORGREEN,LINETHICK4;
周綠:=CROSS(84,RSI5);

{MACD}
RSV8:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV8,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
DIF:EMA(CLOSE,12)-EMA(CLOSE,26),LINETHICK0,COLOR0099FF;
DEA :EMA(DIF,9),LINETHICK0,COLORD89837;
MACD:2*(DIF-DEA),COLORFF9999,LINETHICK0;

RSV1:=(HHV(H,9.8)-C)/(HHV(H,9.8)-LLV(L,9.8))*101;
KK:=SMA(RSV1,3,1);
DD:=SMA(KK,3,1);
JJ:=3*KK-2*DD;
買賣:=IF(JJ>=100,100,IF(JJ<=0,0,JJ));

KX:=250;
KH:=HHV(K,KX);
DH:=HHV(D,KX);
JH:=HHV(J,KX);
KL:=LLV(K,KX);
DL:=LLV(D,KX);
JL:=LLV(J,KX);
HKMAX:=MAX(KH,MAX(DH,JH));
LKMIN:=MIN(KL,MIN(DL,JL));
KHLB:=(HKMAX+LKMIN)/2;
KHLC:=HKMAX-LKMIN;
MHF:=HHV(DIF,KX);
MHD:=HHV(DEA,KX);
MHM:=HHV(MACD,KX);
MLF:=LLV(DIF,KX);
MLD:=LLV(DEA,KX);
MLM:=LLV(MACD,KX);
HMAX:=MAX(MHF,MAX(MHD,MHM));
LMIN:=MIN(MLF,MIN(MLD,MLM));
FHLB:=(HMAX-LMIN)/100;
FHLC:=HMAX-LMIN;
SH:=(0-FHLB)*(KHLC/FHLC)+KHLB;
DIFA:=(DIF-FHLB)*(KHLC/FHLC)+KHLB;
DEAA:=(DEA-FHLB)*(KHLC/FHLC)+KHLB;
MACDA:=(MACD-FHLB)*(KHLC/FHLC)+KHLB;
CDA:=MACD0;
CDB:=MACD>=REF(MACD,1) AND MACD>0;
CDC:=MACD>REF(MACD,1) AND MACD<0;
CDD:=MACD<=REF(MACD,1) AND MACD<0;
STICKLINE(CDA,SH,MACDA,2,0),COLOR00AAFF;{黃色段}
STICKLINE(CDB,SH,MACDA,2,0),COLOR0000AA; {紅色段}
STICKLINE(CDC,SH,MACDA,2,0),COLORAA00BB;{向上粉紅};

Tags:

你可能想看:

有話要說...

取消
掃碼支持 支付碼