ma5:ma(close,5),linethick1,colorffffff;ma10:ma(close,10),linethick1,color00ffff;
ma30:ma(close,30),linethick1,colorff00ff;ma60:ma(close,60),linethick1,color0000ff;
ma120:ma(close,120),linethick1,colorffff00;
drawtext(cross(ema(close,2),ema(((slope(close,21)*20)+close),42)),(low*0.99),'买'),linethick3,colorf00ff0;
drawtext(cross(ema(((slope(close,21)*20)+close),42),ema(close,2)),(high* 1.01),'卖'),linethick3,colorffffff;
stickline((ema(close,2) >=ema(((slope(close,21)*20)+close),42)),low,high,0.1,0),color0000ff;
stickline((ema(close,2)>=ema(((slope(close,21)*20)+close),42)),close,open,3,0),color0000aa;
stickline((ema(close,2)>=ema(((slope(close,21)*20)+close),42)),close,open,2,0),color0000cc;
stickline((ema(close,2)<ema(((slope(close,21)*20)+close),42)),close,open,2,0),colorcccc00;
stickline((ema(close,2)<ema(((slope(close,21)*20)+close),42)),close,open,3,0),coloraaaa00;
stickline((ema(close,2)<ema(((slope(close,21)*20)+close),42)),low,high,0.1,0),colorffff00;
stickline((cross(ema(close,2),ema(((slope(close,21)*20)+close),42))or cross(ema(((slope(close,21)*20)+close),42),ema(close,2))),low,high,0.1,0),color00ffff;
stickline((cross(ema(close,2),ema(((slope(close,21)*20)+close),42))or cross(ema(((slope(close,21)*20)+close),42),ema(close,2))),open,close,3,0),color00aaaa;
stickline((cross(ema(close,2),ema(((slope(close,21)*20)+close),42))or cross(ema(((slope(close,21)*20)+close),42),ema(close,2))),open,close,2,0),color00cccc;