资源描述:
《通达信1个趋势主图+2个趋势副图源码》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、分享一个趋势主图和2个副图,通达信可用,全部源码。大家周末愉快!{趋势主图源码}Ml:=55;HR:=HHV(HIGH,M1);HRY:=LLV(LOW,M1);HRY11:=HR*HRY;HRY33:SQRT(HRY11),COLORGREEN,LINETHICK2;IF(C>HRY33ANDHRY33>=REF(HRY33,1),HRY33,DRAWNULL),LINETHICK2ZCOLORRED;WLT1:=MA(C,5);WLT2:=MA(C,10);DRAWBAND(WLTl,RGB(255z255,0),WLT2zRGB
2、(0,0,220));{横盘整理}HP:=(HHV(CLOSE,10)-LLV(CLOSE,10))/CLOSE<0.10;{量比}LB:=VOL/MA(VOL,5);{上升角度}Xl:=(C+L+H)/3;BB5:=ATAN(EMA(X1,7)-REF(EMA(X1,7),1))*3.1416*10;DRAWTEXT(FILTER(BB5>1ANDEMA(X1,7)>REF(EMA(X1,7)<1),1O),LOW*0.99,**Z45,)zCOLORFFFFFF;TT:=FILTER(BB5>1ANDEMA(X1,7)>REF(E
3、MA(X1,7),1),10);MM:=WLT1>REF(WLT1,1)ANDREF(WLT1,1);GG1:=CROSS(WLT1ZWLT2);{均线向上金叉}{CCI指标}TYP:=(HIGH+LOW+CLOSE)/3;CCIl:=(TYP-MA(TYPz6))/(0.015*AVEDEV(TYPz5));差值1:=ABS(REF(CCI1Z1)-CCI1)ZLINETHICKO;CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYPz10));差值2:=ABS(REF(CCI2,1)・CCI2)丄INE
4、THICKO;CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20));差值3:=ABS(REF(CCI3,1)-CCI3)丄INETHICKO;CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));差{ft4:=ABS(REF(CCI4,1)-CCI4)丄INETHICKO;CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60));差值5:=ABS(REF(CCI5,1)・CCI5)丄INETHICKO;CCI:=(CCI1+C
5、CI2+CCI3+CCI4+CCI5)/2,COLORRED丄INETHICK2;WLT91:=HHV(CCI,13);{CCI的13日内最高}WLT92:=LLV(CCI,13)<-100;{CCI的13日内最低值小于-100}WLT95:=COUNT(WLT92z13)>=3;{CCI的13日内最低值小于・100的情况不少于3次}WLT93:=CCI>WLT91;{CCI大于前13日内最高}WLT96:=CROSS(CCIZ100);{CCI上穿100}TJ91:=WLT95ANDWLT96;儿P:=FILTER(TJ91,5);
6、{CCI的13Fl内完成探底后走强}超买:=MA(C,10)*IF(CAPITAL=0」・04,l・l),POINTDOT,COLORGREEN丄INETHICK2;超卖:=MA(Cz10)*IF(CAPITAL=0,0.95,0.9),POINTDOTZCOLORRED,LINETHICK2;TEND:EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),POINTDOT,COLORFFOOFF,LINETHICK4;DD:=TEND>REF(TEND,1)ANDREF(TEND,1)>REF(TEND,2);{
7、趋势线向上转折}GG2:=CROSS(WLT1ZTEND);{均线与趋势线向上金叉}HRY1:=LLV(LOW,55);HRY2:=HHV(HIGH,21);GG3:=CHRY33;{股价高于牛熊线,低于21Fl内最高价的80%}JJ1:=C1;XG1:=XGANDXG2ANDOHRY33ANDJLP;XG3:=XGANDC<
8、HHV(HIGH,250)*0.3;XG11:=XG1ORXG3;DRAWICON(XG11,LOW*0.97,23);DRAWTEXT(XG1,LOW*0.95;全'),COLORFFFFFF;DRAWTEXT(XG1