资源描述:
《【股票指标公式下载】-【通达信】五里2号(短线、中线、立桩量、收盘价)》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、【通达信】五里2号(短线、中线、立桩量、收盘价)--指标公式源码AAF:=LLV(LOW,34);BBF:=MA(AAF,4);TYP:=(HIGH+LOW+CLOSE)/3;CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,5));差值1:=ABS(REF(CCI1,1)-CCI1);CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));差值2:=ABS(REF(CCI2,1)-CCI2);CCI3:=(TYP-MA(TYP,20))/(0.015*
2、AVEDEV(TYP,20));差值3:=ABS(REF(CCI3,1)-CCI3);CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));差值4:=ABS(REF(CCI4,1)-CCI4);CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60));差值5:=ABS(REF(CCI5,1)-CCI5);CCI:=CCI1+CCI2+CCI3+CCI4+CCI5;AAA:=(3*C+H+L+O)/6;VAR1:=(8*AAA+7*REF(AAA,1
3、)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(
4、VAR3,20))/3;VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;短线:=VAR1;中线:=VAR6;下跌:IF(VAR1=VAR6,VAR6,VAR1),COLORGREEN;TJ1:=CCI1>差值4;立桩量:=FILTER(TJ1,0);TJ2:=IF(BARSLAST(立桩量)=1,1,0);成立1:=TJ2=1;条件成立1:=FILTER(成立1,5);TJ11:=CCI1<-差值4;立桩量2:=FILTER(TJ11,0);TJ22:=IF(BARSLAST
5、(立桩量2)=1ANDCLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量2)=2ANDCLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量2)=3ANDCLOSE>REF(HIGH,3),1,0)));TJ:=IF(BARSLAST(立桩量2)=1ANDCLOSE>REF(LOW,1),1,0);成立2:=TJ=1;条件成立2:=FILTER(成立2,5);TJ111:=(ABS(CCI1)>CCIANDABS(差值1)>ABS(差值5))OR(VOL=HHV(VOL,10)AND
6、VOL>2*REF(VOL,1)ANDCLOSE>VAR1);立桩量3:=FILTER(TJ111,5);TJ3:=IF(BARSLAST(立桩量3)=1ANDCLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量3)=2ANDCLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量3)=3ANDCLOSE>REF(LOW,3),1,0)));成立:=TJ3=1;条件成立:=FILTER(成立,5);DRAWICON(条件成立AND下跌=VAR6{ANDBB13>0},L*0.97,23);L
7、C:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1))*100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);DRAWICON(CROSS(FF,MA15),LOW*0.97,23);DRAWTEXT(CROSS(88,RSI),(HIGH*1.01),'R背'),COLOR00FF00;X1:=(C+L+H)/3;BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))
8、*3.1416*10;EMA8:=EMA(C,8);DRAWTEXT(FILTER(BB13>1ANDEMA(X1,13)>REF(EMA(X1,8),1),10),EMA8,'∠'),COLORWHITE;超买:MA(C,10)*IF(CAPITAL=0,1.04,1.1),POINTDOT,COLORGREEN,LINETHI