三指标合一通达信指标公式源码.docx三指标合一主图VARlAA:=((2)*(CLOSE)+OPEN+HIGH+LOW)/(5);VAR2AA:=V0L;上升线:(SUM((VAR1AA)*(VAR2AA),8))/(SUM(VAR2AA,8)),COLOROOOOFF;下降线:LLV(±.升线,8)ZCOLOROOFFOO;JJ:=(CL0SE+HIGH+L0W)/3;A:=EMA(JJ,10);B:=REF(A,1);STICKLINE(A>B,A/B/3zO)zCOLORYELLOW;STICKLINE(A<B,A,B,3,0),COLORBLUE;M1:=EMA(CLOSE,3);M2:=EMA(CLOSE,8);M3:=EMA(M2,13);M4:=EMA(M2Z55);VAR1A:=EMA(M3Z55);M5:EMA(M4,81)HICK2;MA05:MA(C,5)HICK3,FF;MA10:=MA(C,10);MA20:=MA(C,20);MA30:=MA(C,30);五H乖离率:=(C-MA05)/MA05*100;BB05:=ATAN((MA05/REF(MA05zl)-l)*100)*180/;速度5:=SMA(EMA((MA05-REF(MA05,l))/REF(MA05zl),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;IF(BB05>30ANDMA05>REF(MA05zl),MA05,DRAWNULL),HICK3ZCOLORRED;BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/;IF(BB05<0ANDMA05<REF(MA05,l),MA05,DRAWNULL)HICK3,REEN;三拾日乖离率:=(C-MA30)/MA30*100,NODRAW;VARl:=(MA20-MA30)>REF((MA20-MA30),l)ANDMA20>REF(MA20,l)ANDMA30>REF(MA30zl);VAR2:=(MA30-MA20)<REF((MA30-MA20),l)ANDMA20<REF(MA20zl)ANDMA30<REF(MA30,l);BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/;强势狙击:=FILTER(BB30>30ANDBB10>45ANDCROSS(BB05,60),10);加仓:=FILTER(COUNT(CROSS(BB05Z30),5)>=1ANDMA05>REF(MA05,l)AND三拾Fl乖离率>REF(三拾日乖离率,1)ANDMA10>REF(MA10zl)AND加速度5>REF(加速度5,1)AND速度5>REF(速度5,1),10);清仓:=FILTER(COUNT(CROSS(30,BB05),5)>=1AND(C>MA30ORO>MA30)ANDMA05<REF(MA05,l)AND三拾日乖离率vREF(三拾日乖离率,1)ANDMA10<REF(MA10,1),10);DRAWTEXT(加仓丄OW*0・98J-加仓'),COL
三指标合一通达信指标公式源码 来自淘豆网m.daumloan.com转载请标明出处.