支撑压力 主图源码介绍
支撑压力 主图源码
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6,NODRAW;
MA1:MA(MID,8),COLORWHITE,NODRAW;
MA2:MA(MID,13),COLORFFCCCC,NODRAW;
MA3:MA(MID,21),COLORFFCC66,NODRAW;
MA60:MA(MID,55),LINETHICK8,NODRAW;
MA144:MA(MID,144),LINETHICK2,NODRAW;
MA233:MA(MID,233),LINETHICK2,NODRAW;
乖离线:=((C-REF(MA1,1))/20+MA1)*1.20;
回调认同:EMA(EXPMA(MID,20),13),COLORRED,LINETHICK3;
V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
V2:=(1-9/100)*(DMA(CLOSE,V1));
V3:=(1+7/100)*(DMA(CLOSE,V1));
V5:=MA((LOW+HIGH+CLOSE)/3,5);
支撑K:REFDATE(V2,DATE),LINETHICK4,COLORCC66FF,COLORGRAY,COLORBLUE;
低:=REF(LLV(L,2),2);
低点:REFDATE(低,DATE),COLORRED,LINETHICK2,COLORYELLOW,COLORCYAN;
DRAWTEXT(ISLASTBAR,低,'【底】'),LINETHICK2,COLORYELLOW,COLORCYAN;
短期:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
中期:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
中长期:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
长期:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
XG1:=短期<20 AND 长期>60;
DRAWICON(XG1,L*0.98,1);
DRAWTEXT(XG1,L*0.95,'回调介入'),COLOR0000FF,LINETHICK2;
gd25511