K线阻力与支撑
由普通K线+阻力与支撑+精准线主图指标合成。
操作方法:本指标抄底比较靠谱,当股价在低位有支撑时买入,逃顶请参考其他指标。
请结合大盘,均线,成交量和其他指标使用。
本指标无未来函数,可作为主图使用。
N:=IF(BARSCOUNT(C)>=10,10,BARSCOUNT(C));
STICKLINE(C>=MA(C,N),MA(C,N),MA(C,N*0.7),4,0),colormagenta;
STICKLINE(C<MA(C,N),MA(C,N),MA(C,N*0.7),4,0),coloryellow;
DRAWKLINE(H,O,L,C);
N:=3;
L0:=0.00;
L1:=ABS(L-REF(L,1))<=L0;
L2:=ABS(L-REF(L,2))<=L0;
L3:=ABS(L-REF(L,3))<=L0;
L4:=ABS(L-REF(L,4))<=L0;
L5:=ABS(L-REF(L,5))<=L0;
精准线首次:=L1 OR L2 OR L3 OR L4 OR L5;
精准左:=FILTER(精准线首次,N) ;
天数:=BARSLAST(精准左);
LTS:=REF(L,天数);
精准右:=ABS(L-LTS)<=L0;
STICKLINE(精准左,L,L,50,-1),Color8080FF;
G1:=ABS(H-REF(H,1))<=L0;
G2:=ABS(H-REF(H,2))<=L0;
G3:=ABS(H-REF(H,3))<=L0;
G4:=ABS(H-REF(H,4))<=L0;
G5:=ABS(H-REF(H,5))<=L0;
G6:=ABS(H-REF(H,6))<=L0;
G7:=ABS(H-REF(H,7))<=L0;
G8:=ABS(H-REF(H,8))<=L0;
精准线1首次:=G1 OR G2 OR G3 OR G4 OR G5 OR G6 OR G7 OR G8;
精准左1:=FILTER(精准线1首次,N) ;
天数1:=BARSLAST(精准左1);
GTS:=REF(L,天数1);
精准右1:=ABS(H-LTS)<=L0;
STICKLINE(精准左1,H,H,50,-1),Color00FF00;
A:=EMA(C,14),colorwhite,LINETHICK1;
B:=(A-REF(A,1))/REF(A,1)*100,NODRAW;
支撑:IF(B>=0,REF(EMA(C,14),BARSLAST(CROSS(B,0))+1),DRAWNULL),colorred,LINETHICK2;
阻力:IF(B<0,REF(EMA(C,14),BARSLAST(CROSS(0,B))+1),DRAWNULL),colorgreen,LINETHICK2;
EME13:=(EMA(EMA(C,13),13)/REF(EMA(EMA(C,13),13),1)-1)*1000;
吸:IF(EME13< 0 AND EME13> REF(EME13,1),EME13,DRAWNULL),NODRAW,colorlired,LINETHICK3;
拉:IF(EME13>=0 AND EME13> REF(EME13,1),EME13,DRAWNULL),NODRAW,colorred,LINETHICK3;
派:IF(EME13>=0 AND EME13<=REF(EME13,1),EME13,DRAWNULL),NODRAW,colorgreen,LINETHICK3;
落:IF(EME13< 0 AND EME13<=REF(EME13,1),EME13,DRAWNULL),NODRAW,colorwhite,LINETHICK3;
NOTEXT吸:IF(BACKSET(EME13< 0 AND EME13> REF(EME13,1),2),EME13,DRAWNULL),colorlired,LINETHICK3;
NOTEXT拉:IF(BACKSET(EME13>=0 AND EME13> REF(EME13,1),2),EME13,DRAWNULL),colorred,LINETHICK3;
NOTEXT派:IF(BACKSET(EME13>=0 AND EME13<=REF(EME13,1),2),EME13,DRAWNULL),colorgreen,LINETHICK3;
NOTEXT落:IF(BACKSET(EME13< 0 AND EME13<=REF(EME13,1),2),EME13,DRAWNULL),colorwhite,LINETHICK3;
VAT4:=(LOW+HIGH+CLOSE)/3;
操作: MA(VAT4,5);
拉升: HHV(操作,13);
压力: HHV(操作,60);
买卖: LLV(操作,13);
底部支撑: LLV(LOW,60)*1.02,colorblue,LINETHICK2;
顶部: HHV(HIGH,60)*0.98,colorcyan;
涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(O,1)),1,0);
STICKLINE(涨停,O,C,1,0),coloryellow;
ZDF:=(C-REF(C,1))/REF(C,1)*100;
STICKLINE(ZDF<-9.9,O,C,1,0),colorblue;
M:=100*(C-REF(C,1))/REF(C,1);
今小昨:=IF(C<REF(O,1) AND M<0,1,0);
P1:=今小昨;
今小前:=IF(C<REF(O,2) AND M<0,1,0);
P2:=今小前;
STICKLINE(P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1,OPEN,CLOSE,3,0),colormagenta;
E1:=BARSCOUNT(C);
AH:=HHV(H,200);
AL:=LLV(L,200);
B0:=(AH-AL)/40;
KB1:=H+B0;
KB2:=L-B0;
STICKLINE((E1+0)/34=FLOOR((E1+0)/34),KB2,KB2-3*B0,1,0),coloryellow,LINETHICK3;
DRAWTEXT((E1+0)/34=FLOOR((E1+0)/34),KB2-2*B0,'窗'),colorwhite;
V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
V2:=(1-7/100)*(DMA(CLOSE,V1));
V3:=(1+7/100)*(DMA(CLOSE,V1));
V5:=MA((LOW+HIGH+CLOSE)/3,5);