ROC:(CLOSE-REF(CLOSE,13))/REF(CLOSE,13)*100,colorred;
MAROC:MA(ROC,21),coloryellow;
工作线:=ROC;
生命线:=MAROC;
买卖差:=工作线-生命线;
买线:=工作线;
卖线:=生命线;
STICKLINE(买卖差>=0,(买线-买卖差*0.05),(买线-买卖差*0.15),3,0) ,COLOR00ffff;
STICKLINE(买卖差>=0,(买线-买卖差*0.2),(买线-买卖差*0.35),3,0) ,COLOR00ccff;
STICKLINE(买卖差>=0,(买线-买卖差*0.4),(买线-买卖差*0.55),3,0) ,COLOR0099ff;
STICKLINE(买卖差>=0,(买线-买卖差*0.6),(买线-买卖差*0.75),3,0) ,COLOR0066ff;
STICKLINE(买卖差>=0,(买线-买卖差*0.8),(买线-买卖差*0.95),3,0) ,COLOR0000cc;
STICKLINE(买卖差<0,(卖线+买卖差*0.05),(卖线+买卖差*0.15),3,0) ,COLOR006600;
STICKLINE(买卖差<0,(卖线+买卖差*0.2),(卖线+买卖差*0.35),3,0) ,COLOR009900;
STICKLINE(买卖差<0,(卖线+买卖差*0.4),(卖线+买卖差*0.55),3,0) ,COLOR00cc00;
STICKLINE(买卖差<0,(卖线+买卖差*0.6),(卖线+买卖差*0.75),3,0) ,COLOR00ff00;
STICKLINE(买卖差<0,(卖线+买卖差*0.8),(卖线+买卖差*0.95),3,0) ,COLOR66ff00;
买点:=CROSS(ROC,MAROC);
卖点:=CROSS(MAROC,ROC);
DRAWTEXT( 买点 ,1.3*生命线,'买'),coloryellow;
STICKLINE( 买点 ,工作线,生命线,4,0),colorwhite;
DRAWTEXT(卖点 ,1.3*生命线,'卖'),colorwhite;
STICKLINE(卖点 ,工作线,生命线,4,0),colorwhite;