源码
现价:C;
底部: COST(5),coloryellow;
买入: COST(30),colorred;
卖出: COST(75),colorgreen;
顶部: COST(95),COLORFF00FF;
AA:=(CROSS(C,COST(5)));
AA2:=(CROSS(COST(5),C));
BB:=(CROSS(C,COST(30)));
BB2:=(CROSS(COST(30),C));
CC:=(CROSS(C,COST(75)));
CC2:=(CROSS(COST(75),C));
DD:=(CROSS(C,COST(95)));
DD2:=(CROSS(COST(95),C));
底部关注:BETWEEN(C,COST(5),COST(30)) AND AA<AA2 AND AA<BB2;
开始建仓:BETWEEN(C,COST(30),COST(75)) AND BB<BB2 AND BB<CC2;
拉升待涨:BETWEEN(C,COST(75),COST(95)) AND CC<CC2 AND CC<DD2;
冲顶阶段:C>=COST(95) AND DD<DD2;
破顶减仓:BETWEEN(C,COST(95),COST(75)) AND DD>DD2 AND CC>DD2;
走弱出局:BETWEEN(C,COST(75),COST(30)) AND CC>CC2 AND BB>CC2;
弱市观望:BETWEEN(C,COST(30),COST(5)) AND BB>BB2 AND AA>BB2;
赶底不碰:C<=COST(5) AND AA>AA2;
DRAWTEXT(底部关注,COST(50),'▲股价见底,开始关注!'),COLORFFFFFF;
DRAWTEXT(开始建仓,COST(50),'■股价走强,开始建仓!'),COLOR00FFFF;
DRAWTEXT(拉升待涨,COST(50),'★股价拉升,持股待涨!'),COLOR0000FF;
DRAWTEXT(冲顶阶段,COST(50),'●冲顶阶段,注意风险!'),COLORFF00FF;
DRAWTEXT(破顶减仓,COST(50),'□股价破顶,开始减仓!'),COLOR00FF00;
DRAWTEXT(走弱出局,COST(50),'◇股价走弱,清仓出局!'),COLOR00FF00;
DRAWTEXT(弱市观望,COST(50),'△弱市区域,观望为宜!'),COLORFFFF00;
DRAWTEXT(赶底不碰,COST(50),'○股价赶底,暂时不碰!'),COLORFFFF00;