源码
{参数:N:1,20,10;P:1,8,4;}
{斜面推高指标使用说明:
均线多头向上行,斜面出现好行情;
连续小幅在推高,及时买入享拉升!}
MA4:MA(C,4);
MA20:MA(C,20);
MA62:MA(C,62);
MA133:MA(C,133);
DTPL:=MA20>MA62 AND MA62>MA133 AND MA62>REF(MA62,1) AND MA133>REF(MA133,1);
DTSJ:=BARSLAST(CROSS(DTPL,0.1));
斜面:DTSJ*DTPL>0,COLOR00FFFF,POINTDOT,LINETHICK0;
ZF:=(C/REF(C,1)-1)*100;
WBTG:=COUNT(C>MA20 AND MA20>REF(MA20,1),3)=3;
LXXZ:=COUNT(ABS(ZF)<P,N)>=N-2;
推高:(LXXZ AND WBTG AND 斜面 AND COUNT(ZF>5,3)=0)*1,COLOR00FF00,POINTDOT,LINETHICK0;
BCXM:=COUNT(斜面,5)=5;
SL:=V<REF(V,1);
缩量:((COUNT(SL,5)>=3 OR COUNT(SL,6)>=4) AND SL AND V<MA(V,5))*1,COLORFFFFFF,POINTDOT,LINETHICK2;
优选:推高 AND BCXM AND 缩量,COLORFF00FF,POINTDOT,LINETHICK2;
{以下设置主图显示方式}
STICKLINE(斜面,MA62,(MA62+MA133)/2,4,0),COLOR00FFFF;
STICKLINE(斜面,MA133,(MA62+MA133)/2,4,0),COLORFF00FF;
STICKLINE(斜面 AND 缩量,(MA62+MA133)/2*1.005,(MA62+MA133)/2*0.995,4,1),COLORFFFFFF;
DRAWTEXT(推高,l,’△’),COLOR00FF00;
DRAWICON(优选,L,1);
评论(0)