冠军一号波段王中线长线合集通达信指标公式源码{冠军一号主图}短高H:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6)+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12)+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+REF(H,20))/210,COLORBLUE,LINETHICK1;短低L:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6)+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12)+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+REF(L,20))/210,COLORBLUE,LINETHICK1;B:=(短高H+短低L)/2;D:=MA(B,10);D14:=MA(B,14);D21:=MA(B,21);A1:=MA((3*C+L+O+H)/6,28);B1:=(20*A1+19*REF(A1,1)+18*REF(A1,2)+17*REF(A1,3)+16*REF(A1,4)+15*REF(A1,5)+14*REF(A1,6)+13*REF(A1,7)+12*REF(A1,8)+11*REF(A1,9)+10*REF(A1,10)+9*REF(A1,11)+8*REF(A1,12)+7*REF(A1,13)+6*REF(A1,14)+5*REF(A1,15)+4*REF(A1,16)+3*REF(A1,17)+2*REF(A1,18)+REF(A1,12))/210;D1:=MA(B1,14);DRAWBAND(B1,RGB(255,0,0),D1,RGB(255,255,0));DRAWBAND(D14,RGB(255,0,0),D21,RGB(255,255,0));DRAWBAND(B,RGB(255,0,0),D,RGB(255,255,0));做空:=(XMA(XMA(H,30),30)-XMA(XMA(L,30),30))*1+XMA(XMA(H,30),30);做多:=XMA(XMA(L,30),30)-(XMA(XMA(H,30),30)-XMA(XMA(L,30),30))*1;波段顶:=(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*2.5+XMA(XMA(H,60),60);波段底:=XMA(XMA(L,60),60)-(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*2.5;长顶:=(XMA(XMA(H,120),120)-XMA(XMA(L,120),120))*4+XMA(XMA(H,120),120);长底:=XMA(XMA(L,120),120)-(XMA(XMA(H,120),120)-XMA(XMA(L,120),120))*4;YM:=EMA(SLOPE((CLOSE+HIGH+LOW)/3,24)*20+(CLOSE+HIGH+LOW)/3,48);STICKLINE(EMA((CLOSE+HIGH+LOW)/3,3)>=YM,LOW,HIGH,0,0),COLORRED;STICKLINE(EMA((CLOSE+HIGH+LOW)/3,3)>=YM,CLOSE,OPEN,3,1),COLORRED;STICKLINE(EMA((CLOSE+HIGH+LOW)/3,3)<=YM,LOW,HIGH,0,0),COLORGREEN;STICKLINE(EMA((CLOSE+HIGH+LOW)/3,3)<=YM,CLOSE,OPEN,3,1),COLORGREEN;CCI3:=((H+L+C)/3-MA((H+L+C)/3,3))/(0.015*AVEDEV((H+L+C)/3,3));STICKLINE(L<做多ANDCROSS(CCI3,-50)ANDREF(CCI3,1)<0,LOW,HIGH,0,0),COLORMAGENTA;STICKLINE(L<做多ANDCROSS(CCI3,-50)ANDREF(CCI3,1)<0,CLOSE,OPEN,3,0),COLORMAGENTA;STICKLINE(H>做空ANDCROSS(50,CCI3)ANDREF(CCI3,1)>0,LOW,HIGH,0,0),COLORWHITE;STICKLINE(H>做空ANDCROSS(50,CCI3)ANDREF(CCI3,1)>0,CLOSE,OPEN,3,0),COLORWHITE;DRAWICON(L<波段底ANDL<做多ANDCROSS(CCI3,-50)ANDREF(CCI3,1)<0,L,5);DRAWICON(H>波段顶ANDH>做空ANDCROSS(50,CCI3)ANDREF(CCI3,1)>0,H,6);{冠军一号长线}买入:XMA(XMA(L,120),120)-(XMA(XMA(H,120),120)-XMA(XMA(L,120),120))*4,LINETHICK0,COLORWHITE;止盈:(XMA(XMA(H,120),120)-XMA(XMA(L,120),120))*4+XMA(XMA(H,120),120),LINETHICK0,COLORWHITE;止损:XMA(XMA(L,120),120)-(XMA(XMA(H,120),120)-XMA(XMA(L,120),120))*6,LINETHICK0,COLORYELLOW;短高H:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6)+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12)+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+REF(H,20))/210,COLORBLUE,LINETHICK1;短低L:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6)+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12)+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+REF(L,20))/210,COLORBLUE,LINETHICK1;多空线:=(短高H+短低L)/2;D90:=EMA(多空线,90);高0:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25);低0:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1;多头定位:=多空线>=D90;空头定位:=多空线<D90;短顶:=(XMA(XMA(H,120),120)-XMA(XMA(L,120),120))*5+XMA(XMA(H,120),120);短底:=XMA(XMA(L,120),120)-(XMA(XMA(H,120),120)-XMA(XMA(L,120),120))*5;短线收盘:=(C-短底)/(短顶-短底)*100000,LINETHICK2,COLORRED;短线开盘:=(O-短底)/(短顶-短底)*100000,LINETHICK2,COLORRED;短线高盘:=(H-短底)/(短顶-短底)*100000,LINETHICK2,COLORRED;短线低盘:=(L-短底)/(短顶-短底)*100000,LINETHICK0,COLORRED;STICKLINE(多头定位=1,90000,20000,5,0),COLOR000066;STICKLINE(空头定位=1,90000,20000,5,0),COLOR003300;做空:90000,COLORWHITE,LINETHICK1;做多:20000,COLORWHITE,LINETHICK1;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;今D:=EMA(D,3);昨D:=REF(今D,1);STICKLINE(今D>=昨D,短线低盘,短线高盘,0.0,0),COLORRED;STICKLINE(今D>=昨D,短线收盘,短线开盘,3,1),COLORRED;STICKLINE(今D<=昨D,短线低盘,短线高盘,0.0,0),COLORGREEN;STICKLINE(今D<=昨D,短线收盘,短线开盘,3,1),COLORGREEN;白色点多定位1:=短线低盘<做多AND短线高盘>做多;白色点空定位1:=短线高盘>做空AND短线低盘<做空;STICKLINE(白色点多定位1=1,短线低盘,做多,3,0),COLORWHITE;STICKLINE(白色点空定位1=1,短线高盘,做空,3,0),COLORWHITE;白色点多定位2:=短线高盘<做多;白色点空定位2:=短线低盘>做空;STICKLINE(白色点多定位2=1,短线低盘,短线高盘,0.0,0),COLORWHITE;STICKLINE(白色点多定位2=1,短线收盘,短线开盘,3,0),COLORWHITE;STICKLINE(白色点空定位2=1,短线低盘,短线高盘,0.0,0),COLORWHITE;STICKLINE(白色点空定位2=1,短线收盘,短线开盘,3,0),COLORWHITE;多头红色点:=今D>昨D;空头红色点:=今D<昨D;多头红色点定位1:=白色点多定位1=1AND多头红色点=1;空头红色点定位1:=白色点空定位1=1AND空头红色点=1;STICKLINE(多头红色点定位1=1,短线低盘,做多,3,0),COLORMAGENTA;STICKLINE(空头红色点定位1=1,短线高盘,做空,3,0),COLORMAGENTA;多头红色点定位2:=白色点多定位2=1AND多头红色点=1;空头红色点定位2:=白色点空定位2=1AND空头红色点=1;STICKLINE(多头红色点定位2=1,短线低盘,短线高盘,0.0,0),COLORMAGENTA;STICKLINE(多头红色点定位2=1,短线收盘,短线开盘,3,0),COLORMAGENTA;STICKLINE(空头红色点定位2=1,短线低盘,短线高盘,0.0,0),COLORMAGENTA;STICKLINE(空头红色点定位2=1,短线收盘,短线开盘,3,0),COLORMAGENTA;多头多定位:=CROSS(做多,短线低盘)AND多头定位=1;多头平定位:=CROSS(短线高盘,做空)AND多头定位=1;空头空定位:=CROSS(短线高盘,做空)AND空头定位