N:=10;
M:=3;
VAR1:=IF(DATE<=1300101,1,0);CV:=CLOSE;
人龙:(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4*VAR1;
天龙:人龙+M*STD(人龙,N)*VAR1;
地龙:人龙-M*STD(人龙,N)*VAR1;
STICKLINE(C>天龙AND L<地龙,C,O,3,0)*VAR1,COLORYELLOW;
DRAWTEXT(C>天龙AND L<地龙,LOW*0.98,'突击买入')*VAR1,COLORYELLOW;
STICKLINE(H>天龙AND H*0.95>C AND C<O,C,O,3,0)*VAR1,COLORRED;
DRAWTEXT(H>天龙AND H*0.95>C AND C<O ,HIGH*0.98,'减仓')*VAR1,COLORRED;
STICKLINE(H>天龙AND C<地龙,C,O,3,0)*VAR1,COLORWHITE;
DRAWTEXT(H>天龙AND C<地龙,LOW*0.98,'继续卖')*VAR1,COLORWHITE;