《通达信布林彩k线指标公式.docx》由会员分享,可在线阅读,更多相关《通达信布林彩k线指标公式.docx(6页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、通达信布林彩k线指标公式_正点财经VAR1:=C=HHV(C,4)ANDREF(C,1)=LLV(C,4);VAR2:=C=LLV(C,4)AND(REF(C,1)REF(C,2)ORREF(C,1)REF(C,3)ORREF(C,1)=LLV(C,4)ANDCREF(C,2)ORREF(C,2)=LLV(C,4)ANDREF(C,1)=HHV(C,4)ANDCREF(C,1)ORREF(C,3)=LLV(C,4)ANDCREF(C,1)ANDCREF(C,2);VAR3:=REF(C,1)=LLV(C,4)ANDC=REF(C,2)ORREF(C,2)=LLV(C,4)ANDREF(C,1)
2、=REF(C,3)ANDREF(C,2)REF(C,4)ANDC=REF(C,1);A:=(3*C+L+O+H)/6;VAR4:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20)/21
3、0;MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);CB:=EMA(VAR4,13);红STICKLINE(CLOSE=OPEN,CLOSE,OPEN,3,0),COLOR0000FF;STICKLINE(CLOSE=OPEN,CLOSE,OPEN,0.5,0),COLORCC66FF;蓝STICKLINE(CLOSEOPEN,CLOSE,OPEN,3,0),COLORFF9900;STICKLINE(CLOSEOPEN,CLOSE,OPEN,0.5,0),COLORFFCC00;粉STICKLINE(VAR1,
4、C,(O+C)/2,3,0),COLORFF11FF;STICKLINE(VAR1,C,(O+C)/2,0.5,0),COLORFFDDFF;灰STICKLINE(VAR2,C,(O+C)/2,3,0),COLOR999999;STICKLINE(VAR2,C,(O+C)/2,0.5,0),COLORFFBBFF;绿STICKLINE(VAR3,O,(O+C)/2,3,0),COLOR00BB00;STICKLINE(VAR3,O,(O+C)/2,0.5,0),COLOR00FF00;卖:=HHV(DX,2)=HHV(DX,7)ANDCOUNT(DX50,2)ANDCROSS(MA(DX,2)
5、,DX);DRAWTEXT(FILTER(卖=1,1),HIGH*1.02,卖),COLORGREEN;买:=LLV(DX,2)=LLV(DX,7)ANDCOUNT(DX0,2)ANDCROSS(DX,MA(DX,2);DRAWTEXT(FILTER(买=1,5),LOW-0.01,买),COLORRED;加码:=SMA(EMA(C-REF(C,1)/REF(C,1),5)*100,3,1)*10;DRAWTEXT(FILTER(CROSS(加码,0)ORCROSS(CLOSE,CB)AND买=1,3),LOW-0.1,加),COLORWHITE;跟:=MA18=REF(MA18,3)ANDC
6、ROSS(CLOSE,MA18);DRAWTEXT(跟,LOW*0.96,跟),COLORCC66FF;MID:=MA(C,20);VART1:=POW(C-MID),2);VART2:=MA(VART1,20);VART3:=SQRT(VART2);UPPER:=MID+2*VART3;LOWER:=MID-2*VART3;BOLL:REF(MID,1),COLORFFFFFF;UB:REF(UPPER,1),COLOR00FFFF;LB:REF(LOWER,1),COLORFF00FF;BB:=VMA(V,5);DD:=VMA(V,5);IF(BB,UB,DRAWNULL),COLORRE
7、D,LINETHICK3;IF(DD,LB,DRAWNULL),COLORBLUE,LINETHICK3;五日乖离率:=(C-MA5)/MA5*100;三拾日乖离率:=(C-MA30)/MA30*100;JL05:=ATAN(MA5/REF(MA5,1)-1)*100)*180/3.1416;JL10:=ATAN(MA10/REF(MA10,1)-1)*100)*180/3.1416;JL30:=ATAN(MA30/REF(MA30,1)-1)*100)*180/3.1416;速度5:=SMA(EMA(MA5-REF(MA5,1)/REF(MA5,1),3)*100,3,1);加速度5:=EM
8、A(速度5-REF(速度5,1),3);强势狙击:=FILTER(JL3030ANDJL1045ANDCROSS(JL05,60),10);加仓:=FILTER(COUNT(CROSS(JL05,30),5)=1ANDMA5REF(MA5,1)AND三拾日乖离率REF(三拾日乖离率,1)ANDMA10REF(MA10,1)AND加速度5REF(加速度5,1)AND速度5REF(速度5,1),10);清仓:=FILTER(COUNT(CROSS(30,JL05),5)=1AND(MA30OROMA30)ANDMA5REF(MA5,1)AND三拾日乖离率REF(三拾日乖离率,1)ANDMA10RE
9、F(MA10,1),10);MR:=COUNT(CROSS(五日乖离率,0),3)=1AND三拾日乖离率REF(三拾日乖离率,1)ANDMA5REF(MA5,1)AND(C/REF(C,1)-1)*1005ANDREF(C,1)MA30;JL:=CROSS(0,五日乖离率)AND三拾日乖离率REF(三拾日乖离率,1)ANDMA10REF(MA10,1);减仓:=FILTER(JL,10);买入:=FILTER(MR,10);DRAWTEXT(减仓,HIGH*1.02,减仓),COLORFF99FF;DRAWTEXT(加仓,LOW*0.98,加仓),COLORRED;DRAWTEXT(买入,LOW*0.98,买入),COLORYELLOW;DRAWTEXT(清仓,HIGH*1.02,清仓),COLORGREEN;DRAWTEXT(强势狙击,LOW*0.98,强势狙击),COLORYELLOW;通达信布林彩k线指标公式实例图解:通达信布林彩k线指标公式
限制150内