普通人物怨 发表于 2024-5-16 02:55:01

通达信常用指标:「超级棒的CCI主图」指标源码

<h2 data-first-child>通达信常用指标:【超级棒的CCI主图】指标源码</h2><p class="ztext-empty-paragraph"><br/></p><p >AAF:LLV(LOW,34),LINETHICK1,COLORFFFFCC;<br/>BBF:MA(AAF,4),LINETHICK1,COLORYELLOW;<br/>TYP := (HIGH + LOW + CLOSE)/3;<br/>CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,5));<br/>差值1:=ABS(REF(CCI1,1)-CCI1),LINETHICK0;<br/>CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));<br/>差值2:=ABS(REF(CCI2,1)-CCI2),LINETHICK0;<br/>CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20));<br/>差值3:=ABS(REF(CCI3,1)-CCI3),LINETHICK0;<br/>CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));<br/>差值4:=ABS(REF(CCI4,1)-CCI4),LINETHICK0;<br/>CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60));<br/>差值5:=ABS(REF(CCI5,1)-CCI5),LINETHICK0;<br/>CCI:=CCI1+CCI2+CCI3+CCI4+CCI5;<br/>AAA:=(3*C+H+L+O)/6;<br/>VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)<br/>+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;<br/>VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;<br/>VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;<br/>VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;<br/>VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;<br/>VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;<br/>短线:VAR1,COLORWHITE;<br/>中线:VAR6,COLORYELLOW;<br/>下跌:IF(VAR1=VAR6,VAR6, DRAWNULL),COLORGREEN;<br/>TJ1:= CCI1>差值4;<br/>立桩量:=FILTER(TJ1,0),NODRAW;<br/>TJ2:=IF(BARSLAST(立桩量)=1 ,1,0);<br/>STICKLINE(立桩量 !=1,REF(HIGH,BARSLAST(立桩量)),<br/>REF(HIGH,BARSLAST(立桩量)),1,1),COLORCYAN;<br/>{STICKLINE(立桩量 !=1,REF(LOW,BARSLAST(立桩量)),<br/>REF(LOW,BARSLAST(立桩量)),1,1),COLORCYAN;}<br/>成立1:=TJ2=1;<br/>条件成立1:=FILTER(成立1,5);<br/>DRAWTEXT(条件成立1, REF(HIGH,BARSLAST(立桩量)),'看跌'),COLORLIBLUE;<br/>TJ11:= CCI1<-差值4 ;<br/>立桩量2:=FILTER(TJ11,0),NODRAW;<br/>TJ22:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(HIGH,1),1,0);<br/>突破2:=TJ22=1;<br/>{STICKLINE(CLOSE AND 下跌!= VAR6,REF(HIGH,BARSLAST(立桩量2)),<br/>REF(HIGH,BARSLAST(立桩量2)),1,1),COLORYELLOW;}<br/>STICKLINE(CLOSE AND 下跌!= VAR6,REF(LOW,BARSLAST(立桩量2)),<br/>REF(LOW,BARSLAST(立桩量2)),1,1),COLORYELLOW;<br/>TJ:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(LOW,1),1,0);<br/>成立2:=TJ=1;<br/>条件成立2:=FILTER(成立2,5);<br/>DRAWTEXT(条件成立2,REF(LOW,BARSLAST(立桩量2)),'看涨'),COLORLIMAGENTA;<br/>TJ111:=ABS(CCI1)>CCI AND ABS( 差值1)> ABS(差值5);<br/>立桩量3:=FILTER(TJ111,3);<br/>TJ3:=IF(BARSLAST(立桩量3)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量3)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量3)=3 AND CLOSE>REF(LOW,3),1,0)));<br/>成立:=TJ3=1;<br/>条件成立:=FILTER(成立,5);<br/>DRAWTEXT(条件成立 AND 下跌!= VAR6,L*0.97,'☆成立');<br/>LC:=REF(CLOSE,1);<br/>RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);<br/>FF:=EMA(CLOSE,3);<br/>MA15:=EMA(CLOSE,21);<br/>DRAWTEXT(CROSS(FF,MA15),BBF,'底背离'),COLORA6E500;<br/>DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'顶背离'),COLOR1880FF;<br/>X1:=(C+L+H)/3;<br/>BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;<br/>EMA8:=EMA(C,8);<br/>DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),<br/>EMA8,'∠45'),COLORWHITE;</p><p ><b>本人承诺,本人不绝对不收取任何费用,免费分享给各位粉丝朋友,各位粉丝朋友们的支持是最大的动力!</b></p><p ><b>本人独创的技术和指标,不会使用或者有需要指标(全套源码)的朋友可以私信找我领取!</b></p>
页: [1]
查看完整版本: 通达信常用指标:「超级棒的CCI主图」指标源码