价量K线DRAWGBKlast(DATE>900101,strip(RGB(0,0,100),RGB(0,0,0),50));
C1:=EMA(INDEXC,500)/EMA(C,500);
大盘对应:INDEXC/C1,Color00ff00,POINTDOT,linethick5;
INDEXC/C1,DOTLINE;
;
A0:=(L+H+C*2)/4;
工作:=EMA(A0,14);
A1X:=(工作-REF(工作,1))/REF(工作,1)*100;
G:=BARSLAST(CROSS(A1X,0));
买入止损:REF(A0,G),COLOR00FFFF,DOTLINE;;
PARTLINE(买入止损,A1X>=0),LINETHICK4,ColorFF0090;
出货:1.36*MA(FORCAST(CLOSE,2),34),Color76FFC3,LINETHICK1;
高抛:1.175*MA(FORCAST(CLOSE,2),34),COLORRED,LINETHICK2;
低吸:0.812*MA(FORCAST(CLOSE,2),34),COLOR0077ff,LINETHICK1;
STICKLINE(V>REF(V,1) and o<=c,c,o,7,0),Color0000FF;{价涨量升}
STICKLINE(V>REF(V,1) and o<=c,h,l,0.5,0),Color0000FF;{价涨量升}
STICKLINE(V<REF(V,1) and o<=c,c,o,7,0),ColorFF00FF;{价涨量减}
STICKLINE(V<REF(V,1) and o<=c,h,l,0.5,0),ColorFF00FF;{价涨量减}
STICKLINE(V>REF(V,1) and o>=c ,c,o,7,0),Color00BB93;{价跌量升}
STICKLINE(V>REF(V,1) and o>=c ,c,o,3,0),Color00FFff;{价跌量升}
STICKLINE(V>REF(V,1) and o>=c ,h,l,0.5,0),Color00FFff;{价跌量升}
STICKLINE(V<REF(V,1) and o>=c ,c,o,7,0),Color00FF00;{价跌量减};
STICKLINE(V<REF(V,1) and o>=c ,h,l,0.5,0),Color00FF6F;{价跌量减};
DRAWTEXTABS(0,5,'(1),■价涨量升;'),Color0000FF,LINETHICK3;
DRAWTEXTABS(150,5,'(2),■价涨量减;'),ColorFF00FF,LINETHICK3;
DRAWTEXTABS(300,5,'(3),■价跌量升;'),Color00FFFF,LINETHICK3;
DRAWTEXTABS(450,5,'(4),■价跌量减;'),Color00FF00,LINETHICK3;
{00}
M4:WMA(C,4);
M9:WMA(C,9);
M18:WMA(C,18);
HH:=HHV(h,5)*0.95;
DRAWTEXTABS(5,105,'■(A),止损=买入价*0.95;'),Color00FF00,LINETHICK3;;
DRAWTEXTABS(5,145,'■(B),止盈(五日内最高价*0.95)='+NUMTOSTRN(HH,2)+'元'),Color0000FF,LINETHICK3;
DRAWTEXTABS(5,125,'■(C)五日内最高价='+NUMTOSTRN(HHV(h,5),2)+'元'),Color0099FF,LINETHICK3;
Var12:=IF(YEAR>=2028 AND MONTH>=1,0,1);
顶部:COST(96)*Var12,DOTLINE;
a:=wma(c,4);
b:=wma(c,9);
f:=wma(c,18);
均线金叉:BARSLAST(b>a),PRECIS0,ColorFFFFFF,LINETHICK0;
DRAWTEXTABS(5,25,'■(1),4日与9日均线金叉应准备进场已:'+NUMTOSTRN(均线金叉,0)+'天.'),Color00ffff,LINETHICK2;
金叉:BARSLAST(f>a),PRECIS0,ColorFFFFFF,LINETHICK0;
DRAWTEXTABS(300,25,'■4与18日均线金叉已:'+NUMTOSTRN(金叉,0)+'天.'),Color00ffff,LINETHICK2;
DRAWICON(CROSS(f,a),f*1.06,6);
均线死叉:BARSLAST(b<a),PRECIS0,ColorFFFFFF,LINETHICK0;
DRAWTEXTABS(5,45,'■4日均线与9日均线死叉应离场已:'+NUMTOSTRN(均线死叉,0)+'天.'),Color00B2F8,LINETHICK3;
均线死叉f:BARSLAST(f<b),PRECIS0,ColorFFFFFF,LINETHICK0;
DRAWTEXTABS(5,65,'■(2),9日均线与18日均线死叉当应天空仓已:'+NUMTOSTRN(均线死叉f,0)+'天.'),Color00ff00,LINETHICK3;
顶部线死叉:BARSLAST(c>顶部),PRECIS0,ColorFFFFFF,LINETHICK0;
DRAWTEXTABS(5,85,'■顶部线与收盘价死叉已下跌了:'+NUMTOSTRN(顶部线死叉,0)+'天.'),Color0000FF,LINETHICK3; |