九毛八公式指标
公式模块:
N:1,10,5;}
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA20:MA(CLOSE,20);
MA30:MA(CLOSE,30);
MA120:MA(CLOSE,120);
MA250:MA(CLOSE,250),COLORRED;
DTPL:=MA10>MA30 AND MA20>MA30 AND MA30>REF(MA30,1);
突破线:MIN(MA20*1.05,MA30*1.1),COLOR0066FF,POINTDOT;
差幅:=C/MIN(MA20*1.05,MA30*1.1)-1,COLOR0066FF,POINTDOT;
均线流:=(DTPL AND MA5>MA30 AND MA5<MA10)*-0.1,COLOR00FF00,POINTDOT,LINETHICK0;
偏离率:=(C<MIN(MA20*1.05,MA30*1.1) AND C>MA30)*0.1,COLORFF00FF,POINTDOT,LINETHICK0;
BDGD:=C=HHV(C,20);
GDSJ:=BArslAST(BDGD);
REF(C,GDSJ),COLOR00FF00,POINTDOT;
{C/REF(C,GDSJ)-1,COLOR00FF00,POINTDOT;}
目标:IF(均线流=-0.1 AND 偏离率=0.1 AND GDSJ>=N,0.8,0),COLORWHITE,POINTDOT,LINETHICK0;
MBSJ:=BARSLAST(目标=0.8);
TP1:=crOSS(C,MIN(MA20*1.05,MA30*1.1)) AND REF(GDSJ,1)>=N;
TP2:=偏离率=0 AND REF(COUNT(偏离率=0.1,N)=N,1) AND C>REF(C,1);
突破:(TP1 OR TP2)*1,COLOR00FFFF,POINTDOT,LINETHICK0;
QSXS1:=MA5>REF(MA5,1);
LYHT:=DTPL AND MA5>MA10 AND NOT(QSXS1) AND REF(QSXS1,1);
MAV5:=EMA(V,5);
MAV10:=EMA(V,10);
LNmacd:=((V-MAV5)/MAV5*2+(V-MAV10)/MAV10)*10;
量坑:=LNMacD<=-10;
优选:目标 AND COUNT(量坑,3)>=1,COLORFF00FF,POINTDOT,LINETHICK0;
{以下设置主图显示方式}
{STICKLINE(均线流=-0.1,0,-0.2,5,1),color00FF00;
STICKLINE(偏离率=0.1,0,0.2,5,1),colorFF00FF;}
DRAWTEXT(目标=0.8,l,'△'),colorFFFFFF;
DRAWTEXT(突破,l,'★'),coloryellow;
{DRAWTEXT(突破,0,'突●破'),color00FFFF;}
DRAWTEXT(LYHT,(MA10+MA20)/2, '●'),COLORFF00FF;
DRAWTEXT(LYHT,(MA10+MA20)/2, '¤'),COLORFF00FF;
DRAWICON(优选,L,1); {N:1,10,5;}
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA20:MA(CLOSE,20);
MA30:MA(CLOSE,30);
MA120:MA(CLOSE,120);
MA250:MA(CLOSE,250),COLORRED;
DTPL:=MA10>MA30 AND MA20>MA30 AND MA30>REF(MA30,1);
突破线:MIN(MA20*1.05,MA30*1.1),COLOR0066FF,POINTDOT;
差幅:=C/MIN(MA20*1.05,MA30*1.1)-1;
均线流:=(DTPL AND MA5>MA30 AND MA5<MA10)*-0.1;
偏离率:=(C<MIN(MA20*1.05,MA30*1.1) AND C>MA30)*0.1;
BDGD:=C=HHV(C,20);
GDSJ:=BARSLAST(BDGD);
REF(C,GDSJ),COLOR00FF00,POINTDOT;
目标:IF(均线流=-0.1 AND 偏离率=0.1 AND GDSJ>=5,0.8,0),COLORWHITE,POINTDOT,LINETHICK0;
MBSJ:=BARSLAST(目标=0.8);
TP1:=CROSS(C,MIN(MA20*1.05,MA30*1.1)) AND REF(GDSJ,1)>=5;
TP2:=偏离率=0 AND REF(COUNT(偏离率=0.1,5)=5,1) AND C>REF(C,1);
突破:(TP1 OR TP2)*1,COLOR00FFFF,POINTDOT,LINETHICK0;
QSXS1:=MA5>REF(MA5,1);
LYHT:=DTPL AND MA5>MA10 AND NOT(QSXS1) AND REF(QSXS1,1);
MAV5:=EMA(V,5);
MAV10:=EMA(V,10);
LNMACD:=((V-MAV5)/MAV5*2+(V-MAV10)/MAV10)*10;
量坑:=LNMACD<=-10;
优选:目标 AND COUNT(量坑,3)>=1,COLORFF00FF,POINTDOT,LINETHICK0;
{以下设置主图显示方式}
{STICKLINE(均线流=-0.1,0,-0.2,5,1),color00FF00;
STICKLINE(偏离率=0.1,0,0.2,5,1),colorFF00FF;}
DRAWTEXT(目标=0.8,l,'△'),colorFFFFFF;
DRAWTEXT(突破,l,'★'),coloryellow;
{DRAWTEXT(突破,0,'突●破'),color00FFFF;}
DRAWTEXT(LYHT,(MA10+MA20)/2, '●'),COLORFF00FF;
DRAWTEXT(LYHT,(MA10+MA20)/2, '¤'),COLORFF00FF;
DRAWICON(优选,L,1);