顶底共振指标
本指标由精准顶底+底部共振+强底均线组成。
其操作方法:当短趋势线呈现红色时做多,出现绿色时做空。
底部的黄三角买入参考,顶部的绿色倒三角卖出参考。
RSV1:=100*(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27));
K1:=REF(MA(RSV1,3),1)+(RSV1-REF(MA(RSV1,3),1))/3;
D1:=REF(MA(K1,3),1)+(K1-REF(MA(K1,3),1))/3;
J1:=3*K1-2*D1;
AA1:=EMA(J1,5);
AA2:=REF(AA1,1);
J27:AA1,COLORRED,LINETHICK2;
STICKLINE(AA1>AA2,AA1,AA2,8/3,0),COLOR0055AA;
STICKLINE(AA1>AA2,AA1,AA2,5/3,0),COLOR0077CC;
STICKLINE(AA1>AA2,AA1,AA2,3/3,0),COLOR0099DD;
STICKLINE(AA1>AA2,AA1,AA2,1/3,0),COLORWHITE;
STICKLINE(AA1<=AA2,AA1,AA2,8/3,0),COLOR006600;
STICKLINE(AA1<=AA2,AA1,AA2,5/3,0),COLOR009900;
STICKLINE(AA1<=AA2,AA1,AA2,3/3,0),COLOR00BB00;
STICKLINE(AA1<=AA2,AA1,AA2,1/3,0),COLORWHITE;
RSV2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K2:=REF(MA(RSV2,3),1)+(RSV2-REF(MA(RSV2,3),1))/3;
D2:=REF(MA(K2,3),1)+(K2-REF(MA(K2,3),1))/3;
J2:=3*K2-2*D2;
BB1:=EMA(J2,5);
BB2:=REF(BB1,1);
J9:BB1;
STICKLINE(BB1>BB2,BB1,BB2,7,0),COLOR000045;
STICKLINE(BB1>BB2,BB1,BB2,5,0),COLOR000085;
STICKLINE(BB1>BB2,BB1,BB2,3,0),COLOR0000C5;
STICKLINE(BB1>BB2,BB1,BB2,1,0),COLOR0000E5;
STICKLINE(BB1<=BB2,BB1,BB2,7,0),COLOR353500;
STICKLINE(BB1<=BB2,BB1,BB2,5,0),COLOR555500;
STICKLINE(BB1<=BB2,BB1,BB2,3,0),COLOR757500;
STICKLINE(BB1<=BB2,BB1,BB2,1,0),COLOR858500;
DD:=AA1>AA2 AND BB1>BB2;
注意卖出:REF(DD,1)=1 AND NOT(DD),NODRAW,COLORGREEN;
DRAWTEXT(注意卖出,105,'S'),COLORGREEN;
VAR01:=J27>REF(J27,1);
VAR02:=J9>REF(J9,1);
XG:=VAR01>0 AND VAR02>0 AND (REF(VAR01,1)=0 OR REF(J9,1)=0) AND J9<35 AND J27<35;
底部共振:15*XG,LINETHICK2;
N:=27;
M1:=9;
M2:=5;
M3:=3;
A:=6;
B:=49;
VAR2:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
VAR3:=SMA(VAR2,M1,1);
VARA:=(CLOSE-LLV(LOW,21.55))/(HHV(HIGH,21.55)-LLV(LOW,34))*80;
VARB:=SMA(VARA,9,1);
VARC:=SMA(VARB,5,1);
LC:=REF(CLOSE,1);
山:=SMA(MAX(CLOSE-LC,0),A,1)/SMA(ABS(CLOSE-LC),A,1)*100;
花:=CROSS(山,14);
底1:=IF(CROSS(VARB,VARC) AND VARB<13,20,0);
顶:IF(CROSS(68,山),81,100),LINETHICK1,COLORGREEN;
底:IF((底1 OR 花),30,0),LINETHICK1,COLORYELLOW;
短趋势线:MA(CLOSE,13),COLORRED,LINETHICK2;
涨:IF(短趋势线>REF(短趋势线,1),短趋势线,DRAWNULL),COLORRED,LINETHICK2;
平:=IF(短趋势线=REF(短趋势线,1),短趋势线,DRAWNULL),COLOR00FFFF,LINETHICK2;
跌:IF(短趋势线<REF(短趋势线,1),短趋势线,DRAWNULL),COLOR80FF00,LINETHICK2;