{主图}
MA5:MA(CLOSE,5);
MA30:MA(CLOSE,30);
MA60:MA(CLOSE,60);
MA120:MA(CLOSE,120);
MA250:MA(CLOSE,250);
回踩120:=REF(C,1)<=MA120 AND CROSS(C,MA120) AND REF(C,5)>MA120;
回踩250:=REF(C,1)<=MA250 AND CROSS(C,MA250) AND REF(C,5)>MA250;
新高:=C=HHV(H,250);
DRAWTEXT(ABS(新高)>0,H*1.02, 'H新高'),COLORYELLOW;
DRAWTEXT(ABS(回踩120)>0,L*0.98, '踩120'),COLORYELLOW;
DRAWTEXT(ABS(回踩250)>0,L*0.98, '踩250'),COLORFF00FF;
STICKLINE(回踩120,CLOSE,OPEN,3.0,0),COLOR00FFFF;
STICKLINE(回踩250,OPEN,(CLOSE-0.03),3.0,0),COLORFF00FF;
STICKLINE(新高,OPEN+0.2,(CLOSE-0.2),1.0,0),COLOR00FF00;
====================================
{选股}
MA120:=MA(CLOSE,120);
MA250:=MA(CLOSE,250);
回踩120:=REF(C,1)<=MA120 AND CROSS(C,MA120) AND REF(C,5)>MA120;
回踩250:=REF(C,1)<=MA250 AND CROSS(C,MA250) AND REF(C,5)>MA250;
XG:回踩120 OR 回踩250 ;
748100291.JPG
|