主图指标:
QQ1:=ABS(CLOSE-REF(CLOSE,18));
QQ2:=SUM(ABS(CLOSE-REF(CLOSE,1)),18);
QQ3:=QQ1/QQ2;
QQ4:=QQ3*(2/3-2/19)+2/19;
QQ5:=QQ4*QQ4;
MAN:=EMA(DMA(CLOSE,QQ5),2);
STICKLINE(PERIOD=7 AND COUNT(MAN>=REF(MAN,1)AND C>=MAN,3)>=2,MAN,MAN*1.680,4.2,0),COLOR000050;
STICKLINE(PERIOD=7 AND NOT(COUNT(MAN>=REF(MAN,1)AND C>=MAN,3)>=2),MAN,MAN*1.680,4.2,0),COLOR2F4F2F;
STICKLINE(PERIOD=6 AND COUNT(MAN>=REF(MAN,1)AND C>=MAN,3)>=2,MAN,MAN*1.382,4.2,0),COLOR000050;
STICKLINE(PERIOD=6 AND NOT(COUNT(MAN>=REF(MAN,1)AND C>=MAN,3)>=2),MAN,MAN*1.382,4.2,0),COLOR2F4F2F;
STICKLINE(PERIOD=5 AND COUNT(MAN>=REF(MAN,1)AND C>=MAN,3)>=2,MAN,MAN*1.110,4.2,0),COLOR000050;
STICKLINE(PERIOD=5 AND NOT(COUNT(MAN>=REF(MAN,1)AND C>=MAN,3)>=2),MAN,MAN*1.110,4.2,0),COLOR2F4F2F;
STICKLINE(PERIOD=4 AND COUNT(MAN>=REF(MAN,1)AND C>=MAN,3)>=2,MAN,MAN*1.089,4.2,0),COLOR000050;
STICKLINE(PERIOD=4 AND NOT(COUNT(MAN>=REF(MAN,1)AND C>=MAN,3)>=2),MAN,MAN*1.089,4.2,0),COLOR2F4F2F;
STICKLINE(PERIOD=3 AND COUNT(MAN>=REF(MAN,1)AND C>=MAN,3)>=2,MAN,MAN*1.068,4.2,0),COLOR000050;
STICKLINE(PERIOD=3 AND NOT(COUNT(MAN>=REF(MAN,1)AND C>=MAN,3)>=2),MAN,MAN*1.068,4.2,0),COLOR2F4F2F;
STICKLINE(PERIOD=2 AND COUNT(MAN>=REF(MAN,1)AND C>=MAN,3)>=2,MAN,MAN*1.043,4.2,0),COLOR000050;
STICKLINE(PERIOD=2 AND NOT(COUNT(MAN>=REF(MAN,1)AND C>=MAN,3)>=2),MAN,MAN*1.043,4.2,0),COLOR2F4F2F;
STICKLINE(PERIOD=1 AND COUNT(MAN>=REF(MAN,1)AND C>=MAN,3)>=2,MAN,MAN*1.017,4.2,0),COLOR000050;
STICKLINE(PERIOD=1 AND NOT(COUNT(MAN>=REF(MAN,1)AND C>=MAN,3)>=2),MAN,MAN*1.017,4.2,0),COLOR2F4F2F;
STICKLINE(PERIOD=0 AND COUNT(MAN>=REF(MAN,1)AND C>=MAN,3)>=2,MAN,MAN*1.009,4.2,0),COLOR000050;
STICKLINE(PERIOD=0 AND NOT(COUNT(MAN>=REF(MAN,1)AND C>=MAN,3)>=2),MAN,MAN*1.009,4.2,0),COLOR2F4F2F;
STICKLINE(PERIOD=8 AND COUNT(MAN>=REF(MAN,1)AND C>=MAN,3)>=2,MAN,MAN*1.037,4.2,0),COLOR000050;
STICKLINE(PERIOD=8 AND NOT(COUNT(MAN>=REF(MAN,1)AND C>=MAN,3)>=2),MAN,MAN*1.037,4.2,0),COLOR2F4F2F;
STICKLINE(PERIOD=9 AND COUNT(MAN>=REF(MAN,1)AND C>=MAN,3)>=2,MAN,MAN*2.168,4.2,0),COLOR000050;
STICKLINE(PERIOD=9 AND NOT(COUNT(MAN>=REF(MAN,1)AND C>=MAN,3)>=2),MAN,MAN*2.168,4.2,0),COLOR2F4F2F;
DRAWKLINE(H,O,L,C);
IF(PERIOD=0,MAN*1.009,DRAWNULL),COLORYELLOW;
IF(PERIOD=1,MAN*1.017,DRAWNULL),COLORYELLOW;
IF(PERIOD=2,MAN*1.043,DRAWNULL),COLORYELLOW;
IF(PERIOD=3,MAN*1.068,DRAWNULL),COLORYELLOW;
IF(PERIOD=3,MAN*1.027,DRAWNULL),COLOR3399FF;
IF(PERIOD=4,MAN*1.089,DRAWNULL),COLORYELLOW;
IF(PERIOD=4,MAN*1.038,DRAWNULL),COLOR3399FF;
IF(PERIOD=5,MAN*1.110,DRAWNULL),COLORYELLOW;
IF(PERIOD=5,MAN*1.0618,DRAWNULL),COLOR3399FF;
IF(PERIOD=6,MAN*1.382,DRAWNULL),COLORYELLOW;
IF(PERIOD=6,MAN*1.168,DRAWNULL),COLOR3399FF;
IF(PERIOD=7,MAN*1.680,DRAWNULL),COLORYELLOW;
IF(PERIOD=7,MAN*1.268,DRAWNULL),COLOR3399FF;
IF(MAN>=REF(MAN,1)AND C>=MAN,MAN,DRAWNULL),COLORYELLOW,LINETHICK2,CIRCLEDOT;
IF(MAN>=REF(MAN,1),MAN,DRAWNULL),COLORRED,LINETHICK2;
IF(MAN<REF(MAN,1),MAN,DRAWNULL),COLORGREEN,LINETHICK1;
IF(MAN<REF(MAN,1),MAN,DRAWNULL),COLORGREEN,LINETHICK4,POINTDOT;
IF(PERIOD=0 AND MAN*1.009>=REF(MAN*1.009,1),MAN*1.009,DRAWNULL),COLORRED,LINETHICK2;
IF(PERIOD=0 AND MAN*1.009>=REF(MAN*1.009,1)AND C>=MAN*1.009,MAN*1.009,DRAWNULL),COLORYELLOW,LINETHICK2,CIRCLEDOT;
IF(PERIOD=0 AND MAN*1.009<REF(MAN*1.009,1),MAN*1.009,DRAWNULL),COLORGREEN,LINETHICK1;
IF(PERIOD=0 AND MAN*1.009<REF(MAN*1.009,1),MAN*1.009,DRAWNULL),COLORGREEN,LINETHICK4,POINTDOT;
IF(PERIOD=1 AND MAN*1.017>=REF(MAN*1.017,1),MAN*1.017,DRAWNULL),COLORRED,LINETHICK2;
IF(PERIOD=1 AND MAN*1.017>=REF(MAN*1.017,1)AND C>=MAN*1.017,MAN*1.017,DRAWNULL),COLORYELLOW,LINETHICK2,CIRCLEDOT;
IF(PERIOD=1 AND MAN*1.017<REF(MAN*1.017,1),MAN*1.017,DRAWNULL),COLORGREEN,LINETHICK1;
IF(PERIOD=1 AND MAN*1.017<REF(MAN*1.017,1),MAN*1.017,DRAWNULL),COLORGREEN,LINETHICK4,POINTDOT;
IF(PERIOD=2 AND MAN*1.034>=REF(MAN*1.043,1),MAN*1.043,DRAWNULL),COLORRED,LINETHICK2;
IF(PERIOD=2 AND MAN*1.034>=REF(MAN*1.043,1)AND C>=MAN*1.043,MAN*1.043,DRAWNULL),COLORYELLOW,LINETHICK2,CIRCLEDOT;
IF(PERIOD=2 AND MAN*1.034<REF(MAN*1.043,1),MAN*1.043,DRAWNULL),COLORGREEN,LINETHICK1;
IF(PERIOD=2 AND MAN*1.034<REF(MAN*1.043,1),MAN*1.043,DRAWNULL),COLORGREEN,LINETHICK4,POINTDOT;
IF(PERIOD=3 AND MAN*1.068>=REF(MAN*1.068,1),MAN*1.068,DRAWNULL),COLORRED,LINETHICK2;
IF(PERIOD=3 AND MAN*1.068>=REF(MAN*1.068,1)AND C>=MAN*1.068,MAN*1.068,DRAWNULL),COLORYELLOW,LINETHICK2,CIRCLEDOT;
IF(PERIOD=3 AND MAN*1.068<REF(MAN*1.068,1),MAN*1.068,DRAWNULL),COLORGREEN,LINETHICK1;
IF(PERIOD=3 AND MAN*1.068<REF(MAN*1.068,1),MAN*1.068,DRAWNULL),COLORGREEN,LINETHICK4,POINTDOT;
IF(PERIOD=4 AND MAN*1.089>=REF(MAN*1.089,1),MAN*1.089,DRAWNULL),COLORRED,LINETHICK2;
IF(PERIOD=4 AND MAN*1.089>=REF(MAN*1.089,1)AND C>=MAN*1.089,MAN*1.089,DRAWNULL),COLORYELLOW,LINETHICK2,CIRCLEDOT;
IF(PERIOD=4 AND MAN*1.089<REF(MAN*1.089,1),MAN*1.089,DRAWNULL),COLORGREEN,LINETHICK1;
IF(PERIOD=4 AND MAN*1.089<REF(MAN*1.089,1),MAN*1.089,DRAWNULL),COLORGREEN,LINETHICK4,POINTDOT;
IF(PERIOD=5 AND MAN*1.110>REF(MAN*1.110,1),MAN*1.110,DRAWNULL),COLORRED,LINETHICK2;
IF(PERIOD=5 AND MAN*1.110>REF(MAN*1.110,1)AND C>=MAN*1.110,MAN*1.110,DRAWNULL),COLORYELLOW,LINETHICK2,CIRCLEDOT;
IF(PERIOD=5 AND MAN*1.110<REF(MAN*1.110,1),MAN*1.110,DRAWNULL),COLORGREEN,LINETHICK1;
IF(PERIOD=5 AND MAN*1.110<REF(MAN*1.110,1),MAN*1.110,DRAWNULL),COLORGREEN,LINETHICK4,POINTDOT;
DRAWICON(PERIOD=5 AND MAN*1.110>REF(MAN*1.110,1)AND C>=MAN*1.110,MAN*1.110,17);
IF(PERIOD=6 AND MAN*1.382>=REF(MAN*1.382,1),MAN*1.382,DRAWNULL),COLORRED,LINETHICK2;
IF(PERIOD=6 AND MAN*1.382>=REF(MAN*1.382,1)AND C>=MAN*1.382,MAN*1.382,DRAWNULL),COLORYELLOW,LINETHICK2,CIRCLEDOT;
IF(PERIOD=6 AND MAN*1.382<REF(MAN*1.382,1),MAN*1.382,DRAWNULL),COLORGREEN,LINETHICK1;
IF(PERIOD=6 AND MAN*1.382<REF(MAN*1.382,1),MAN*1.382,DRAWNULL),COLORGREEN,LINETHICK4,POINTDOT;
DRAWICON(PERIOD=6 AND MAN*1.382>=REF(MAN*1.382,1)AND C>=MAN*1.382,MAN*1.382,17);
IF(PERIOD=7 AND MAN*1.680>=REF(MAN*1.680,1),MAN*1.680,DRAWNULL),COLORRED,LINETHICK2;
IF(PERIOD=7 AND MAN*1.680>=REF(MAN*1.680,1)AND C>=MAN*1.680,MAN*1.680,DRAWNULL),COLORYELLOW,LINETHICK2,CIRCLEDOT;
IF(PERIOD=7 AND MAN*1.680<REF(MAN*1.680,1),MAN*1.680,DRAWNULL),COLORGREEN,LINETHICK1;
IF(PERIOD=7 AND MAN*1.680<REF(MAN*1.680,1),MAN*1.680,DRAWNULL),COLORGREEN,LINETHICK4,POINTDOT;
IF(PERIOD=8 AND MAN*1.037>=REF(MAN*1.037,1),MAN*1.037,DRAWNULL),COLORRED,LINETHICK2;
IF(PERIOD=8 AND MAN*1.037>=REF(MAN*1.037,1)AND C>=MAN*1.037,MAN*1.037,DRAWNULL),COLORYELLOW,LINETHICK2,CIRCLEDOT;
IF(PERIOD=8 AND MAN*1.037<REF(MAN*1.037,1),MAN*1.037,DRAWNULL),COLORGREEN,LINETHICK1;
IF(PERIOD=8 AND MAN*1.037<REF(MAN*1.037,1),MAN*1.037,DRAWNULL),COLORGREEN,LINETHICK4,POINTDOT;
IF(PERIOD=9 AND MAN*1.680>=REF(MAN*2.1680,1),MAN*2.1680,DRAWNULL),COLORRED,LINETHICK2;
IF(PERIOD=9 AND MAN*1.680>=REF(MAN*2.1680,1)AND C>=MAN*2.1680,MAN*2.1680,DRAWNULL),COLORYELLOW,LINETHICK2,CIRCLEDOT;
IF(PERIOD=9 AND MAN*1.680<REF(MAN*2.1680,1),MAN*2.1680,DRAWNULL),COLORGREEN,LINETHICK1;
IF(PERIOD=9 AND MAN*1.680<REF(MAN*2.1680,1),MAN*2.1680,DRAWNULL),COLORGREEN,LINETHICK4,POINTDOT;
{盘中及时发现涨停}
STICKLINE(C/REF(C,1)>=1.09,O,C,3.2,0),COLOR0033FF;
STICKLINE(C/REF(C,1)>=1.09,O,C,2.8,0),COLOR0055FF;
STICKLINE(C/REF(C,1)>=1.09,O,C,2.4,0),COLOR0077FF;
STICKLINE(C/REF(C,1)>=1.09,O,C,2.0,0),COLOR0099FF;
STICKLINE(C/REF(C,1)>=1.09,O,C,1.6,0),COLOR00AAFF;
STICKLINE(C/REF(C,1)>=1.09,O,C,0.8,0),COLOR00CCFF;
STICKLINE(C/REF(C,1)>=1.09,O,C,0.4,0),COLOR00DDFF;
STICKLINE(C/REF(C,1)>=1.09,O,C,0.0,0),COLOR00EEFF;
{警示牌设置}
警示牌:=1;
高:=REFDATE(HHV(H,180),DATE)*1.05;
低:=REFDATE(LLV(L,180),DATE)*0.95;
A14:=IF((MA(C,180)<=高 AND MA(C,180)>=低) OR C>=MA(C,180),MA(C,180),DRAWNULL);
{—————股性判断—————}
牛果果:=ISLASTBAR AND PERIOD=5 AND MAN*1.110>REF(MAN*1.110,1)AND C>=MAN*1.110;
牛小果:=ISLASTBAR AND PERIOD=5 AND MAN>REF(MAN,1)AND C<MAN*1.110 AND C>=MAN;
DRAWGBK(警示牌=1 AND 牛果果 ,0,0,0,'牛果果',0);
DRAWGBK(警示牌=1 AND 牛小果 ,0,0,0,'牛小果',0);
DRAWRECTREL(0,880,185,999,118);
DRAWTEXT_FIX(1,0.0,0.910,0,'★红色做多,绿色做空,果多牛大,无果不做'),COLORYELLOW;
副图指标:
DDIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DDEA:=EMA(DDIFF,9);MMACD:=(DDIFF-DDEA)*2;低位金叉:=CROSS(DDIFF,DDEA) AND DDIFF<-0.1;二次金叉1:=CROSS(DDIFF,DDEA) AND DDEA<0 AND COUNT(低位金叉,21)=2;TJ1:=低位金叉 OR 二次金叉1;LJPK:=(C+H+O+L)/4;MCC:=XMA(LJPK,20)*(1+80/1000);MRR:=XMA(LJPK,32)*(1-100/1000);ZXX:=(MCC+MRR)/2;ZXA:=(MRR+ZXX)/2;TJ2:=REF(L,1)<ZXA;TJ3:=TJ2 AND COUNT(TJ2,6)>=6;DRAWTEXT_FIX(C>O,0,0.2,0,'更多实用手机指标公式,请关注微信公众号:指标大集'),COLORMAGENTA;MA5:=MA(C,5);MA10:=MA(C,10);MA17:=MA(C,17);MA20:=MA(C,20);MA24:=MA(C,24);MA30:=MA(C,30);MA43:=MA(C,43);MA72:=MA(C,72);MA200:=MA(C,200);TJ4:=MA5>=MA24 AND MA24>=MA72 AND MA72>=MA200;TJ5:=MA10>=MA30 AND MA20>=MA30;TJ7:=TJ4 OR TJ5;TJ8:=REF(C,1)/REF(C,5)<=1.1 AND C>=MA(C,24) AND EXIST(V/REF(V,1)>=2,5) AND C>REF(C,1);百岁必涨底:(TJ3 AND TJ8);DRAWICON(百岁必涨底,2.5,27);DRAWICON(百岁必涨底,2.0,26);DRAWICON(百岁必涨底,1.5,25);
发表评论