gspt1:=EMA(C,7);
gspt2:=EMA(C,21);
gspt3:=EMA(gspt1,2);
gspt4:=EMA(gspt2,2);
gspt5:=REF(gspt3-gspt4,1);
gspt6:=(0.668*gspt5+0.333*(gspt3-gspt4));
gspt7:=gspt3-gspt4;
gspt8:=EMA(gspt6,1);
gspt9:=gspt7>=gspt8;
gspt10:=gspt8< 0;
gspt11:=gspt8< REF(gspt8,1);
游资潜伏:=gspt8>0;
gspt牛:=gspt8>REF(gspt8,1);
楚河汉界:0,COLORBLUE,LINETHICK3;
多头:IF(gspt9,gspt7,gspt8),LINETHICK3,COLORRED;
空头:gspt8,LINETHICK2,COLORGREEN;{www.70822.com}
STICKLINE(gspt10 AND gspt11,gspt8*0.7,0,0.05,0),COLORMAGENTA;
STICKLINE(gspt10 AND gspt牛,gspt8*0.7,0,0.05,0),COLORWHITE;
STICKLINE(gspt牛 AND 游资潜伏,gspt8*0.7,0,0.05,0),COLORMAGENTA;
STICKLINE(gspt11 AND 游资潜伏,gspt8*0.7,0,0.05,0),COLORCYAN;
DRAWTEXT(gspt10 AND gspt牛 AND REF(gspt10 AND gspt11,1) AND REF(gspt10 AND gspt11,2) AND REF(gspt10 AND gspt11,3) AND 多头<=0 AND MA(C,5)>REF(MA(C,5),1),多头,'多'),COLORYELLOW;
DRAWTEXT(gspt牛 AND 游资潜伏 AND REF(gspt11 AND 游资潜伏,1) AND REF(gspt11 AND 游资潜伏,2) AND REF(gspt11 AND 游资潜伏,3) AND 多头>=0 AND MA(C,5)>REF(MA(C,5),1),多头,'多'),COLORYELLOW;
DRAWICON(gspt10 AND gspt牛 AND REF(gspt10 AND gspt11,1) AND REF(gspt10 AND gspt11,2) AND REF(gspt10 AND gspt11,3) AND 多头<=0 AND MA(C,5)>REF(MA(C,5),1),多头,5);
DRAWICON(gspt牛 AND 游资潜伏 AND REF(gspt11 AND 游资潜伏,1) AND REF(gspt11 AND 游资潜伏,2) AND REF(gspt11 AND 游资潜伏,3) AND 多头>=0 AND MA(C,5)>REF(MA(C,5),1),多头,5);