通达信2指标——股神主图(主图)

合集下载

通达信 自用 分享 【卖股提示】主图指标

通达信 自用 分享 【卖股提示】主图指标

通达信自用主图分享【卖股提示】主图指标自用主图分享【卖股提示】(指标主图通达信贴图)你需要做的就是选出一只股按照主图的提示买卖,可做波段、可抄底。

上升线:EMA(C,3),COLORRED,LINETHICK2;下降线:EMA(C,5),COLOR00FF00,LINETHICK2;中间线:EMA(下降线,5),COLORWHITE,LINETHICK2;VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5;VAR2:=REF(VAR1,1);VAR3:=SMA((CLOSE-VAR2),6,1)/SMA(ABS(CLOSE-VAR2),6,1)*100;VAR4:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;VAR5:=EMA(0.667*REF(VAR4,1)+0.333*VAR4,5);VAR6:=IF(VOL>=1.3*MA(VOL,5) AND COUNT(VAR4>=VAR5 AND VAR4<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0);VAR7:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;VAR8:=SMA(MAX(VAR1-VAR2,0),10,1)/SMA(ABS(VAR1-VAR2),10,1)*100;VAR9:=IF(COUNT(VAR8<20,5)>=1 AND COUNT(VAR1=LLV(VAR1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0);DRAWICON(FILTER(REF(VAR3,1)>81 AND VAR3<80 OR CROSS(82,VAR7),5),HIGH,2); DRAWTEXT(FILTER(REF(VAR3,1)>81 AND VAR3<80 OR CROSS(82,VAR7),5),HIGH,'快卖'),COLORYELLOW;DRAWTEXT(FILTER(VAR9 OR VAR6,5),LOW,'注意买入'),COLORGREEN;DRAWICON(FILTER(CROSS(上升线,下降线)AND 中间线>=REF(中间线,1)ANDVAR3<50,5),上升线,1);。

通达信2指标——合成操盘主图(主图)

通达信2指标——合成操盘主图(主图)
黄点出低吸:=IF(初晴,L*0.983,DRAWNULL),POINTDOT,COLOR00FFFF,LINETHICK5;
N1:=BARSCOUNT(5) ;
N:=((N1 - CURRBARSCOUNT ) + 1);
HH:=HHV(HIGH,N);
LL:=LLV(LOW,N);
最高:=HHV(N1,1),POINTDOT;
DRAWTEXT(A,L,'');
AB:=CROSS(满仓,L) AND A;
DRAWICON(AB,L,1);
VAR1A:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);
VAR2A:=REF(HIGH,10)/CLOSE>1.35;
VAR3A:=(COST(20)-CLOSE)/CLOSE>0.15;
AA10:=MA(CLOSE,10);
Y:=((LLV(LOW,1) = LLV(LOW,60)) AND ((CLOSE / REF(CLOSE,1)) > 1.04));
WX:=MA(CLOSE,0);
MB5:=(MA(CLOSE,15) * IF((20 < 5),WX,1));
MB7:=(MA(CLOSE,20) * IF((20 < 7),WX,1));
SS:=(MA(CLOSE,8) * 0.998),COLORFFFFFF;
买:=(DDD >= AMA AND BMA >= BMB);
HH1:=FILTER(((DDD >= AMA) AND (BMA >= BMB)),33);
VARR1:=((SMA(MAX((CLOSE - REF(CLOSE,1)),0),12,1) / SMA(ABS((CLOSE - REF(CLOSE,1))),12,1)) * 100);

通达信操盘2号指标副图指标公式

通达信操盘2号指标副图指标公式

这是一个短线指标,M是买入信号,B是持股信号;红柱子很长,却没有B信号是卖出信号;B信号消失是持币的意思;--------这个指标和操盘4号指标合用:红柱子首次出现,并且操盘4号出现洋红色A或者红色A,就可积极介入;--------------暴涨启动和M信号同时出现(或者基本同时),成功概率较大。

MA5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);ZF:=(C-O)/O*100>4;BIAS20:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100*VOL;BIAS21:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100*C;量:BARSLAST(BARSLAST(BIAS20>0 ANDREF(BIAS20,1)>0)>0),STICK,COLORRED,LINETHICK4;价:=BARSLAST(BARSLAST(BIAS21>0 ANDREF(BIAS21,1)<0)>0),STICK,COLORMAGENTA,LINETHICK4;黑马:量=0 AND ZF AND CROSS(C,MA5) AND CROSS(C,MA10) ANDCROSS(C,MA20),COLORRED,CIRCLEDOT,LINETHICK2;STICKLINE(黑马,0,5,1.5,0),COLORWHITE;DRAWICON(黑马,6,1);DRAWTEXT(黑马,4,'---黑马'),COLORYELLOW;STICKLINE(价,-1,0,1.5,0),COLORMAGENTA;KK1:BARSLAST(BARSLAST(BIAS21>0 ANDREF(BIAS21,1)>0)>0),STICK,COLORCYAN,LINETHICK2;RSV:=(CLOSE-LLV(LOW,35))/(HHV(HIGH,35)-LLV(LOW,35))*100;K:=SMA(RSV,5,1);DRAWTEXT(K>REF(K,1)&&量>REF(量,1),6,'B'),COLORMAGENTA;DRAWTEXT(K>REF(K,1)&&量>REF(量,1)&&REF(量,1)<1,6,'M'),COLORWHITE;MA60 :=MA(CLOSE,60);GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));BAIJIN1:=BARSLAST(CROSS(30,GJTJ1))<2 AND BARSLAST(CROSS(GJTJ1,50))<2; BAIJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;BAIJIN3:=GJTJ1>60 AND GJTJ4>70;DRAWTEXT(BAIJIN1 AND BAIJIN2 AND BAIJIN3,3,'白金');HUANGJIN1:=BARSLAST(CROSS(50,GJTJ1))<3 AND BARSLAST(CROSS(GJTJ1,50))<3; HUANGJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4; DRAWTEXT(HUANGJIN1 AND HUANGJIN2,3,'黄金');XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5 AND GJTJ1>GJTJ4;DRAWTEXT(COUNT(XG,3)=1 AND XG AND C>MA(C,20),3,'暴涨启动'),COLORRED; ZHENCANG1:=BARSLAST(CROSS(GJTJ4,GJTJ1))>3 ANDBARSLAST(CROSS(GJTJ1,GJTJ4))<3;ZHENCANG2:=BARSLAST(CROSS(GJTJ4,GJTJ2));ZHENCANG3:=GJTJ3<GJTJ4 AND GJTJ2<GJTJ4;ZHENCANG4:=BARSLAST(CROSS(GJTJ4,GJTJ3))>3 ANDBARSLAST(CROSS(GJTJ1,GJTJ4))<3;ZHENCANG5:=GJTJ2<GJTJ3 AND GJTJ2<GJTJ4 AND GJTJ2<GJTJ1 AND GJTJ1=100; ZCB1:=ZHENCANG1>0 AND REF(ZHENCANG1,1)=0 AND REF(ZHENCANG1,2)>0; DRAWTEXT(ZHENCANG1 AND ZHENCANG2 AND ZHENCANG3 AND ZHENCANG4 AND ZHENCANG5,4,'震仓启点');AA:=BARSLAST(CROSS(97,GJTJ1))<=1 AND BARSLAST(CROSS(GJTJ1,85))<=1; BB:=BARSLAST(CROSS(97,GJTJ2))<=1 AND BARSLAST(CROSS(GJTJ2,85))<=1;AA1:=AA AND BB;AAA:=BARSLAST(CROSS(97,GJTJ1))<=2 AND BARSLAST(CROSS(GJTJ1,85))<=1; BAA:=BARSLAST(CROSS(97,GJTJ2))<=2 AND BARSLAST(CROSS(GJTJ2,85))<=1;AA2:=AA AND BB ;AAAA:=BARSLAST(CROSS(97,GJTJ1))<=3 AND BARSLAST(CROSS(GJTJ1,85))<=1; BAAA:=BARSLAST(CROSS(97,GJTJ2))<=3 AND BARSLAST(CROSS(GJTJ2,85))<=1; AA3:=AAAA AND BAAA ;BB1:=REF(AA1,1);BB2:=REF(AA2,1);BB3:=REF(AA3,1);DD1:=GJTJ1=100 AND GJTJ2=100 AND AA1 ;DD2:=GJTJ1=100 AND GJTJ2=100 AND AA2 ;DD3:=GJTJ1=100 AND GJTJ2=100 AND AA3 ;DRAWTEXT(DD1 OR DD2 OR DD3,4,'短线追涨');AW:=BARSLAST(CROSS(95,GJTJ1))<=2;BW:=BARSLAST(CROSS(95,GJTJ2))<=2;EW:= GJTJ4<GJTJ1 AND GJTJ1<GJTJ2 AND GJTJ1<GJTJ3;FW:=GJTJ2>50 AND GJTJ3>50;GW:=GJTJ1=100 AND GJTJ2=100;TXW:=COUNT(GW,2)=1;DRAWTEXT(AW AND BW AND EW AND FW AND TXW,4,'起涨首日'); AQ:=GJTJ3=100;BQ:=GJTJ4<90;8;AAA1:=STRCAT('沪深总上涨家数:',CON2STR(DYNAINFO(60),0)); AAA2:=STRCAT('沪深总下跌家数:',CON2STR(DYNAINFO(61),0)); DRAWTEXT_FIX(ISLASTBAR,0,0,0,AAA1),COLORRED; DRAWTEXT_FIX(ISLASTBAR,0,0.06,0,AAA2),COLORGREEN;。

通达信指标公式源码 牛股主图指标

通达信指标公式源码 牛股主图指标

价量:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);主力活跃力度:=(((价量-LLV(价量,27))/(HHV(价量,27)-LLV(价量,27)))*(4))*(25);快线:=(((价量-LLV(价量,9))/(HHV(价量,9)-LLV(价量,9)))*(4))*(25);RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;K1:=SMA(RSV,3,1);D1:=SMA(K1,3,1);KK:=INTPART(K1);DD:=INTPART(D1);TFXXS:=KK+DD;TGLXS:=(TFXXS-REF(TFXXS,1));主力筹码:=EMA(WINNER(CLOSE)*70,3);散户筹码:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);金叉疯牛:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24)) /4,2);界:=MA(CLOSE,27);持股时段:IF((金叉疯牛>界)AND(散户筹码<主力筹码)AND((主力活跃力度>50)OR(主力活跃力度>REF(主力活跃力度,1))),-40,0),COLORRED,NODRAW;ZLCM:=EMA(WINNER(CLOSE)*70,3);{//主力筹码估算}SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);{//小筹码估算}ZSHTL:=SHCM/(ZLCM+SHCM)*100;{//小股民套牢筹码比率}ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{//主力控盘筹码比}ZCMZL:=MA(ZLCM+SHCM,13);{//市场筹码总量}ZZNTS:=BARSLAST(ZSHTL<90 AND REF(ZSHTL,1)>90);{//走牛天数}ZSHJJ:=EMA(ZSHTL,89);{//小股民警戒}ZZLJJ:=EMA(ZZLKP,89);{//主力警戒}ZJLRQD:=INTPART(ZZLKP-ZZLJJ);{//资金流入强度}BB:=MA(C,1);持币阶段:SMA(SMA(SMA(BB,2,1),2,1),2,1);主升持股波段:=HHV(MA(持币阶段,1),13);SH8:=EMA(ZSHTL,8);DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0);牛股出现预警:=WINNER(C/1.10)*100,COLOR00FFFF,NODRAW;主力赢利25持仓:=WINNER(C/1.25)*100,COLORFF00FF,NODRAW;散户套牢筹码:=散户筹码/(主力筹码+散户筹码)*100;主升浪波段:=主力筹码/(主力筹码+散户筹码)*100,COLORFF6100,NODRAW; 主力主导行情:=EMA(主升浪波段,55),NODRAW,COLORFF00FF;M:=60;N:=30;SHX:=100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60)) COLORGRAY;庄家主力线:=50-SMA(SMA(SMA(SHX,2,1),2,1),2,1)/2,COLOR00FFFF,LINETHICK2;散户持股线:=50-HHV(MA(庄家主力线,1),13)/2,COLORFF00FF,LINETHICK4; 跌幅:=(REF(C,1)-C)/REF(C,1)*100;涨幅:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100,POINTDOT,COLOR009900,LI NETHICK0;ER:=V/FINANCE(7)*100;A0:=TMA(ER,(1-ER),1);MAXCYC:=DMA((C+O)/2,ER/TMA(ER,(1-ER),1));T1:=BARSLAST(C>MAXCYC*POW(1.1,0.9));T2:=BARSLAST(C<MAXCYC*POW(1.1,-0.9));T3:=CROSS(T1,T2) OR CROSS(T2,T1) OR BARSSINCE(T1+1)=0 OR BARSSINCE(T2+1)=0 OR BARSCOUNT(C)=0;T4:=REF(MAXCYC,BARSLAST(T3));HZ:=HHV((H+L)/2,120);AA:=(2*C+H+L)/4;VAR1:=IF(DATE=10301201,0,1);VAR2:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55);VAR3:=EMA(CLOSE,3);VAR4:=(2*CLOSE+LOW+HIGH)/4*VAR1;VAR5:=VAR2-VAR3;VAR6:=CLOSE*VOL;VAR7:=EMA((EMA(VAR6,3)/EMA(VOL,3)+EMA(VAR6,6)/EMA(VOL,6)+EMA(VA R6,12)/EMA(VOL,12)+EMA(VAR6,24)/EMA(VOL,24))/4,13);VAR8:=(EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10;VAR9:=(CLOSE+OPEN)/2;MA5:=MA(CLOSE,5);VAR11:=3*SMA((C-LLV(L,480))/(HHV(H,480)-LLV(L,480))*100,5,1)-2*SMA(SMA((C-LLV(L,480))/(HHV(H,480)-LLV(L,480))*100,180,1),15,1);超级主升:=EMA(VAR11,5);主升1:=超级主升-100;D8:=EMA(C,5);D2:=(EMA(C,1)+EMA(C,5)+EMA(C,10)+EMA(C,15)+EMA(C,20)+EMA(C,25)+ EMA(C,30)+EMA(C,35)+EMA(C,40)+EMA(C,45)+EMA(C,50)+EMA(C,55)+EMA(C,60)+EMA(C,65)+EMA(C,70)+EMA(C,75)+EMA (C,80)+EMA(C,85)+EMA(C,90)+EMA(C,95)+EMA(C,100)+EMA(C,105)+EMA(C,110)+EMA(C,115)+EMA(C,120)+EMA(C,12 5)+EMA(C,130)+EMA(C,135)+EMA(C,140)+EMA(C,150))/30;DDE:=(D8/D2)*100;主升2:=DDE-110;A:=(H+L+2*C)/4;A1:=(A-REF(A,3))/3+A;J:=EMA(HHV(A1,20),60),LINETHICK3;CB5:=EMA(COST(80),30),CIRCLEDOT;HMX:=EMA(1.4*EMA(FORCAST(A1,20),40),20),LINETHICK2;金牛线:=(J+CB5+HMX)/3,LINETHICK2;MA20:=MA(C,20);UP:=EMA(EMA(C*1.38,50),50),DOTLINE,COLOR0000FF;白色:=SMA(HIGH,21,2)*1.05;黄色:=SMA(LOW,21,2)*0.95;中线:=(白色+黄色)/2;UP1:=中线+2*STD(中线,20);UP2:=REF(UP1,0);CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(A1,20))/MA(A1,20);DT:=DMA(CLOSE,CC);通道3:=(1+9/100)*DT;通道4:=(1-7/100)*DT;界限:=(REF((金牛线+UP+EMA(UP1*1.04,40)+通道3)/4,10)+MA(C,20)*1.04)/2;AHC1:=H*VOL;AHC24:=EMA((EXPMA(AHC1,180)/EXPMA(VOL,180)+EXPMA(AHC1,360)/EXPMA(VOL,360)+EXPMA(AHC1,720)/EXPMA(VOL,720)+EXPMA(AHC1,1440)/EXP MA(VOL,1440))/4,34);C上X:=1.06*AHC24;C下X:=AHC24*0.94;AHC22:=EMA((EXPMA(AHC1,27)/EXPMA(VOL,27)+EXPMA(AHC1,54)/EXPMA(V OL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(VOL ,316))/4,34);上X:=1.06*AHC22;下X:=AHC22*0.94;AHC23:=EMA((EXPMA(AHC1,5)/EXPMA(VOL,5)+EXPMA(AHC1,10)/EXPMA(VO L,10)+EXPMA(AHC1,20)/EXPMA(VOL,20)+EXPMA(AHC1,40)/EXPMA(VOL,40))/ 4,34);D上X:=1.06*AHC23;D下X:=AHC23*0.94;T:=(C上X+D上X+上X)/3*1.05;主升3:=(MA5*2/(界限+T)-1)*100;CBX80:=MA(COST(80),20);主升4:=(MA5/CBX80-1)*100;FT:=((HHV(H,42)-LLV(L,42)))/2+LLV(L,42);FT1:=ABS(HHV(H,40)-LLV(L,40)-LLV(L,40))+FT*0.5;主升5:=(FT/FT1-1)*100;P:=EMA(EMA(C*1.14,55),20);主升6:=(MA5/P-1)*100;金K线:=(EMA(HHV(H,60),60)+EMA(FT,453)*1.62)/2;主升7:=(MA5/金K线-1)*100;超牛拉升:=(主升1+主升2+主升3+主升4+主升5+主升6+主升7)/2,LINETHICK2;SMA2:=MA(持币阶段,3);V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,21);V3:=EMA(V2,5);V4:=2*(V2-V3)*100,COLORRED,LINETHICK2;筹码进:=IF(V4>=0,V4,0);VARAA:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);VAR21:=SMA(ABS(HIGH-VARAA),13,1)/SMA(MIN(HIGH-VAR1,0),10,1); VAR31:=EMA(VAR21,10);VAR41:=HHV(HIGH,33);VAR51:=EMA(IF(HIGH>=VAR41,VAR31,0),3);主力抬轿:=IF(VAR51<REF(VAR51,1)AND(涨幅>0)AND(筹码进>150)AND(持股时段<-18)AND(跌幅<3),筹码进,0),COLORRED,NODRAW;上轨:=EMA(VAR8*1.15,15),COLORRED,LINETHICK1;黄线:=(EMA(VAR9,3)+EMA(VAR9,6)+EMA(VAR9,12)+EMA(VAR9,24))/4,COLOR YELLOW,LINETHICK1;HH:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*RE F(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*R EF(H,18)+REF(H,20))/210,COLORBLUE,LINETHICK1;LL:=(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*RE F(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;VAR80:=3*SMA((C-LLV(L,180))/(HHV(H,180)-LLV(L,180))*100,5,1)-2*SMA(S MA((C-LLV(L,180))/(HHV(H,180)-LLV(L,180))*100,180,1),15,1);疯牛潜力股:=EMA(VAR80,5), NODRAW,COLOR6600FF;牛熊分道:EMA(HH,90),COLORYELLOW,LINETHICK2;下:=牛熊分道-((C-牛熊分道)*C-牛熊分道)/牛熊分道*1.68,LINETHICK3,COLORRED;下轨:=MA(下,14),COLORGREEN,LINETHICK2;IF(持股时段<-28 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK6;IF(持股时段<-28 AND 疯牛潜力股>50 AND BARSCOUNT(C)>250 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK6;IF(疯牛潜力股>50 AND BARSCOUNT(C)>250 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股<=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORGREEN,LINETHICK6;IF(上轨>=下轨AND 下轨>REF(下轨,1),下轨,DRAWNULL),COLORGREEN,LINETHICK6;IF(持股时段<-28 AND BARSCOUNT(C)<250 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK6;IF(持股时段=0 AND BARSCOUNT(C)<250 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF00FF,LINETHICK6;IF(疯牛潜力股>50 AND 上轨>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1) AND 牛熊分道>=下轨,上轨,DRAWNULL),COLORFF00FF,LINETHICK4;IF(疯牛潜力股>50 AND 上轨>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1),上轨,DRAWNULL),COLORFF00FF,LINETHICK4;IF(COUNT(C>上轨,5)>=2 AND 上轨>=牛熊分道AND 疯牛潜力股>REF(疯牛潜力股,1) AND 涨幅>0.5,上轨,DRAWNULL),COLOR0000FF,LINETHICK4;不参与阶段:IF(上轨<下轨,上轨,上轨),COLORGREEN,LINETHICK2;分道关注:IF(上轨>=下轨AND 牛熊分道<下轨AND 下轨<REF(下轨,1),下轨,DRAWNULL),COLORFF00FF,LINETHICK2;IF(上轨>=下轨AND 牛熊分道<下轨AND 下轨<REF(下轨,1),下轨,DRAWNULL),COLORFF00FF,LINETHICK2;行情主升浪:IF(持股时段<-28 AND 疯牛潜力股>50 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK2;IF(持股时段<-28 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK2;IF(持股时段<-28 AND 疯牛潜力股>50 AND BARSCOUNT(C)>250 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK2;IF(疯牛潜力股>50 AND BARSCOUNT(C)>250 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股<=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORGREEN,LINETHICK2;IF(上轨>=下轨AND 下轨>REF(下轨,1),下轨,DRAWNULL),COLORGREEN,LINETHICK2;IF(持股时段<-28 AND BARSCOUNT(C)<250 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK2;IF(疯牛潜力股>50 AND 上轨>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1) AND 牛熊分道>=下轨,上轨,DRAWNULL),COLORFF00FF,LINETHICK2;IF(疯牛潜力股>50 AND 上轨>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1),上轨,DRAWNULL),COLORFF00FF,LINETHICK2;超级疯牛分界:IF(持股时段<-28 AND 疯牛潜力股>50 AND 上轨>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1),上轨,DRAWNULL),COLORRED,LINETHICK2; IF(COUNT(C>上轨,5)>=2 AND 上轨>=牛熊分道AND 疯牛潜力股>REF(疯牛潜力股,1) AND 涨幅>0.5,上轨,DRAWNULL),COLORRED,LINETHICK2;开口选股:=BARSLASTCOUNT(上轨>下轨)=1,NODRAW;DRAWICON(开口选股,MIN(下轨,上轨)*1.08,26);DRAWTEXT(开口选股,LOW,71),COLORYELLOW;DRAWTEXT(开口选股,上轨*1.13,'开始关注'),COLORRED;变盘加速上扬:=CROSS(牛熊分道,下轨);DRAWICON(变盘加速上扬,LOW*0.9,25);{重仓介入}重仓目标:=FILTER((COUNT(变盘加速上扬,5)=1),15),COLORFFFF00,LINETHICK2;STICKLINE(重仓目标>0.8,牛熊分道*0.8,牛熊分道*0.88,0.5,0),COLORFFFF00,LINETHICK2;STICKLINE(重仓目标>0.8,牛熊分道*0.8,牛熊分道*0.86,2,0),COLORFF0080,LINETHICK2;STICKLINE(重仓目标>0.8,牛熊分道*0.8,牛熊分道*0.84,4,0),COLORFF00FF,LINETHICK2;DRAWTEXT(重仓目标>0.8,牛熊分道*0.76,'重点目标'),COLORRED;超强自选:=(CROSS(CLOSE,下轨) AND CROSS(CLOSE,超级疯牛分界) AND COUNT(上轨>下轨,2)=1 AND REF(下轨,2)>REF(上轨,2));STICKLINE(重仓目标>0.8 OR 超强自选,牛熊分道*0.8,牛熊分道*0.88,0.5,0),COLORFFFF00,LINETHICK2;STICKLINE(重仓目标>0.8 OR 超强自选,牛熊分道*0.8,牛熊分道*0.86,2,0),COLORFF0080,LINETHICK2;STICKLINE(重仓目标>0.8 OR 超强自选,牛熊分道*0.8,牛熊分道*0.84,4,0),COLORFF00FF,LINETHICK2;DRAWTEXT(重仓目标>0.8 OR 超强自选,牛熊分道*1.05,'重点目标'),COLORRED;VARA:=SMA(AMOUNT,10,1)/1000000;VARB:=REF(VARA,1);VARC:=MA(REF(CLOSE,1),5);最高:=VARA*HIGH/VARC*1/10,POINTDOT,COLOR009900,COLORGRAY;最低:=VARA*LOW/VARC*1/10,POINTDOT,COLOR009900,COLORYELLOW; 开盘:=VARA*OPEN/VARC*1/10,POINTDOT,COLOR009900,COLORMAGENTA; 收盘:=VARA*CLOSE/VARC*1/10,COLOR009900,COLORGREEN,POINTDOT; 涨跌:=(收盘-REF(收盘,1))/REF(收盘,1)*100,POINTDOT,COLOR009900,LINETHICK0;STICKLINE((CLOSE>下轨AND 涨跌>15 AND CLOSE<上轨AND OPEN<上轨AND 下轨<牛熊分道),CLOSE,OPEN,3,0),COLORYELLOW;{超强突破}自选:=IF((CROSS(CLOSE,上轨) AND 下轨<=牛熊分道),18,0),COLORRED,LINETHICK2;重点自选:=FILTER((自选>8),20),COLORRED,LINETHICK2;STICKLINE(重点自选,CLOSE*1.1,CLOSE*1.15,0.5,0),COLORRED; DRAWICON(重点自选,CLOSE*1.06,12),COLORRED;DRAWTEXT(重点自选,CLOSE*1.2,'快马加鞭'),COLORRED;STICKLINE((涨跌>20 AND CLOSE>上轨),OPEN+(CLOSE-OPEN),OPEN,3,0),COLORRED;STICKLINE((涨幅>5 AND 涨跌>0 AND 涨跌<20 AND CLOSE>上轨AND OPEN<上轨),CLOSE,OPEN,3,0),COLORRED;STICKLINE((涨幅>5 AND 涨跌>0 AND 涨跌<20 AND CLOSE>上轨AND OPEN<上轨),OPEN+(CLOSE-OPEN)*2/3,OPEN,3,0),COLORBLUE; STICKLINE((涨跌>40 AND CLOSE>上轨AND OPEN<上轨),OPEN+(CLOSE-OPEN)/3,OPEN+(CLOSE-OPEN)*2/3,3,0),COLORYELLOW; STICKLINE((涨跌>20 AND CLOSE>上轨AND OPEN<上轨),OPEN+(CLOSE-OPEN)/3,OPEN+(CLOSE-OPEN)*2/3,3,0),COLORBLUE; STICKLINE((涨跌>10 AND CLOSE>上轨AND OPEN>上轨),OPEN+(CLOSE-OPEN)/3,OPEN+(CLOSE-OPEN)*2/3,3,0),COLORYELLOW; DRAWICON(变盘加速上扬,LOW*0.9,25);{大胆博}MB5:=MA(C,5);MA10:=MA(C,10);MA30:=MA(C,30);FA:=BARSLAST(CROSS(MA10,MB5)) AND CROSS(MB5,MA10);FB:=FA AND MB5>MA30 AND MA10>MA30 AND MA10>REF(MA10,1); DRAWTEXT(FB,L-0.58,'★红牛'),COLORRED;V11:=EMA(CLOSE,5);V22:=EMA(EMA(CLOSE,90)*1.01,10);DRAWTEXT(CROSS(V11,V22),V11+0.05,'牛起步'),COLOR00FF00;VAR11A:=LLV(LOW,21);VAR22A:=HHV(HIGH,21);AK1:=EMA((((CLOSE - VAR11A) / (VAR22A - VAR11A)) * 100),5);AK:=EMA((((CLOSE - VAR11A) / (VAR22A - VAR11A)) * 50),13);AB:=CROSS(AK1,AK);DRAWTEXT((AB = 1),(LOW * 0.99),'○牛窝'),COLORYELLOW;AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;老鼠仓:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0,COLOR0099FF; DRAWTEXT(老鼠仓,L*0.99,'老鼠仓'),COLOR0099FF;VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.93),'★大胆搏'),COLOR00FFFF;DRAWTEXT(FILTER((VAR4AA>90),35),(LOW)*(0.99000001),'★加仓'),COLOR00FFFF;A1AA:=9;A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.05),'小心变盘'),COLORFFFFFF;VAR6A:=REF(C,1);VAR7A:=SMA(MAX(C-VAR6A,0),6,1)/SMA(ABS(C-VAR6A),6,1)*100; DRAWTEXT(CROSS(82,VAR7A),H*1.01,'逃顶')COLORYELLOW;。

通达信2指标——天地主图(主图)

通达信2指标——天地主图(主图)

M:=13;N:=200;股价96:="Y395";增幅96:=XMA(XMA(XMA(股价96,3),3),3)-REF(XMA(XMA(XMA(股价96,3),3),3),1); X396:=XMA(股价96,3);J396:=(XMA(股价96,3)*3+0.5*股价96-0.5*REF(股价96,1)+增幅96)/3;Y396:IFF(CURRBARSCOUNT=1,J396,X396),LINETHICK2,COLORGREEN;IF(Y396>REF(Y396,1),Y396,DRAWNULL),COLORRED,LINETHICK2;高险区1:Y396*1.1,COLORLIRED,COLORFFFF00;高风区2:Y396*1.125,COLORLIRED,COLORFF0000;高风区3:Y396*1.15,COLORLIRED,COLOR00FF00;良机区1:Y396*0.9,COLORLIBLUE,COLOR00FFFF;良机区2:Y396*0.875,COLORLIBLUE,COLORFF00FF;良机区3:Y396*0.85,COLOR0000FF;WSR1:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;WSR2:=CROSS(WSR1,5);WSR3:=CROSS(8,WSR1);WSR4:=CROSS(WSR1,-5);WSR5:=CROSS(WSR1,-8);WSR6:=WSR3;WSR7:=WSR4 OR WSR5;WSR8:=WSR7 AND FILTER(WSR7,5);WSR10:DRAWICON(WSR8,L-0.01,1);WSR9:=WSR6 AND FILTER(WSR6,5);WSR11:DRAWICON(WSR9,H+0.01,2);WSR12:=O<良机区3;DRAWICON(WSR12 AND FILTER(WSR12,12),L-0.03,9);W1:=C>REF(C,1) AND MACD<REF(MACD,1) AND MACD>0 AND V<REF(V,1);W2:=C>REF(C,1) AND MACD<0 AND MACD<REF(MACD,1) AND V<REF(V,1);XG:=W1 OR W2;V AR1:=AMOUNT/VOL/7;V AR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;V AR3:=SUM(AMOUNT,10)/V AR1/7;V AR4:=DMA(V AR2,VOL/V AR3);V AR5:=(CLOSE-V AR4)/V AR4*100,COLORLIMAGENTA;XG1:=CROSS(V AR5,MA(V AR5,2)) AND V AR5<0 AND C<(HHV(H,5)*0.88) AND REF(O>C,1) AND REF(O>C,2);XG3:=XG AND XG1 AND L<良机区1;WSR13:=O>良机区3 AND L<良机区1 OR XG3;DRAWICON(WSR13 AND FILTER(WSR13,10),L-0.03,23);WSR14:=H>高风区3;DRAWICON(WSR14 AND FILTER(WSR14,15),H+0.03,19);WSR15:=H<高风区 3 AND H>高风区2;DRAWICON(WSR15 AND FILTER(WSR15,5),H+0.03,15);WSR16:=(INDEXC-MA(INDEXC,3))/MA(INDEXC,3);WSR17:=(INDEXC-MA(INDEXC,8))/MA(INDEXC,8);WSR18:=(INDEXC-MA(INDEXC,18))/MA(INDEXC,18);WSR19:=(WSR16 + WSR17 + WSR18)/3;WSR20:=(C-MA(C,3))/MA(C,3);WSR21:=(C-MA(C,8))/MA(C,8);WSR22:=(C-MA(C,18))/MA(C,18);WSR23:=(WSR20 + WSR21 + WSR22)/3;WSR24:=(WSR19>REF(WSR19,1) AND CROSS(WSR23,WSR19))*50;WSR25:=(INDEXC-MA(INDEXC,6))/MA(INDEXC,6);WSR26:=(INDEXC-MA(INDEXC,12))/MA(INDEXC,12);WSR27:=(INDEXC-MA(INDEXC,24))/MA(INDEXC,24);WSR28:=(WSR25 + WSR26 + WSR27)/3;WSR29:=(C-MA(C,6))/MA(C,6);WSR30:=(C-MA(C,12))/MA(C,12);WSR31:=(C-MA(C,24))/MA(C,24);WSR32:=(WSR29 + WSR30 + WSR31)/3;WSR33:=(WSR28>REF(WSR28,1) AND CROSS(WSR32,WSR28))*20;WSR34:=(INDEXC-MA(INDEXC,13))/MA(INDEXC,13);WSR35:=(INDEXC-MA(INDEXC,34))/MA(INDEXC,34);WSR36:=(INDEXC-MA(INDEXC,55))/MA(INDEXC,55);WSR37:=(WSR34 + WSR35 + WSR36)/3;WSR38:=(C-MA(C,13))/MA(C,13);WSR39:=(C-MA(C,34))/MA(C,34);WSR40:=(C-MA(C,55))/MA(C,55);WSR41:=(WSR38 + WSR39 + WSR40)/3;WSR42:=(WSR37>REF(WSR37,1) AND CROSS(WSR41,WSR37));WSR43:=(INDEXC-MA(INDEXC,13))/MA(INDEXC,13);WSR44:=(INDEXC-MA(INDEXC,34))/MA(INDEXC,34);WSR45:=(INDEXC-MA(INDEXC,55))/MA(INDEXC,55);WSR46:=(WSR43 + WSR44 + WSR45)/3;WSR47:=(C-MA(C,30))/MA(C,30);WSR48:=(C-MA(C,60))/MA(C,60);WSR49:=(C-MA(C,90))/MA(C,90);WSR50:=(WSR47 + WSR48 + WSR49)/3;WSR51:=(WSR46>REF(WSR46,1) AND CROSS(WSR50,WSR46));WSR52:=(INDEXC-MA(INDEXC,34))/MA(INDEXC,34);WSR53:=(INDEXC-MA(INDEXC,55))/MA(INDEXC,55);WSR54:=(INDEXC-MA(INDEXC,89))/MA(INDEXC,89);WSR55:=(WSR52 + WSR53 + WSR54)/3;WSR56:=(C-MA(C,60))/MA(C,60);WSR57:=(C-MA(C,120))/MA(C,120);WSR58:=(C-MA(C,220))/MA(C,220);WSR59:=(WSR56 + WSR57 + WSR58)/3;WSR60:=(WSR59>REF(WSR59,1) AND CROSS(WSR59,WSR55));WSR61:=WSR24 OR WSR33 OR WSR42 OR WSR51 OR WSR60;DRAWTEXT(WSR61 AND H<Y396 AND FILTER(WSR61,5),良机区3,'★'),COLOR00FFFF; DRAWTEXT(WSR61 AND H<Y396 AND FILTER(WSR61,5),良机区3*0.97,'机'),COLOR00FFFF;时间之窗:=HHVBARS(ZIG(3,M)>REF(ZIG(3,M),1)AND REF(ZIG(3,M), 1)<REF(ZIG(3,M), 2),N);DRAWTEXT(时间之窗=2,L*0.94,'★3天'),COLORRED;DRAWTEXT(时间之窗=4,H*1.06,'★5天'),COLORGREEN;DRAWTEXT(时间之窗=7,L*0.94,'★8天'),COLORRED;DRAWTEXT(时间之窗=12,H*1.06,'★13天'),COLORGREEN;DRAWTEXT(时间之窗=20,L*0.94,'★21天'),COLORLIRED;DRAWTEXT(时间之窗=33,H*1.06,'★34天'),COLORLIGREEN;DRAWTEXT(时间之窗=54,L*0.94,'★55天'),COLORLIRED;{DRAWTEXT(时间之窗=88,H*1.06,'★89天'),COLORLIGREEN;DRAWTEXT(时间之窗=143,L*0.94,'★144天'),COLORLIRED;DRAWTEXT(时间之窗=232,H*1.06,'★233天'),COLORLIGREEN;DRAWTEXT(时间之窗=376,L*0.94,'★377天'),COLORLIRED;DRAWTEXT(时间之窗=609,H*1.06,'★610天'),COLORLIGREEN; }GET:ZIG(3,3),COLORFFFFFF;PL5:=ZIG(3,5);EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) ANDREF(ZIG(3,5),2)>=REF(ZIG(3,5),3);PL10:=ZIG(3,10);EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);PL20:=ZIG(3,20);EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);PL40:=ZIG(3,40);走强1:=BARSLAST(PL5<REF(PL5,1));走弱1:=BARSLAST(PL5>REF(PL5,1));走强2:=BARSLAST(PL10<REF(PL10,1));走弱2:=BARSLAST(PL10>REF(PL10,1));走强3:=BARSLAST(PL20<REF(PL20,1));走弱3:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'(A)'),COLORFFFF00;DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'(B)'),COLORFF00FF;DRAWTEXT(EN2 AND ZTJZ5=1,L*0.98,'(C)'),COLOR0000FF;DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.02,'⑴'),COLOR0000FF; DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.98,'⑵'),COLOR0000FF; DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.02,'⑶'),COLOR0000FF; DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.98,'⑷'),COLOR0000FF; DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.02,'⑸'),COLOR0000FF; DRAWTEXT(EN2 AND DTJZ10=1,L*0.93,'Ⅰ'),COLORFF00FF;DRAWTEXT(EX2 AND DTJD10=2,H*1.05,'Ⅱ'),COLORFFFF00;DRAWTEXT(EN3 AND ZTJZ10=1,L*0.93,'Ⅲ'),COLOR0000FF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.03,'①'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.95,'②'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,H*1.03,'③'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.95,'④'),LINETHICK3,COLOR00FFFF;V1:=(C+H+L)/3;MA3:=MA(V1,2);MA5:=MA(V1,5);DRAWBAND(MA2,RGB(200,50,55),MA5,RGB(0,100,50));遵:IF(MA2>=MA5,MA2,DRAWNULL),COLORRED;守:IF(MA5>=MA2,MA5,DRAWNULL),COLORFF9900;纪:IF(MA2>=MA5,MA5,DRAWNULL),COLOR00FFFF;律:IF(MA5>=MA2,MA2,DRAWNULL),COLOR00FF00;N1:=BARSLAST(CROSS(MA3,MA5));N2:=BARSLAST(CROSS(MA5,MA3));N:=IF(N1<N2,N1+1,0-N2-1);STICKLINE(N>0,C,O,3,0),COLOR000099;STICKLINE(N>0,C,O,0.9,0),COLOR0000CC;STICKLINE(N>0,C,O,0.2,0),COLOR0000FF;STICKLINE(N<0,C,O,3,0),COLOR888800;STICKLINE(N<0,C,O,0.9,0),COLORCCCC00;STICKLINE(N<0,C,O,0.2,0),COLORFFFF00;======================================================{Y395}股价67:="Y366";增幅67:=XMA(XMA(XMA(股价67,3),3),3)-REF(XMA(XMA(XMA(股价67,3),3),3),1); X367:=XMA(股价67,3);J367:=(XMA(股价67,3)*3+0.5*股价67-0.5*REF(股价67,1)+增幅67)/3;Y367:=IFF(CURRBARSCOUNT=1,J367,X367);股价68:=Y367;增幅68:=XMA(XMA(XMA(股价68,3),3),3)-REF(XMA(XMA(XMA(股价68,3),3),3),1); X368:=XMA(股价68,3);J368:=(XMA(股价68,3)*3+0.5*股价68-0.5*REF(股价68,1)+增幅68)/3;Y368:=IFF(CURRBARSCOUNT=1,J368,X368);股价69:=Y368;增幅69:=XMA(XMA(XMA(股价69,3),3),3)-REF(XMA(XMA(XMA(股价69,3),3),3),1); X369:=XMA(股价69,3);J369:=(XMA(股价69,3)*3+0.5*股价69-0.5*REF(股价69,1)+增幅69)/3;Y369:=IFF(CURRBARSCOUNT=1,J369,X369);股价70:=Y369;增幅70:=XMA(XMA(XMA(股价70,3),3),3)-REF(XMA(XMA(XMA(股价70,3),3),3),1); X370:=XMA(股价70,3);J370:=(XMA(股价70,3)*3+0.5*股价70-0.5*REF(股价70,1)+增幅70)/3;Y370:=IFF(CURRBARSCOUNT=1,J370,X370);股价71:=Y370;增幅71:=XMA(XMA(XMA(股价71,3),3),3)-REF(XMA(XMA(XMA(股价71,3),3),3),1); X371:=XMA(股价71,3);J371:=(XMA(股价71,3)*3+0.5*股价71-0.5*REF(股价71,1)+增幅71)/3;Y371:=IFF(CURRBARSCOUNT=1,J371,X371);股价72:=Y371;增幅72:=XMA(XMA(XMA(股价72,3),3),3)-REF(XMA(XMA(XMA(股价72,3),3),3),1); X372:=XMA(股价72,3);J372:=(XMA(股价72,3)*3+0.5*股价72-0.5*REF(股价72,1)+增幅72)/3;Y372:=IFF(CURRBARSCOUNT=1,J372,X372);股价73:=Y372;增幅73:=XMA(XMA(XMA(股价73,3),3),3)-REF(XMA(XMA(XMA(股价73,3),3),3),1); X373:=XMA(股价73,3);J373:=(XMA(股价73,3)*3+0.5*股价73-0.5*REF(股价73,1)+增幅73)/3;Y373:=IFF(CURRBARSCOUNT=1,J373,X373);股价74:=Y373;增幅74:=XMA(XMA(XMA(股价74,3),3),3)-REF(XMA(XMA(XMA(股价74,3),3),3),1); X374:=XMA(股价74,3);J374:=(XMA(股价74,3)*3+0.5*股价74-0.5*REF(股价74,1)+增幅74)/3;Y374:=IFF(CURRBARSCOUNT=1,J374,X374);股价75:=Y374;增幅75:=XMA(XMA(XMA(股价75,3),3),3)-REF(XMA(XMA(XMA(股价75,3),3),3),1); X375:=XMA(股价75,3);J375:=(XMA(股价75,3)*3+0.5*股价75-0.5*REF(股价75,1)+增幅75)/3;Y375:=IFF(CURRBARSCOUNT=1,J375,X375);股价76:=Y375;增幅76:=XMA(XMA(XMA(股价76,3),3),3)-REF(XMA(XMA(XMA(股价76,3),3),3),1); X376:=XMA(股价76,3);J376:=(XMA(股价76,3)*3+0.5*股价76-0.5*REF(股价76,1)+增幅76)/3;Y376:=IFF(CURRBARSCOUNT=1,J376,X376);股价77:=Y376;增幅77:=XMA(XMA(XMA(股价77,3),3),3)-REF(XMA(XMA(XMA(股价77,3),3),3),1); X377:=XMA(股价77,3);J377:=(XMA(股价77,3)*3+0.5*股价77-0.5*REF(股价77,1)+增幅77)/3;Y377:=IFF(CURRBARSCOUNT=1,J377,X377);股价78:=Y377;增幅78:=XMA(XMA(XMA(股价78,3),3),3)-REF(XMA(XMA(XMA(股价78,3),3),3),1); X378:=XMA(股价78,3);J378:=(XMA(股价78,3)*3+0.5*股价78-0.5*REF(股价78,1)+增幅78)/3;Y378:=IFF(CURRBARSCOUNT=1,J378,X378);股价79:=Y378;增幅79:=XMA(XMA(XMA(股价79,3),3),3)-REF(XMA(XMA(XMA(股价79,3),3),3),1); X379:=XMA(股价79,3);J379:=(XMA(股价79,3)*3+0.5*股价79-0.5*REF(股价79,1)+增幅79)/3;Y379:=IFF(CURRBARSCOUNT=1,J379,X379);股价80:=Y379;增幅80:=XMA(XMA(XMA(股价80,3),3),3)-REF(XMA(XMA(XMA(股价80,3),3),3),1); X380:=XMA(股价80,3);J380:=(XMA(股价80,3)*3+0.5*股价80-0.5*REF(股价80,1)+增幅80)/3;Y380:=IFF(CURRBARSCOUNT=1,J380,X380);股价81:=Y380;增幅81:=XMA(XMA(XMA(股价81,3),3),3)-REF(XMA(XMA(XMA(股价81,3),3),3),1); X381:=XMA(股价81,3);J381:=(XMA(股价81,3)*3+0.5*股价81-0.5*REF(股价81,1)+增幅81)/3;Y381:=IFF(CURRBARSCOUNT=1,J381,X381);股价82:=Y381;增幅82:=XMA(XMA(XMA(股价82,3),3),3)-REF(XMA(XMA(XMA(股价82,3),3),3),1); X382:=XMA(股价82,3);J382:=(XMA(股价82,3)*3+0.5*股价82-0.5*REF(股价82,1)+增幅82)/3;Y382:=IFF(CURRBARSCOUNT=1,J382,X382);股价83:=Y382;增幅83:=XMA(XMA(XMA(股价83,3),3),3)-REF(XMA(XMA(XMA(股价83,3),3),3),1); X383:=XMA(股价83,3);J383:=(XMA(股价83,3)*3+0.5*股价83-0.5*REF(股价83,1)+增幅83)/3;Y383:=IFF(CURRBARSCOUNT=1,J383,X383);股价84:=Y383;增幅84:=XMA(XMA(XMA(股价84,3),3),3)-REF(XMA(XMA(XMA(股价84,3),3),3),1); X384:=XMA(股价84,3);J384:=(XMA(股价84,3)*3+0.5*股价84-0.5*REF(股价84,1)+增幅84)/3;Y384:=IFF(CURRBARSCOUNT=1,J384,X384);股价85:=Y384;增幅85:=XMA(XMA(XMA(股价85,3),3),3)-REF(XMA(XMA(XMA(股价85,3),3),3),1); X385:=XMA(股价85,3);J385:=(XMA(股价85,3)*3+0.5*股价85-0.5*REF(股价85,1)+增幅85)/3;Y385:=IFF(CURRBARSCOUNT=1,J385,X385);股价86:=Y385;增幅86:=XMA(XMA(XMA(股价86,3),3),3)-REF(XMA(XMA(XMA(股价86,3),3),3),1); X386:=XMA(股价86,3);J386:=(XMA(股价86,3)*3+0.5*股价86-0.5*REF(股价86,1)+增幅86)/3;Y386:=IFF(CURRBARSCOUNT=1,J386,X386);股价87:=Y386;增幅87:=XMA(XMA(XMA(股价87,3),3),3)-REF(XMA(XMA(XMA(股价87,3),3),3),1); X387:=XMA(股价87,3);J387:=(XMA(股价87,3)*3+0.5*股价87-0.5*REF(股价87,1)+增幅87)/3;Y387:=IFF(CURRBARSCOUNT=1,J387,X387);股价88:=Y387;增幅88:=XMA(XMA(XMA(股价88,3),3),3)-REF(XMA(XMA(XMA(股价88,3),3),3),1); X388:=XMA(股价88,3);J388:=(XMA(股价88,3)*3+0.5*股价88-0.5*REF(股价88,1)+增幅88)/3;Y388:=IFF(CURRBARSCOUNT=1,J388,X388);股价89:=Y388;增幅89:=XMA(XMA(XMA(股价89,3),3),3)-REF(XMA(XMA(XMA(股价89,3),3),3),1); X389:=XMA(股价89,3);J389:=(XMA(股价89,3)*3+0.5*股价89-0.5*REF(股价89,1)+增幅89)/3;Y389:IFF(CURRBARSCOUNT=1,J389,X389);股价90:=Y389;增幅90:=XMA(XMA(XMA(股价90,3),3),3)-REF(XMA(XMA(XMA(股价90,3),3),3),1); X390:=XMA(股价90,3);J390:=(XMA(股价90,3)*3+0.5*股价90-0.5*REF(股价90,1)+增幅90)/3;Y390:=IFF(CURRBARSCOUNT=1,J390,X390);股价91:=Y390;增幅91:=XMA(XMA(XMA(股价91,3),3),3)-REF(XMA(XMA(XMA(股价91,3),3),3),1); X391:=XMA(股价91,3);J391:=(XMA(股价91,3)*3+0.5*股价91-0.5*REF(股价91,1)+增幅91)/3;Y391:=IFF(CURRBARSCOUNT=1,J391,X391);股价92:=Y391;增幅92:=XMA(XMA(XMA(股价92,3),3),3)-REF(XMA(XMA(XMA(股价92,3),3),3),1); X392:=XMA(股价92,3);J392:=(XMA(股价92,3)*3+0.5*股价92-0.5*REF(股价92,1)+增幅92)/3;Y392:=IFF(CURRBARSCOUNT=1,J392,X392);股价93:=Y392;增幅93:=XMA(XMA(XMA(股价93,3),3),3)-REF(XMA(XMA(XMA(股价93,3),3),3),1); X393:=XMA(股价93,3);J393:=(XMA(股价93,3)*3+0.5*股价93-0.5*REF(股价93,1)+增幅93)/3;Y393:=IFF(CURRBARSCOUNT=1,J393,X393);股价94:=Y393;增幅94:=XMA(XMA(XMA(股价94,3),3),3)-REF(XMA(XMA(XMA(股价94,3),3),3),1); X394:=XMA(股价94,3);J394:=(XMA(股价94,3)*3+0.5*股价94-0.5*REF(股价94,1)+增幅94)/3;Y394:=IFF(CURRBARSCOUNT=1,J394,X394);股价95:=Y394;增幅95:=XMA(XMA(XMA(股价95,3),3),3)-REF(XMA(XMA(XMA(股价95,3),3),3),1); X395:=XMA(股价95,3);J395:=(XMA(股价95,3)*3+0.5*股价95-0.5*REF(股价95,1)+增幅95)/3;Y395:IFF(CURRBARSCOUNT=1,J395,X395);==============================================================={Y366}股价34:="Y333";增幅34:=XMA(XMA(XMA(股价34,3),3),3)-REF(XMA(XMA(XMA(股价34,3),3),3),1); X334:=XMA(股价34,3);J334:=(XMA(股价34,3)*3+0.5*股价34-0.5*REF(股价34,1)+增幅34)/3;Y334:=IFF(CURRBARSCOUNT=1,J334,X334);股价35:=Y334;增幅35:=XMA(XMA(XMA(股价35,3),3),3)-REF(XMA(XMA(XMA(股价35,3),3),3),1); X335:=XMA(股价35,3);J335:=(XMA(股价35,3)*3+0.5*股价35-0.5*REF(股价35,1)+增幅35)/3;Y335:=IFF(CURRBARSCOUNT=1,J335,X335);股价36:=Y335;增幅36:=XMA(XMA(XMA(股价36,3),3),3)-REF(XMA(XMA(XMA(股价36,3),3),3),1); X336:=XMA(股价36,3);J336:=(XMA(股价36,3)*3+0.5*股价36-0.5*REF(股价36,1)+增幅36)/3;Y336:=IFF(CURRBARSCOUNT=1,J336,X336);股价37:=Y336;增幅37:=XMA(XMA(XMA(股价37,3),3),3)-REF(XMA(XMA(XMA(股价37,3),3),3),1); X337:=XMA(股价37,3);J337:=(XMA(股价37,3)*3+0.5*股价37-0.5*REF(股价37,1)+增幅37)/3;Y337:=IFF(CURRBARSCOUNT=1,J337,X337);股价38:=Y337;增幅38:=XMA(XMA(XMA(股价38,3),3),3)-REF(XMA(XMA(XMA(股价38,3),3),3),1); X338:=XMA(股价38,3);J338:=(XMA(股价38,3)*3+0.5*股价38-0.5*REF(股价38,1)+增幅38)/3;Y338:=IFF(CURRBARSCOUNT=1,J338,X338);股价39:=Y338;增幅39:=XMA(XMA(XMA(股价39,3),3),3)-REF(XMA(XMA(XMA(股价39,3),3),3),1); X339:=XMA(股价39,3);J339:=(XMA(股价39,3)*3+0.5*股价39-0.5*REF(股价39,1)+增幅39)/3;Y339:=IFF(CURRBARSCOUNT=1,J339,X339);股价40:=Y339;增幅40:=XMA(XMA(XMA(股价40,3),3),3)-REF(XMA(XMA(XMA(股价40,3),3),3),1); X340:=XMA(股价40,3);J340:=(XMA(股价40,3)*3+0.5*股价40-0.5*REF(股价40,1)+增幅40)/3;Y340:=IFF(CURRBARSCOUNT=1,J340,X340);股价41:=Y340;增幅41:=XMA(XMA(XMA(股价41,3),3),3)-REF(XMA(XMA(XMA(股价41,3),3),3),1); X341:=XMA(股价41,3);J341:=(XMA(股价41,3)*3+0.5*股价41-0.5*REF(股价41,1)+增幅41)/3;Y341:=IFF(CURRBARSCOUNT=1,J341,X341);股价42:=Y341;增幅42:=XMA(XMA(XMA(股价42,3),3),3)-REF(XMA(XMA(XMA(股价42,3),3),3),1); X342:=XMA(股价42,3);J342:=(XMA(股价42,3)*3+0.5*股价42-0.5*REF(股价42,1)+增幅42)/3;Y342:=IFF(CURRBARSCOUNT=1,J342,X342);股价43:=Y342;增幅43:=XMA(XMA(XMA(股价43,3),3),3)-REF(XMA(XMA(XMA(股价43,3),3),3),1); X343:=XMA(股价43,3);J343:=(XMA(股价43,3)*3+0.5*股价43-0.5*REF(股价43,1)+增幅43)/3;Y343:=IFF(CURRBARSCOUNT=1,J343,X343);股价44:=Y343;增幅44:=XMA(XMA(XMA(股价44,3),3),3)-REF(XMA(XMA(XMA(股价44,3),3),3),1); X344:=XMA(股价44,3);J344:=(XMA(股价44,3)*3+0.5*股价44-0.5*REF(股价44,1)+增幅44)/3;Y344:=IFF(CURRBARSCOUNT=1,J344,X344);股价45:=Y344;增幅45:=XMA(XMA(XMA(股价45,3),3),3)-REF(XMA(XMA(XMA(股价45,3),3),3),1); X345:=XMA(股价45,3);J345:=(XMA(股价45,3)*3+0.5*股价45-0.5*REF(股价45,1)+增幅45)/3;Y345:=IFF(CURRBARSCOUNT=1,J345,X345);股价46:=Y345;增幅46:=XMA(XMA(XMA(股价46,3),3),3)-REF(XMA(XMA(XMA(股价46,3),3),3),1); X346:=XMA(股价46,3);J346:=(XMA(股价46,3)*3+0.5*股价46-0.5*REF(股价46,1)+增幅46)/3;Y346:=IFF(CURRBARSCOUNT=1,J346,X346);股价47:=Y346;增幅47:=XMA(XMA(XMA(股价47,3),3),3)-REF(XMA(XMA(XMA(股价47,3),3),3),1); X347:=XMA(股价47,3);J347:=(XMA(股价47,3)*3+0.5*股价47-0.5*REF(股价47,1)+增幅47)/3;Y347:=IFF(CURRBARSCOUNT=1,J347,X347);股价48:=Y347;增幅48:=XMA(XMA(XMA(股价48,3),3),3)-REF(XMA(XMA(XMA(股价48,3),3),3),1); X348:=XMA(股价48,3);J348:=(XMA(股价48,3)*3+0.5*股价48-0.5*REF(股价48,1)+增幅48)/3;Y348:=IFF(CURRBARSCOUNT=1,J348,X348);股价49:=Y348;增幅49:=XMA(XMA(XMA(股价49,3),3),3)-REF(XMA(XMA(XMA(股价49,3),3),3),1); X349:=XMA(股价49,3);J349:=(XMA(股价49,3)*3+0.5*股价49-0.5*REF(股价49,1)+增幅49)/3;Y349:=IFF(CURRBARSCOUNT=1,J349,X349);股价50:=Y349;增幅50:=XMA(XMA(XMA(股价50,3),3),3)-REF(XMA(XMA(XMA(股价50,3),3),3),1); X350:=XMA(股价50,3);J350:=(XMA(股价50,3)*3+0.5*股价50-0.5*REF(股价50,1)+增幅50)/3;Y350:=IFF(CURRBARSCOUNT=1,J350,X350);股价51:=Y350;增幅51:=XMA(XMA(XMA(股价51,3),3),3)-REF(XMA(XMA(XMA(股价51,3),3),3),1); X351:=XMA(股价51,3);J351:=(XMA(股价51,3)*3+0.5*股价51-0.5*REF(股价51,1)+增幅51)/3;Y351:=IFF(CURRBARSCOUNT=1,J351,X351);股价52:=Y351;增幅52:=XMA(XMA(XMA(股价52,3),3),3)-REF(XMA(XMA(XMA(股价52,3),3),3),1); X352:=XMA(股价52,3);J352:=(XMA(股价52,3)*3+0.5*股价52-0.5*REF(股价52,1)+增幅52)/3;Y352:=IFF(CURRBARSCOUNT=1,J352,X352);股价53:=Y352;增幅53:=XMA(XMA(XMA(股价53,3),3),3)-REF(XMA(XMA(XMA(股价53,3),3),3),1); X353:=XMA(股价53,3);J353:=(XMA(股价53,3)*3+0.5*股价53-0.5*REF(股价53,1)+增幅53)/3;Y353:=IFF(CURRBARSCOUNT=1,J353,X353);股价54:=Y353;增幅54:=XMA(XMA(XMA(股价54,3),3),3)-REF(XMA(XMA(XMA(股价54,3),3),3),1); X354:=XMA(股价54,3);J354:=(XMA(股价54,3)*3+0.5*股价54-0.5*REF(股价54,1)+增幅54)/3;Y354:=IFF(CURRBARSCOUNT=1,J354,X354);股价55:=Y354;增幅55:=XMA(XMA(XMA(股价55,3),3),3)-REF(XMA(XMA(XMA(股价55,3),3),3),1); X355:=XMA(股价55,3);J355:=(XMA(股价55,3)*3+0.5*股价55-0.5*REF(股价55,1)+增幅55)/3;Y355:=IFF(CURRBARSCOUNT=1,J355,X355);股价56:=Y355;增幅56:=XMA(XMA(XMA(股价56,3),3),3)-REF(XMA(XMA(XMA(股价56,3),3),3),1); X356:=XMA(股价56,3);J356:=(XMA(股价56,3)*3+0.5*股价56-0.5*REF(股价56,1)+增幅56)/3;Y356:=IFF(CURRBARSCOUNT=1,J356,X356);股价57:=Y356;增幅57:=XMA(XMA(XMA(股价57,3),3),3)-REF(XMA(XMA(XMA(股价57,3),3),3),1); X357:=XMA(股价57,3);J357:=(XMA(股价57,3)*3+0.5*股价57-0.5*REF(股价57,1)+增幅57)/3;Y357:=IFF(CURRBARSCOUNT=1,J357,X357);股价58:=Y357;增幅58:=XMA(XMA(XMA(股价58,3),3),3)-REF(XMA(XMA(XMA(股价58,3),3),3),1); X358:=XMA(股价58,3);J358:=(XMA(股价58,3)*3+0.5*股价58-0.5*REF(股价58,1)+增幅58)/3;Y358:=IFF(CURRBARSCOUNT=1,J358,X358);股价59:=Y358;增幅59:=XMA(XMA(XMA(股价59,3),3),3)-REF(XMA(XMA(XMA(股价59,3),3),3),1); X359:=XMA(股价59,3);J359:=(XMA(股价59,3)*3+0.5*股价59-0.5*REF(股价59,1)+增幅59)/3;Y359:=IFF(CURRBARSCOUNT=1,J359,X359);股价60:=Y359;增幅60:=XMA(XMA(XMA(股价60,3),3),3)-REF(XMA(XMA(XMA(股价60,3),3),3),1); X360:=XMA(股价60,3);J360:=(XMA(股价60,3)*3+0.5*股价60-0.5*REF(股价60,1)+增幅60)/3;Y360:=IFF(CURRBARSCOUNT=1,J360,X360);股价61:=Y360;增幅61:=XMA(XMA(XMA(股价61,3),3),3)-REF(XMA(XMA(XMA(股价61,3),3),3),1); X361:=XMA(股价61,3);J361:=(XMA(股价61,3)*3+0.5*股价61-0.5*REF(股价61,1)+增幅61)/3;Y361:=IFF(CURRBARSCOUNT=1,J361,X361);股价62:=Y361;增幅62:=XMA(XMA(XMA(股价62,3),3),3)-REF(XMA(XMA(XMA(股价62,3),3),3),1); X362:=XMA(股价62,3);J362:=(XMA(股价62,3)*3+0.5*股价62-0.5*REF(股价62,1)+增幅62)/3;Y362:=IFF(CURRBARSCOUNT=1,J362,X362);股价63:=Y362;增幅63:=XMA(XMA(XMA(股价63,3),3),3)-REF(XMA(XMA(XMA(股价63,3),3),3),1); X363:=XMA(股价63,3);J363:=(XMA(股价63,3)*3+0.5*股价63-0.5*REF(股价63,1)+增幅63)/3;Y363:=IFF(CURRBARSCOUNT=1,J363,X363);股价64:=Y363;增幅64:=XMA(XMA(XMA(股价64,3),3),3)-REF(XMA(XMA(XMA(股价64,3),3),3),1); X364:=XMA(股价64,3);J364:=(XMA(股价64,3)*3+0.5*股价64-0.5*REF(股价64,1)+增幅64)/3;Y364:=IFF(CURRBARSCOUNT=1,J364,X364);股价65:=Y364;增幅65:=XMA(XMA(XMA(股价65,3),3),3)-REF(XMA(XMA(XMA(股价65,3),3),3),1); X365:=XMA(股价65,3);J365:=(XMA(股价65,3)*3+0.5*股价65-0.5*REF(股价65,1)+增幅65)/3;Y365:=IFF(CURRBARSCOUNT=1,J365,X365);股价66:=Y365;增幅66:=XMA(XMA(XMA(股价66,3),3),3)-REF(XMA(XMA(XMA(股价66,3),3),3),1); X366:=XMA(股价66,3);J366:=(XMA(股价66,3)*3+0.5*股价66-0.5*REF(股价66,1)+增幅66)/3;Y366:IFF(CURRBARSCOUNT=1,J366,X366);==========================================================={Y333}股价1:=(C+H+L)/3;增幅1:=XMA(XMA(XMA(股价1,3),3),3)-REF(XMA(XMA(XMA(股价1,3),3),3),1);X31:=XMA(股价1,3);J31:=(XMA(股价1,3)*3+0.5*股价1-0.5*REF(股价1,1)+增幅1)/3;Y31:=IFF(CURRBARSCOUNT=1,J31,X31);股价2:=Y31;增幅2:=XMA(XMA(XMA(股价2,3),3),3)-REF(XMA(XMA(XMA(股价2,3),3),3),1); X32:=XMA(股价2,3);J32:=(XMA(股价2,3)*3+0.5*股价2-0.5*REF(股价2,1)+增幅2)/3;Y32:=IFF(CURRBARSCOUNT=1,J32,X32);股价3:=Y32;增幅3:=XMA(XMA(XMA(股价3,3),3),3)-REF(XMA(XMA(XMA(股价3,3),3),3),1); X33:=XMA(股价3,3);J33:=(XMA(股价3,3)*3+0.5*股价3-0.5*REF(股价3,1)+增幅3)/3;Y33:=IFF(CURRBARSCOUNT=1,J33,X33);股价4:=Y33;增幅4:=XMA(XMA(XMA(股价4,3),3),3)-REF(XMA(XMA(XMA(股价4,3),3),3),1); X34:=XMA(股价4,3);J34:=(XMA(股价4,3)*3+0.5*股价4-0.5*REF(股价4,1)+增幅4)/3;Y34:=IFF(CURRBARSCOUNT=1,J34,X34);股价5:=Y34;增幅5:=XMA(XMA(XMA(股价5,3),3),3)-REF(XMA(XMA(XMA(股价5,3),3),3),1); X35:=XMA(股价5,3);J35:=(XMA(股价5,3)*3+0.5*股价5-0.5*REF(股价5,1)+增幅5)/3;Y35:=IFF(CURRBARSCOUNT=1,J35, X35);股价6:=Y35;增幅6:=XMA(XMA(XMA(股价6,3),3),3)-REF(XMA(XMA(XMA(股价6,3),3),3),1); X36:=XMA(股价6,3);J36:=(XMA(股价6,3)*3+0.5*股价6-0.5*REF(股价6,1)+增幅6)/3;Y36:=IFF(CURRBARSCOUNT=1,J36,X36);股价7:=Y36;增幅7:=XMA(XMA(XMA(股价7,3),3),3)-REF(XMA(XMA(XMA(股价7,3),3),3),1); X37:=XMA(股价7,3);J37:=(XMA(股价7,3)*3+0.5*股价7-0.5*REF(股价7,1)+增幅7)/3;Y37:=IFF(CURRBARSCOUNT=1,J37,X37);股价8:=Y37;增幅8:=XMA(XMA(XMA(股价8,3),3),3)-REF(XMA(XMA(XMA(股价8,3),3),3),1); X38:=XMA(股价8,3);J38:=(XMA(股价8,3)*3+0.5*股价8-0.5*REF(股价8,1)+增幅8)/3;Y38:=IFF(CURRBARSCOUNT=1,J38,X38);股价9:=Y38;增幅9:=XMA(XMA(XMA(股价9,3),3),3)-REF(XMA(XMA(XMA(股价9,3),3),3),1); X39:=XMA(股价9,3);J39:=(XMA(股价9,3)*3+0.5*股价9-0.5*REF(股价9,1)+增幅9)/3;Y39:=IFF(CURRBARSCOUNT=1,J39,X39);股价10:=Y39;增幅10:=XMA(XMA(XMA(股价10,3),3),3)-REF(XMA(XMA(XMA(股价10,3),3),3),1); X310:=XMA(股价10,3);J310:=(XMA(股价10,3)*3+0.5*股价10-0.5*REF(股价10,1)+增幅10)/3;Y310:=IFF(CURRBARSCOUNT=1,J310,X310);股价11:=Y310;增幅11:=XMA(XMA(XMA(股价11,3),3),3)-REF(XMA(XMA(XMA(股价11,3),3),3),1); X311:=XMA(股价11,3);J311:=(XMA(股价11,3)*3+0.5*股价11-0.5*REF(股价11,1)+增幅11)/3;Y311:=IFF(CURRBARSCOUNT=1,J311,X311);股价12:=Y311;增幅12:=XMA(XMA(XMA(股价12,3),3),3)-REF(XMA(XMA(XMA(股价12,3),3),3),1); X312:=XMA(股价12,3);J312:=(XMA(股价12,3)*3+0.5*股价12-0.5*REF(股价12,1)+增幅12)/3;Y312:=IFF(CURRBARSCOUNT=1,J312,X312);股价13:=Y312;增幅13:=XMA(XMA(XMA(股价13,3),3),3)-REF(XMA(XMA(XMA(股价13,3),3),3),1); X313:=XMA(股价13,3);J313:=(XMA(股价13,3)*3+0.5*股价13-0.5*REF(股价13,1)+增幅13)/3;Y313:=IFF(CURRBARSCOUNT=1,J313,X313);股价14:=Y313;增幅14:=XMA(XMA(XMA(股价14,3),3),3)-REF(XMA(XMA(XMA(股价14,3),3),3),1); X314:=XMA(股价14,3);J314:=(XMA(股价14,3)*3+0.5*股价14-0.5*REF(股价14,1)+增幅14)/3;Y314:=IFF(CURRBARSCOUNT=1,J314,X314);股价15:=Y314;增幅15:=XMA(XMA(XMA(股价15,3),3),3)-REF(XMA(XMA(XMA(股价15,3),3),3),1); X315:=XMA(股价15,3);J315:=(XMA(股价15,3)*3+0.5*股价15-0.5*REF(股价15,1)+增幅15)/3;Y315:=IFF(CURRBARSCOUNT=1,J315,X315);股价16:=Y315;增幅16:=XMA(XMA(XMA(股价16,3),3),3)-REF(XMA(XMA(XMA(股价16,3),3),3),1); X316:=XMA(股价16,3);J316:=(XMA(股价16,3)*3+0.5*股价16-0.5*REF(股价16,1)+增幅16)/3;Y316:=IFF(CURRBARSCOUNT=1,J316,X316);股价17:=Y316;增幅17:=XMA(XMA(XMA(股价17,3),3),3)-REF(XMA(XMA(XMA(股价17,3),3),3),1); X317:=XMA(股价17,3);J317:=(XMA(股价17,3)*3+0.5*股价17-0.5*REF(股价17,1)+增幅17)/3;Y317:=IFF(CURRBARSCOUNT=1,J317,X317);股价18:=Y317;增幅18:=XMA(XMA(XMA(股价18,3),3),3)-REF(XMA(XMA(XMA(股价18,3),3),3),1);X318:=XMA(股价18,3);J318:=(XMA(股价18,3)*3+0.5*股价18-0.5*REF(股价18,1)+增幅18)/3;Y318:=IFF(CURRBARSCOUNT=1,J318,X318);股价19:=Y318;增幅19:=XMA(XMA(XMA(股价19,3),3),3)-REF(XMA(XMA(XMA(股价19,3),3),3),1); X319:=XMA(股价19,3);J319:=(XMA(股价19,3)*3+0.5*股价19-0.5*REF(股价19,1)+增幅19)/3;Y319:=IFF(CURRBARSCOUNT=1,J319,X319);股价20:=Y319;增幅20:=XMA(XMA(XMA(股价20,3),3),3)-REF(XMA(XMA(XMA(股价20,3),3),3),1); X320:=XMA(股价20,3);J320:=(XMA(股价20,3)*3+0.5*股价20-0.5*REF(股价20,1)+增幅20)/3;Y320:=IFF(CURRBARSCOUNT=1,J320,X320);股价21:=Y320;增幅21:=XMA(XMA(XMA(股价21,3),3),3)-REF(XMA(XMA(XMA(股价21,3),3),3),1); X321:=XMA(股价21,3);J321:=(XMA(股价21,3)*3+0.5*股价21-0.5*REF(股价21,1)+增幅21)/3;Y321:=IFF(CURRBARSCOUNT=1,J321,X321);股价22:=Y321;增幅22:=XMA(XMA(XMA(股价22,3),3),3)-REF(XMA(XMA(XMA(股价22,3),3),3),1); X322:=XMA(股价22,3);J322:=(XMA(股价22,3)*3+0.5*股价22-0.5*REF(股价22,1)+增幅22)/3;Y322:=IFF(CURRBARSCOUNT=1,J322,X322);股价23:=Y322;增幅23:=XMA(XMA(XMA(股价23,3),3),3)-REF(XMA(XMA(XMA(股价23,3),3),3),1); X323:=XMA(股价23,3);J323:=(XMA(股价23,3)*3+0.5*股价23-0.5*REF(股价23,1)+增幅23)/3;Y323:=IFF(CURRBARSCOUNT=1,J323,X323);股价24:=Y323;增幅24:=XMA(XMA(XMA(股价24,3),3),3)-REF(XMA(XMA(XMA(股价24,3),3),3),1); X324:=XMA(股价24,3);J324:=(XMA(股价24,3)*3+0.5*股价24-0.5*REF(股价24,1)+增幅24)/3;Y324:=IFF(CURRBARSCOUNT=1,J324,X324);股价25:=Y324;增幅25:=XMA(XMA(XMA(股价25,3),3),3)-REF(XMA(XMA(XMA(股价25,3),3),3),1); X325:=XMA(股价25,3);J325:=(XMA(股价25,3)*3+0.5*股价25-0.5*REF(股价25,1)+增幅25)/3;Y325:=IFF(CURRBARSCOUNT=1,J325,X325);股价26:=Y325;增幅26:=XMA(XMA(XMA(股价26,3),3),3)-REF(XMA(XMA(XMA(股价26,3),3),3),1); X326:=XMA(股价26,3);J326:=(XMA(股价26,3)*3+0.5*股价26-0.5*REF(股价26,1)+增幅26)/3;Y326:=IFF(CURRBARSCOUNT=1,J326,X326);股价27:=Y326;增幅27:=XMA(XMA(XMA(股价27,3),3),3)-REF(XMA(XMA(XMA(股价27,3),3),3),1); X327:=XMA(股价27,3);J327:=(XMA(股价27,3)*3+0.5*股价27-0.5*REF(股价27,1)+增幅27)/3;Y327:=IFF(CURRBARSCOUNT=1,J327,X327);股价28:=Y327;增幅28:=XMA(XMA(XMA(股价28,3),3),3)-REF(XMA(XMA(XMA(股价28,3),3),3),1); X328:=XMA(股价28,3);J328:=(XMA(股价28,3)*3+0.5*股价28-0.5*REF(股价28,1)+增幅28)/3;Y328:=IFF(CURRBARSCOUNT=1,J328,X328);股价29:=Y328;增幅29:=XMA(XMA(XMA(股价29,3),3),3)-REF(XMA(XMA(XMA(股价29,3),3),3),1); X329:=XMA(股价29,3);J329:=(XMA(股价29,3)*3+0.5*股价29-0.5*REF(股价29,1)+增幅29)/3;Y329:=IFF(CURRBARSCOUNT=1,J329,X329);股价30:=Y329;增幅30:=XMA(XMA(XMA(股价30,3),3),3)-REF(XMA(XMA(XMA(股价30,3),3),3),1); X330:=XMA(股价30,3);J330:=(XMA(股价30,3)*3+0.5*股价30-0.5*REF(股价30,1)+增幅30)/3;Y330:=IFF(CURRBARSCOUNT=1,J330,X330);股价31:=Y330;增幅31:=XMA(XMA(XMA(股价31,3),3),3)-REF(XMA(XMA(XMA(股价31,3),3),3),1); X331:=XMA(股价31,3);J331:=(XMA(股价31,3)*3+0.5*股价31-0.5*REF(股价31,1)+增幅31)/3;Y331:=IFF(CURRBARSCOUNT=1,J331,X331);股价32:=Y331;增幅32:=XMA(XMA(XMA(股价32,3),3),3)-REF(XMA(XMA(XMA(股价32,3),3),3),1); X332:=XMA(股价32,3);J332:=(XMA(股价32,3)*3+0.5*股价32-0.5*REF(股价32,1)+增幅32)/3;Y332:=IFF(CURRBARSCOUNT=1,J332,X332);股价33:=Y332;增幅33:=XMA(XMA(XMA(股价33,3),3),3)-REF(XMA(XMA(XMA(股价33,3),3),3),1); X333:=XMA(股价33,3);J333:=(XMA(股价33,3)*3+0.5*股价33-0.5*REF(股价33,1)+增幅33)/3;Y333:IFF(CURRBARSCOUNT=1,J333,X333);。

通达信指标——资金突破主图(主图)

通达信指标——资金突破主图(主图)

买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);BU:=CROSS(买线,卖线);SEL:=CROSS(卖线,买线);STICKLINE(买线>=卖线,LOW,HIGH,0.1,0),COLORRED;STICKLINE(买线>=卖线,CLOSE,OPEN,3,0),COLORRED;STICKLINE(买线<卖线,CLOSE,OPEN,3,0),COLORFFF000;STICKLINE(买线<卖线,LOW,HIGH,0.1,0),COLORFFF000;Z1:=REF(HIGH,4)=HHV(HIGH,2*4+1);Y1:=FILTER(Z1,3);C1:=BACKSET(Y1,3+1);D1:=FILTER(C1,3);A2:=REF(LOW,3)=LLV(LOW,2*3+1);V2:=FILTER(A2,3);C2:=BACKSET(V2,3+1);D2:=FILTER(C2,3);E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;E2:=(HIGH+LOW)/2;H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR=1 OR BARSCOUNT(CLOSE)=1; H2:=D1 AND NOT(D2 AND E1>=E2);L1:=D2 AND NOT(D1 AND E1=E2);X1:=REF(BARSLAST(H1),1)+1;F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));G1:=F1>REF(F1,1);I1:=BACKSET(G1,2);LD:=I1>REF(I1,1);L2:=LD OR ISLASTBAR=1 OR BARSCOUNT(CLOSE)=1;X2:=REF(BARSLAST(L2),1)+1;F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));G2:=F2>REF(F2,1);I2:=BACKSET(G2,2);HD:=I2>REF(I2,1);UU2:=BACKSET(ISLASTBAR=1,BARSLAST(HD)+1);VV2:=UU2>REF(UU2,1);WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);XX2:=WW2>REF(WW2,1);突破线:=REF(H,BARSLAST(VV2));持仓线:=REF(H,BARSLAST(XX2));TP1:=CROSS(C,突破线);TP2:=CROSS(C,持仓线);STICKLINE(TP1,H,L,0,0),COLORYELLOW;STICKLINE(TP1,C,O,3,0),COLORYELLOW;STICKLINE(TP1,C,O,3,0),COLORYELLOW;STICKLINE(TP1,C,O,1,0),COLORYELLOW;DRAWTEXT(TP1,LOW*0.98,'资金突破'),LINETHICK1,COLORYELLOW;STICKLINE(TP2,H,L,0,0),COLORYELLOW;STICKLINE(TP2,C,O,3,0),COLORYELLOW;STICKLINE(TP2,C,O,3,0),COLORYELLOW;STICKLINE(TP2,C,O,1,0),COLORYELLOW;DRAWTEXT(TP2,LOW*0.98,'资金突破'),LINETHICK1,COLORYELLOW;。

2.通达信云端K线主图指标公式(听说和主力筹码使用)

2.通达信云端K线主图指标公式(听说和主力筹码使用)

2.通达信云端K线主图指标公式(听说和主力筹码使用)MA6:=MA(C,6);MA18:=MA(C,18);买进价:=((C-REF(MA6,1))/6+MA6)*1.004;买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,11);红K买进:IF(买进条件,L,H),COLORRED,NODRAW ;STICKLINE(买进条件,H,L,0,0),COLORRED;STICKLINE(买进条件,O,C,4,0),COLORRED;加码价:=((C-REF(MA18,1))/18+MA18)*1.004;加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);紫K加码:IF(加码条件,L,H),COLORFF0080,NODRAW;STICKLINE(加码条件,H,L,0,0),COLORFF0080;STICKLINE(加码条件,O,C,4,0),COLORFF0080;DRAWTEXT_FIX(1,0.88,5,0,'~☆~云在云端作品~☆~'),COLORR ED;{拐点}YGB1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);YGB2:=REF(YGB1,1) AND CLOSE<=REF(CLOSE,1) AND CLOS E>=REF(CLOSE,2);YGB3:=REF(YGB2,1) AND CLOSE>=REF(CLOSE,1) AND CLOS E<=REF(CLOSE,2);YGB4:=REF(YGB3,1) AND CLOSE<=REF(CLOSE,1) AND CLOS E>=REF(CLOSE,2);YGB5:=REF(YGB4,1) AND CLOSE>=REF(CLOSE,1) AND CLOS E<=REF(CLOSE,2);E>=REF(CLOSE,2);YGB7:=REF(YGB6,1) AND CLOSE>=REF(CLOSE,1) AND CLOS E<=REF(CLOSE,2);YGB8:=REF(YGB7,1) AND CLOSE<=REF(CLOSE,1) AND CLOS E>=REF(CLOSE,2);YGB9:=REF(YGB8,1) AND CLOSE>=REF(CLOSE,1) AND CLOS E<=REF(CLOSE,2);YGBA:=REF(YGB9,1) AND CLOSE<=REF(CLOSE,1) AND CLOS E>=REF(CLOSE,2);YGBB:=REF(YGBA,1) AND CLOSE>=REF(CLOSE,1) AND CLOS E<=REF(CLOSE,2);YGBC:=REF(YGBB,1) AND CLOSE<=REF(CLOSE,1) AND CLOS E>=REF(CLOSE,2);YGBD:=CLOSE<><="" p="" style="margin: 0px; padding: 0p x; word-break: break-all;">YGBE:=REF(YGBD,1) AND CLOSE>=REF(CLOSE,1) AND CLOS E<=REF(CLOSE,2);YGBF:=REF(YGBE,1) AND CLOSE<=REF(CLOSE,1) AND CLOS E>=REF(CLOSE,2);YGB10:=REF(YGBF,1) AND CLOSE>=REF(CLOSE,1) AND CLO SE<=REF(CLOSE,2);YGB11:=REF(YGB10,1) AND CLOSE<=REF(CLOSE,1) AND CL OSE>=REF(CLOSE,2);YGB12:=REF(YGB11,1) AND CLOSE>=REF(CLOSE,1) AND CL OSE<=REF(CLOSE,2);YGB13:=REF(YGB12,1) AND CLOSE<=REF(CLOSE,1) AND CL OSE>=REF(CLOSE,2);YGB14:=REF(YGB13,1) AND CLOSE>=REF(CLOSE,1) AND CL OSE<=REF(CLOSE,2);OSE>=REF(CLOSE,2);YGB16:=REF(YGB15,1) AND CLOSE>=REF(CLOSE,1) AND CL OSE<=REF(CLOSE,2);YGB17:=REF(YGB16,1) AND CLOSE<=REF(CLOSE,1) AND CL OSE>=REF(CLOSE,2);YGB18:=REF(YGB17,1) AND CLOSE>=REF(CLOSE,1) AND CL OSE<=REF(CLOSE,2);YGB19:=REF(YGBD OR YGBE OR YGBF OR YGB10 OR YGB11 OR YGB12 OR YGB13 OR YGB14 OR YGB15 OR YGB16 OR YGB17 OR YGB18,1) AND YGB1;YGB1A:=REF(YGB1 OR YGB2 OR YGB3 OR YGB4 OR YGB5 O R YGB6 OR YGB7 OR YGB8 OR YGB9 OR YGBA OR YGBB OR YGB C,1) AND YGBD;STICKLINE(YGB1A,O,O+(C-O)/2,2,0),COLORMAGENTA;STICKLINE(YGB19,O,O+(O-C)/2,2,0),COLORYELLOW;{ 股-旁-网_通达信股票指标公式}线A1:=(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,25))/3;线A2:=(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,20)+MA(C LOSE,30)+MA(CLOSE,60)+MA(CLOSE,120))/6;线A3:=(MA(CLOSE,20)+MA(CLOSE,60)+MA(CLOSE,120))/3;线A4:=(MA(CLOSE,13)+MA(CLOSE,34)+MA(CLOSE,55))/3;DRAWICON(CROSS(线A1,线A4),线A1,11);线1:IF(线A1<线A3,线A1,线A3),COLORLIGREEN;IF(线A1<线A3,线A3,线A1),COLORMAGENTA,LINETHICK2;线2:IF(线A2<线A3,线A2,线A3),COLORLIBLUE;IF(线A2<线A3,线A3,线A2),COLORYELLOW,LINETHICK2;线3:IF(线A3<线A1,线A3,线A3),COLOR00FF00,LINETHICK2;IF(线A1<线A3,线A3,线A3),COLORRED,LINETHICK2;DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'*警'),COLORGREEN;MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA (ABS(MTM),6),6);买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CRO SS(DX,MA(DX,2)),1,0);DRAWTEXT(FILTER(买=1,5),LOW-0.03,'*拉'),COLORYELLOW;Z1:=STRCAT(HYBLOCK,' ');Z2:=STRCAT(Z1,DYBLOCK);Z3:=STRCAT(Z2,' ');DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),CO LORYELLOW;SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100> 100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100);DRAWTEXT_FIX(1,0,0.10,0,'【量能饱和度】')COLORRED;DRAWNUMBER_FIX(1,0.10,0.10,0,CONST(SAT)),COLORYELLO W;。

通达信主图指标2W主图(附源码)

通达信主图指标2W主图(附源码)

通达信主图指标2W主图(附源码)通达信主图指标2W主图(附源码)V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);支撑:REFDATE(V2,DATE),POINTDOT,LINETHICK3,COLORCC66FF;阻力:REFDATE(V3,DATE),POINTDOT,LINETHICK3,COLORGREEN;VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;STICKLINE(VAR19,L,L*0.98,3,0),COLORYELLOW;VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;STICKLINE(VAR1A,H*1.01,H,3,0),COLOR00FF00{98FD};MA3:MA(C,3);MA5:MA(C,5),COLORWHITE;MA10:=MA(C,10),NODRAW;MA30:MA(C,34),NODRAW;五日乖离率:=(C-MA5)/MA5*100;BB5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;IF(BB5>30 AND MA5>REF(MA5,1), MA5,DRAWNULL),LINETHICK1,COLORRED;BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;IF(BB5<0 AND MA5<REF(MA5,1), MA5,DRAWNULL),LINETHICK1,COLORGREEN;DD5:=MA5<REF(MA5,1);IF(DD5,MA5,DRAWNULL),COLOR00FF00;X:=(3*C+L+O+H)/6;多空线:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+1 5*REF(X,5)+14*REF(X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*RE F(X,11)+8*REF(X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF (X,17)+2*REF(X,18)+REF(X,20))/210,COLORFF00FF,LINETHICK1;{用法:黄托底买进,绿压顶买出。

通达信2指标——1号主图(主图)

通达信2指标——1号主图(主图)

{布林}布林:=HHV(HHV(L,14),60);阻力区:=EMA(EMA(布林,16)-2*STD(布林,16),3);阻力区1:=EMA(EMA(布林,14)+2*STD(布林,14),18);DRAWBAND(阻力区,RGB(99,99,99),阻力区1,RGB(99,99,99));{四线开花}【4】:MA(CLOSE,250),COLORBLUE,LINETHICK3;【3】:MA(CLOSE,120),COLORCY AN,LINETHICK3;【2】:MA(CLOSE,60),COLORGREEN,LINETHICK3;【1】:MA(CLOSE,20),COLORLIRED,LINETHICK3;{神秘线}V0:=VOL*(O+C+H+L)/4;SM:EMA(V0,21)/EMA(VOL,21),COLOR987654,LINETHICK0;{量能平台突破}PT:IF(HHVBARS(V,35),REF(C,HHVBARS(V,35)),C),COLOR7F017F,LINETHICK0;{N日涨幅}N1:=BARSLAST(CROSS(C,MA(C,6)));N2:=BARSLAST(CROSS(MA(C,6),C));N:IF(N1<N2,N1+1,0),COLORBLUE,NODRAW;ZF%:(C-REF(C,N))/REF(C,N)*100,COLORRED,NODRAW;{三色K线}STICKLINE(C>=SM AND C>=O,OPEN,CLOSE,3,1),COLORRED;STICKLINE(C>=SM AND C>=O,LOW,MIN(O,C),0,1),COLORRED;STICKLINE(C>=SM AND C>=O,MAX(O,C),HIGH,0,1),COLORRED;STICKLINE(C>=SM AND C<O,C,O,3,0),COLORCY AN;STICKLINE(C>=SM AND C<O,C,O,1,0),COLORCY AN;STICKLINE(C>=SM AND C<O,L,HIGH,0,1),COLORCY AN;STICKLINE(C<SM AND C>=O,OPEN,CLOSE,3,1),COLORWHITE;STICKLINE(C<SM AND C>=O,LOW,MIN(O,C),0,1),COLORWHITE;STICKLINE(C<SM AND C>=O,MAX(O,C),HIGH,0,1),COLORWHITE;STICKLINE(C<SM AND C<O,C,O,3,0),COLORWHITE;STICKLINE(C<SM AND C<O,C,O,1,0),COLORWHITE;STICKLINE(C<SM AND C<O,L,HIGH,0,1),COLORWHITE;{立桩量}V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1); STICKLINE(V2>=1 AND OPEN<CLOSE,OPEN,CLOSE,5,1),COLORYELLOW; STICKLINE(V2>=1 AND OPEN>CLOSE,OPEN,CLOSE,5,0),COLORCYAN;{涨跌停K线}涨跌:=REF(C,1);涨停:=IF((C-涨跌)*100/涨跌>=(10-0.01*100/涨跌),1,0);STICKLINE(涨停,OPEN,CLOSE,4,0),COLORRED;STICKLINE(涨停,H,L,0,0),COLORRED;跌停:=IF((涨跌-C)*100/涨跌>=(10-0.01*100/涨跌),1,0);STICKLINE(跌停,OPEN,CLOSE,4,0),COLORBLUE;STICKLINE(跌停,H,L,0,1),COLORBLUE;{立桩量金箍}STICKLINE(V2>=1,O,(C+O)/2,6,0),COLOR003333;STICKLINE(V2>=1,O,(C+O)/2,5,0),COLOR116666;STICKLINE(V2>=1,O,(C+O)/2,4,0),COLOR229999;STICKLINE(V2>=1,O,(C+O)/2,3,0),COLOR33CCCC;STICKLINE(V2>=1,O,(C+O)/2,2,0),COLOR44FFFF;MA10:MA(CLOSE,10),COLORYELLOW,LINETHICK1;MA5:MA(CLOSE,5),COLORWHITE,LINETHICK1;{信号系统}买入1:DRAWICON(CROSS(【1】,【2】),【2】*0.98,5);买入2:DRAWICON(CROSS(【1】,【3】),【3】*0.98,5);买入3:DRAWICON(CROSS(【1】,【4】),【4】*0.98,5);买入4:DRAWICON(CROSS(【2】,【3】),【3】*0.98,9);买入5:DRAWICON(CROSS(【2】,【4】),【4】*0.98,9);买入6:DRAWICON(CROSS(【3】,【4】),【4】*0.98,135);{买入7:DRAWICON(CROSS(MA5,MA10),MA10*0.98,1);买入8:DRAWICON(CROSS(MA5,【1】),【1】*0.976,1);买入9:DRAWICON(CROSS(MA5,【2】),【2】*0.972,1);买入10:DRAWICON(CROSS(MA5,【3】),【3】*0.968,1);买入11:DRAWICON(CROSS(MA5,【4】),【4】*0.964,1);};。

通达信指标——牛万能主图(主图)

通达信指标——牛万能主图(主图)

N:=250;P:=5;AA:MA(C,N),LINETHICK2,COLOR0000FF;BB:=REF(AA,1);CC:=REF(AA,2);DD:=REF(AA,3);TJ11:=BB> CC;TJ22:=FILTER(COUNT(CROSS(C,AA),21)>= 1,21);XG:=TJ11 AND TJ22 ;DRAWICON(XG,LOW*0.96,23);DRAWTEXT(XG,LOW*0.99,'金');DRAWTEXT(XG,LOW*0.98,'牛');TEND:EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42),POINTDOT,COLORFF00FF,LINETHICK4;WLT1:=EMA(C,3),COLORBLUE,LINETHICK1;WLT2:=EMA(C,5),COLORWHITE,LINETHICK1;WLT3:=EMA(WLT2,5),COLOR00FF00,LINETHICK1;QQ:= C< WLT2;MM:=WLT1> REF(WLT1,1) AND REF(WLT1,1)< REF(WLT1,2) ;MM0:=WLT1< REF(WLT1,1) AND REF(WLT1,1)> REF(WLT1,2) ;WL:=CROSS(WLT1,WLT2);WL1:=CROSS(WLT2,WLT1);WL2:=CROSS(WLT1,TEND);WL3:=LLV(LOW,55);WL6:=HHV(HIGH,21);WL8:=LLV(LOW,21);DRAWICON(WL AND MM AND C< WL3*1.38 AND C> WL6*0.6,LOW*0.97,23); DRAWICON(WL2 AND C> TEND AND C< WL8*1.3,LOW*0.97,23);DRAWTEXT(WL2 AND C> TEND AND C< WL8*1.3,LOW*0.97,'全'),COLORYELLOW; DRAWTEXT(WL2 AND C> TEND AND C< WL8*1.3,LOW*0.96,'仓'),COLORYELLOW; {DRAWICON(MM0 AND C>WL8*1.2,HIGH*1.03,15);}SAL:=FILTER(CROSS(TEND,C) AND C< REF(C,1) AND WLT1< REF(WLT1,1) AND C> WL8*1.2,13);{DRAWICON(CROSS(TEND,C) AND C< REF(C,1) AND WLT1 < REF(WLT1,1) AND C > WL8*1.2,HIGH*1.03,15);}DRAWICON(SAL,HIGH*1.03,15);TJ1:=WL AND MM AND C< WL3*1.38 AND C> WL6*0.8;TJ2:=WL2 AND C> TEND;TJ3:=TJ1 OR TJ2;TJ4:=COUNT(TJ3,3)=2;DRAWICON(FILTER(TJ4,3),LOW*0.95,23);STICKLINE(WL AND MM AND C< WL3*1.38 AND C> WL6*0.8,C,O,4,0),COLOR009999; STICKLINE(WL AND MM AND C< WL3*1.38 AND C> WL6*0.8,C,O,2.5,0),COLOR00BBBB;STICKLINE(WL AND MM AND C< WL3*1.38 AND C> WL6*0.8,C,O,1,0),COLOR00DDDD; STICKLINE(WL AND MM AND C< WL3*1.38 AND C> WL6*0.8,C,O,0.3,0),COLOR00FFFF;STICKLINE(WL2 AND C> TEND,C,O,4,0),COLOR000099;STICKLINE(WL2 AND C> TEND,C,O,2.5,0),COLOR0000BB;STICKLINE(WL2 AND C> TEND,C,O,1,0),COLOR0000DD;STICKLINE(WL2 AND C> TEND,C,O,0.3,0),COLOR0000FF;STICKLINE(MM0 AND C> WL8*1.2,C,O,4,0),COLOR990000;STICKLINE(MM0 AND C> WL8*1.2,C,O,2.5,0),COLORBB0000;STICKLINE(MM0 AND C> WL8*1.2,C,O,1,0),COLORDD0000;STICKLINE(MM0 AND C> WL8*1.2,C,O,0.3,0),COLORFF0000;DRAWBAND(WLT1,RGB(255,255,0),WLT2,RGB(256,200,0));。

通达信二色主图指标公式

通达信二色主图指标公式

B1:=EMA((2*CLOSE+HIGH+LOW)/4,5);A1:IF(EMA((2*CLOSE+HIGH+LOW)/4,6)>REF(EMA((2*CLOSE+HIGH+LOW)/4,6),1),B1, DRAWNULL),COLOR0000FF;A2:IF(EMA((2*CLOSE+HIGH+LOW)/4,6)<REF(EMA((2*CLOSE+HIGH+LOW)/4,6),1),B1, DRAWNULL),COLOR00FF00;B2:=EMA((2*CLOSE+HIGH+LOW)/4,13);A3:IF(EMA((2*CLOSE+HIGH+LOW)/4,10)>REF(EMA((2*CLOSE+HIGH+LOW)/4,13),1), B2,DRAWNULL),COLOR0000FF;A4:IF(EMA((2*CLOSE+HIGH+LOW)/4,10)<REF(EMA((2*CLOSE+HIGH+LOW)/4,13),1), B2,DRAWNULL),LINETHICK2,COLOR00FF00;B3:=REF(EMA((LOW+CLOSE+OPEN)/3,25),1);A5:IF(EMA((LOW+CLOSE+OPEN)/3,28)>REF(EMA((LOW+CLOSE+OPEN)/3,28),1),B3, DRAWNULL),LINETHICK3,COLOR0000FF;A6:IF(EMA((LOW+CLOSE+OPEN)/3,28)<REF(EMA((LOW+CLOSE+OPEN)/3,28),1),B3, DRAWNULL),LINETHICK3,COLOR00FF00;B4:=(EMA(LOW,125)+EMA((CLOSE+LOW)/2,125))/2;A7:IF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2>REF((EMA(LOW,125)+EMA((CL OSE+LOW)/2,250))/2,1),B4,DRAWNULL),POINTDOT,COLOR0000FF;A8:IF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2<REF((EMA(LOW,125)+EMA((CL OSE+LOW)/2,250))/2,1),B4,DRAWNULL),POINTDOT,COLOR00FF00;短高H:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*RE F(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;D90H:=EMA(短高H,90)-(EMA(短高H,90)-EMA(短低L,90))*0.2,COLORRED,LINETHICK1;D90L:=EMA(短低L,90)+(EMA(短高H,90)-EMA(短低L,90))*0.2,COLORRED,LINETHICK1; 高0:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),LINETHICK1,CO LORWHITE;低0:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,LINETHICK1,COL ORWHITE;中中中:=((XMA(XMA(H,15),15)+XMA(XMA(H,20),20)+XMA(XMA(H,30),30)+XMA(XMA(H,40), 40))/4+(XMA(XMA(L,15),15)+XMA(XMA(L,20),20)+XMA(XMA(L,30),30)+XMA(XMA(L,40 ),40))/4)/2,LINETHICK0,COLORGREEN;EMA中中中:=EMA(中中中,10),LINETHICK0,COLORWHITE;A:=(3*C+L+O+H)/6;B:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF (A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+ REF(A,20))/210,COLORRED,LINETHICK1;D:=MA(B,10),COLORRED,LINETHICK2;D14:=MA(B,14),COLORRED,LINETHICK2;D21:=MA(B,21),COLORRED,LINETHICK2;A9:=MA((3*C+L+O+H)/6,28);B9:=(20*A9+19*REF(A1,1)+18*REF(A9,2)+17*REF(A9,3)+16*REF(A9,4)+15*REF(A9,5) +14*REF(A9,6)+13*REF(A9,7)+12*REF(A9,8)+11*REF(A9,9)+10*REF(A9,10)+9*REF(A9,11)+8*REF(A9 ,12)+7*REF(A9,13)+6*REF(A9,14)+5*REF(A9,15)+4*REF(A9,16)+3*REF(A9,17)+2*REF(A9, 18)+REF(A9,12))/210,COLORGREEN,LINETHICK1;D1:=MA(B9,14),COLORGREEN,LINETHICK2;中中顶:=(XMA(XMA(H,15),15)+XMA(XMA(H,20),20)+XMA(XMA(H,30),30)+XMA(XMA(H,40), 40))/4*2-(XMA(XMA(L,15),15)+XMA(XMA(L,20),20)+XMA(XMA(L,30),30)+XMA(XMA(L,4 0),40))/4,LINETHICK2,COLORGREEN;中中底:=(XMA(XMA(L,15),15)+XMA(XMA(L,20),20)+XMA(XMA(L,30),30)+XMA(XMA(L,40),4 0))/4*2-(XMA(XMA(H,15),15)+XMA(XMA(H,20),20)+XMA(XMA(H,30),30)+XMA(XMA(H,4 0),40))/4,LINETHICK2,COLORGREEN;短中顶:=(XMA(XMA(H,5),5)+XMA(XMA(H,8),8)+XMA(XMA(H,11),11)+XMA(XMA(H,14),14)+X MA(XMA(H,4),4))/5+((XMA(XMA(H,5),5)+XMA(XMA(H,8),8)+XMA(XMA(H,11),11)+XMA( XMA(H,14),14)+XMA(XMA(H,4),4))/5-(XMA(XMA(L,5),5)+XMA(XMA(L,8),8)+XMA(XMA(L,11),11)+XMA(XMA(L,14),14)+XMA(XMA(L,4),4))/5)/2,LINETHICK0,COLORWHITE;短中底:=(XMA(XMA(L,5),5)+XMA(XMA(L,8),8)+XMA(XMA(L,11),11)+XMA(XMA(L,14),14))/4-( (XMA(XMA(H,5),5)+XMA(XMA(H,8),8)+XMA(XMA(H,11),11)+XMA(XMA(H,14),14)+XMA( XMA(H,4),4))/5-(XMA(XMA(L,5),5)+XMA(XMA(L,8),8)+XMA(XMA(L,11),11)+XMA(XMA(L ,14),14)+XMA(XMA(L,4),4))/5)/2,LINETHICK0,COLORWHITE;中顶:=(XMA(XMA(H,30),30)+XMA(XMA(H,40),40)+XMA(XMA(H,50),50)+XMA(XMA(H,60), 60))/4*2.03-(XMA(XMA(L,30),30)+XMA(XMA(L,40),40)+XMA(XMA(L,50),50)+XMA(XMA( L,60),60))/4,LINETHICK2,COLORRED;中底:=(XMA(XMA(L,30),30)+XMA(XMA(L,40),40)+XMA(XMA(L,50),50)+XMA(XMA(L,60),6 0))/4*1.97-(XMA(XMA(H,30),30)+XMA(XMA(H,40),40)+XMA(XMA(H,50),50)+XMA(XMA( H,60),60))/4,LINETHICK2,COLORRED;长顶:=(XMA(XMA(H,90),90)+XMA(XMA(H,120),120)+XMA(XMA(H,150),150))/3*2.08-(XMA (XMA(L,90),90)+XMA(XMA(L,120),120)+XMA(XMA(L,150),150))/3,LINETHICK2,COLOR YELLOW;长底:=(XMA(XMA(L,90),90)+XMA(XMA(L,120),120)+XMA(XMA(L,150),150))/3*1.92-(XMA( XMA(H,90),90)+XMA(XMA(H,120),120)+XMA(XMA(H,150),150))/3,LINETHICK2,COLOR YELLOW;AF长:=EMA((CLOSE+HIGH+LOW)/3,18);BF长:=REF(AF长,1);AF中:=EMA((CLOSE+HIGH+LOW)/3,10);BF中:=REF(AF中,1);AF5:=EMA((CLOSE+HIGH+LOW)/3,6);BF5:=REF(AF5,1);AF3:=EMA((CLOSE+HIGH+LOW)/3,3);BF3:=REF(AF3,1);买入定位:=AF长>BF长OR AF中>BF中OR AF5>BF5 OR AF3>BF3;卖出定位:=AF长<BF长OR AF中<BF中OR AF5<BF5;顶底定位:=AF长<BF长OR AF中<BF中OR AF5<BF5 OR AF3<BF3;STICKLINE(买入定位=1,LOW,HIGH,0.0,1),COLORRED;STICKLINE(买入定位=1,CLOSE,OPEN,3,1),COLORRED;STICKLINE(AF中<BF中,LOW,HIGH,0.0,0),COLORGREEN;STICKLINE(AF中<BF中,CLOSE,OPEN,3,1),COLORGREEN;STICKLINE(卖出定位=1 AND 中中顶>中顶,LOW,HIGH,0.0,1),COLORGREEN;STICKLINE(卖出定位=1 AND 中中顶>中顶,CLOSE,OPEN,3,1),COLORGREEN; STICKLINE(顶底定位=1 AND H>中中顶AND H>中顶,CLOSE,OPEN,3,1),COLORGREEN;STICKLINE(顶底定位=1 AND H>中中顶AND H>中顶,LOW,HIGH,0.0,1),COLORGREEN; 加仓定位1:=卖出定位=1 AND 中中顶>中顶;加仓定位2:=顶底定位=1 AND H>中中顶AND H>中顶;DRAWTEXT(中中中<EMA中中中AND CROSS(AF中,BF中) AND 短中底<中中底AND 短中底<中底,L*0.97,'↖大牛'),COLORFF00FF;DRAWTEXT(中中中>=EMA中中中AND CROSS(AF中,BF中) AND 短中底<中中底,L*0.97,'↖黑马'),COLORFF00FF;DRAWTEXT(CROSS(BF3,AF3) AND H>中中顶AND H>中顶,H*1.03,'↙【逃】'),COLORGREEN;DRAWTEXT(加仓定位1=0 AND 加仓定位2=0 AND CROSS(AF中,BF中) AND 中中中>=EMA中中中,L*0.995,'↖追'),COLORYELLOW;DRAWTEXT(CROSS(AF长,BF长) AND 中底<长底,L*0.97,'↖【赌】'),COLORRED; DRAWTEXT(CROSS(AF长,BF长) AND 中底<长底AND 中底>长底,L*0.97,'↖中底'),COLORYELLOW;STICKLINE(AF中>BF中AND 短中底<中底AND 短中底<中底,CLOSE,OPEN,2,0),COLORRED;DRAWTEXT(AF3>BF3 AND 短中底<中中底AND H<中中底,L*0.985,'↖骗'),COLORWHITE;STICKLINE(AF3>BF3 AND 短中底<中中底AND H<中中底,CLOSE,OPEN,2,0),COLORRED;STICKLINE(中中中>=EMA中中中AND CROSS(AF中,BF中) AND AF中<中中中AND AF中<(中顶+中底)/2 AND H<短中顶,CLOSE,OPEN,3,0),COLORRED;DRAWTEXT(中中中>=EMA中中中AND CROSS(AF中,BF中) AND AF中<中中中AND AF中<(中顶+中底)/2 AND H<短中顶,L*0.97,'↖【买】'),COLORRED;DRAWTEXT(CROSS(BF中,AF中) AND 中中中<EMA中中中,H*1.01,'↙卖'),COLORGREEN;DRAWICON(AF中<中中中AND AF中<(中顶+中底)/2 AND H<短中顶AND CROSS(AF 中,BF中) AND 中中中<EMA中中中,L*0.99,1);。

通达信2指标——主线画线主图(主图)

通达信2指标——主线画线主图(主图)

N:=5;主筹估算:=EMA(WINNER(C)*70,3);散筹估算:=EMA((WINNER((C)*1.1)-WINNER((C)*0.9))*70,3);筹码锁定:=散筹估算-主筹估算;动态底部:=EMA(IF(L<= LLV(L,60),SMA(ABS(L-REF(L,1)),60,1)/SMA(MAX(L-REF(L,1),0),99,1),0)*5,3);涨:=CROSS(主筹估算,筹码锁定);强:=CROSS(主筹估算,散筹估算);STICKLINE(涨,O,C,2,0),COLORYELLOW;STICKLINE(涨,O,H,0,0),COLORYELLOW;STICKLINE(涨,L,C,0,0),COLORYELLOW;STICKLINE(强, O,C,2,0),COLORMAGENTA;STICKLINE(强,O,H,0,0),COLORMAGENTA;STICKLINE(强,L,C,0,0),COLORMAGENTA;STICKLINE(筹码锁定<-50,O,C,2,0),COLORRED;STICKLINE(筹码锁定<-50,O,H,0,0),COLORRED;STICKLINE(筹码锁定<-50,L,C,0,0),COLORRED;A1:=REF(H,N)=HHV(H,2*N+1);B1:=FILTER(A1,N);C1:=BACKSET(B1,N+1);D1:=FILTER(C1,N);{高点}A2:=REF(L,N)=LLV(L,2*N+1);B2:=FILTER(A2,N);C2:=BACKSET(B2,N+1);D2:=FILTER(C2,N);{低点}E1:=(REF(LLV(L,2*N),1)+REF(HHV(H,2*N),1))/2;E2:=(H+L)/2;H1:=(D1 AND NOT(D2 AND E1>=E2)) OR CURRBARSCOUNT=1 OR BARSCOUNT(C)=1; L1:=(D2 AND NOT(D1 AND E1=E2));X1:=REF(BARSLAST(H1),1)+1;F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,L,10000),X1));G1:=F1>REF(F1,1); I1:=BACKSET(G1,2); LD:=I1>REF(I1,1);{过滤后低点}L2:=LD OR CURRBARSCOUNT=1 OR BARSCOUNT(C)=1; H2:=D1 AND NOT(D2 AND E1>=E2);X2:=REF(BARSLAST(L2),1)+1; F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,H,0),X2));G2:=F2>REF(F2,1); I2:=BACKSET(G2,2); HD:=I2>REF(I2,1);{过滤后高点}R1:=BACKSET(CURRBARSCOUNT=1,BARSLAST(HD)+1); S1:=R1>REF(R1,1); {前一高} T1:=BACKSET(CURRBARSCOUNT=1,BARSLAST(LD)+1); U1:=T1>REF(T1,1); {前一低} R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2); S2:=R2>REF(R2,1); {前二高}T2:=BACKSET(U1,REF(BARSLAST(LD),1)+2); U2:=T2>REF(T2,1); {前二低}T3:=BACKSET(U2,REF(BARSLAST(LD),1)+2); U3:=T3>REF(T3,1); {前三低}T4:=BACKSET(U3,REF(BARSLAST(LD),1)+2); U4:=T4>REF(T4,1); {前四低}R3:=BACKSET(S2,REF(BARSLAST(HD),1)+2); S3:=R3>REF(R3,1); {前三高}R4:=BACKSET(S3,REF(BARSLAST(HD),1)+2); S4:=R4>REF(R4,1); {前四高}短期压力:DRAWLINE(S2,H,S1,H,1),COLORRED;短期支撑:DRAWLINE(U2,L,U1,L,1),COLORGREEN;中期压力:DRAWLINE(S3,H,S2,H,1),COLORYELLOW;中期支撑:DRAWLINE(U3,L,U2,L,0),COLORGREEN;长期压力:DRAWLINE(S4,H,S3,H,1),COLORWHITE;长期支撑:DRAWLINE(U4,L,U3,L,0),COLORGREEN;。

通达信2指标——天地主图(主图)

通达信2指标——天地主图(主图)

M:=13;N:=200;股价96:="Y395";增幅96:=XMA(XMA(XMA(股价96,3),3),3)-REF(XMA(XMA(XMA(股价96,3),3),3),1); X396:=XMA(股价96,3);J396:=(XMA(股价96,3)*3+0.5*股价96-0.5*REF(股价96,1)+增幅96)/3;Y396:IFF(CURRBARSCOUNT=1,J396,X396),LINETHICK2,COLORGREEN;IF(Y396>REF(Y396,1),Y396,DRAWNULL),COLORRED,LINETHICK2;高险区1:Y396*1.1,COLORLIRED,COLORFFFF00;高风区2:Y396*1.125,COLORLIRED,COLORFF0000;高风区3:Y396*1.15,COLORLIRED,COLOR00FF00;良机区1:Y396*0.9,COLORLIBLUE,COLOR00FFFF;良机区2:Y396*0.875,COLORLIBLUE,COLORFF00FF;良机区3:Y396*0.85,COLOR0000FF;WSR1:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;WSR2:=CROSS(WSR1,5);WSR3:=CROSS(8,WSR1);WSR4:=CROSS(WSR1,-5);WSR5:=CROSS(WSR1,-8);WSR6:=WSR3;WSR7:=WSR4 OR WSR5;WSR8:=WSR7 AND FILTER(WSR7,5);WSR10:DRAWICON(WSR8,L-0.01,1);WSR9:=WSR6 AND FILTER(WSR6,5);WSR11:DRAWICON(WSR9,H+0.01,2);WSR12:=O<良机区3;DRAWICON(WSR12 AND FILTER(WSR12,12),L-0.03,9);W1:=C>REF(C,1) AND MACD<REF(MACD,1) AND MACD>0 AND V<REF(V,1);W2:=C>REF(C,1) AND MACD<0 AND MACD<REF(MACD,1) AND V<REF(V,1);XG:=W1 OR W2;V AR1:=AMOUNT/VOL/7;V AR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;V AR3:=SUM(AMOUNT,10)/V AR1/7;V AR4:=DMA(V AR2,VOL/V AR3);V AR5:=(CLOSE-V AR4)/V AR4*100,COLORLIMAGENTA;XG1:=CROSS(V AR5,MA(V AR5,2)) AND V AR5<0 AND C<(HHV(H,5)*0.88) AND REF(O>C,1) AND REF(O>C,2);XG3:=XG AND XG1 AND L<良机区1;WSR13:=O>良机区3 AND L<良机区1 OR XG3;DRAWICON(WSR13 AND FILTER(WSR13,10),L-0.03,23);WSR14:=H>高风区3;DRAWICON(WSR14 AND FILTER(WSR14,15),H+0.03,19);WSR15:=H<高风区 3 AND H>高风区2;DRAWICON(WSR15 AND FILTER(WSR15,5),H+0.03,15);WSR16:=(INDEXC-MA(INDEXC,3))/MA(INDEXC,3);WSR17:=(INDEXC-MA(INDEXC,8))/MA(INDEXC,8);WSR18:=(INDEXC-MA(INDEXC,18))/MA(INDEXC,18);WSR19:=(WSR16 + WSR17 + WSR18)/3;WSR20:=(C-MA(C,3))/MA(C,3);WSR21:=(C-MA(C,8))/MA(C,8);WSR22:=(C-MA(C,18))/MA(C,18);WSR23:=(WSR20 + WSR21 + WSR22)/3;WSR24:=(WSR19>REF(WSR19,1) AND CROSS(WSR23,WSR19))*50;WSR25:=(INDEXC-MA(INDEXC,6))/MA(INDEXC,6);WSR26:=(INDEXC-MA(INDEXC,12))/MA(INDEXC,12);WSR27:=(INDEXC-MA(INDEXC,24))/MA(INDEXC,24);WSR28:=(WSR25 + WSR26 + WSR27)/3;WSR29:=(C-MA(C,6))/MA(C,6);WSR30:=(C-MA(C,12))/MA(C,12);WSR31:=(C-MA(C,24))/MA(C,24);WSR32:=(WSR29 + WSR30 + WSR31)/3;WSR33:=(WSR28>REF(WSR28,1) AND CROSS(WSR32,WSR28))*20;WSR34:=(INDEXC-MA(INDEXC,13))/MA(INDEXC,13);WSR35:=(INDEXC-MA(INDEXC,34))/MA(INDEXC,34);WSR36:=(INDEXC-MA(INDEXC,55))/MA(INDEXC,55);WSR37:=(WSR34 + WSR35 + WSR36)/3;WSR38:=(C-MA(C,13))/MA(C,13);WSR39:=(C-MA(C,34))/MA(C,34);WSR40:=(C-MA(C,55))/MA(C,55);WSR41:=(WSR38 + WSR39 + WSR40)/3;WSR42:=(WSR37>REF(WSR37,1) AND CROSS(WSR41,WSR37));WSR43:=(INDEXC-MA(INDEXC,13))/MA(INDEXC,13);WSR44:=(INDEXC-MA(INDEXC,34))/MA(INDEXC,34);WSR45:=(INDEXC-MA(INDEXC,55))/MA(INDEXC,55);WSR46:=(WSR43 + WSR44 + WSR45)/3;WSR47:=(C-MA(C,30))/MA(C,30);WSR48:=(C-MA(C,60))/MA(C,60);WSR49:=(C-MA(C,90))/MA(C,90);WSR50:=(WSR47 + WSR48 + WSR49)/3;WSR51:=(WSR46>REF(WSR46,1) AND CROSS(WSR50,WSR46));WSR52:=(INDEXC-MA(INDEXC,34))/MA(INDEXC,34);WSR53:=(INDEXC-MA(INDEXC,55))/MA(INDEXC,55);WSR54:=(INDEXC-MA(INDEXC,89))/MA(INDEXC,89);WSR55:=(WSR52 + WSR53 + WSR54)/3;WSR56:=(C-MA(C,60))/MA(C,60);WSR57:=(C-MA(C,120))/MA(C,120);WSR58:=(C-MA(C,220))/MA(C,220);WSR59:=(WSR56 + WSR57 + WSR58)/3;WSR60:=(WSR59>REF(WSR59,1) AND CROSS(WSR59,WSR55));WSR61:=WSR24 OR WSR33 OR WSR42 OR WSR51 OR WSR60;DRAWTEXT(WSR61 AND H<Y396 AND FILTER(WSR61,5),良机区3,'★'),COLOR00FFFF; DRAWTEXT(WSR61 AND H<Y396 AND FILTER(WSR61,5),良机区3*0.97,'机'),COLOR00FFFF;时间之窗:=HHVBARS(ZIG(3,M)>REF(ZIG(3,M),1)AND REF(ZIG(3,M), 1)<REF(ZIG(3,M), 2),N);DRAWTEXT(时间之窗=2,L*0.94,'★3天'),COLORRED;DRAWTEXT(时间之窗=4,H*1.06,'★5天'),COLORGREEN;DRAWTEXT(时间之窗=7,L*0.94,'★8天'),COLORRED;DRAWTEXT(时间之窗=12,H*1.06,'★13天'),COLORGREEN;DRAWTEXT(时间之窗=20,L*0.94,'★21天'),COLORLIRED;DRAWTEXT(时间之窗=33,H*1.06,'★34天'),COLORLIGREEN;DRAWTEXT(时间之窗=54,L*0.94,'★55天'),COLORLIRED;{DRAWTEXT(时间之窗=88,H*1.06,'★89天'),COLORLIGREEN;DRAWTEXT(时间之窗=143,L*0.94,'★144天'),COLORLIRED;DRAWTEXT(时间之窗=232,H*1.06,'★233天'),COLORLIGREEN;DRAWTEXT(时间之窗=376,L*0.94,'★377天'),COLORLIRED;DRAWTEXT(时间之窗=609,H*1.06,'★610天'),COLORLIGREEN; }GET:ZIG(3,3),COLORFFFFFF;PL5:=ZIG(3,5);EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) ANDREF(ZIG(3,5),2)>=REF(ZIG(3,5),3);PL10:=ZIG(3,10);EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);PL20:=ZIG(3,20);EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);PL40:=ZIG(3,40);走强1:=BARSLAST(PL5<REF(PL5,1));走弱1:=BARSLAST(PL5>REF(PL5,1));走强2:=BARSLAST(PL10<REF(PL10,1));走弱2:=BARSLAST(PL10>REF(PL10,1));走强3:=BARSLAST(PL20<REF(PL20,1));走弱3:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'(A)'),COLORFFFF00;DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'(B)'),COLORFF00FF;DRAWTEXT(EN2 AND ZTJZ5=1,L*0.98,'(C)'),COLOR0000FF;DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.02,'⑴'),COLOR0000FF; DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.98,'⑵'),COLOR0000FF; DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.02,'⑶'),COLOR0000FF; DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.98,'⑷'),COLOR0000FF; DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.02,'⑸'),COLOR0000FF; DRAWTEXT(EN2 AND DTJZ10=1,L*0.93,'Ⅰ'),COLORFF00FF;DRAWTEXT(EX2 AND DTJD10=2,H*1.05,'Ⅱ'),COLORFFFF00;DRAWTEXT(EN3 AND ZTJZ10=1,L*0.93,'Ⅲ'),COLOR0000FF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.03,'①'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.95,'②'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,H*1.03,'③'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.95,'④'),LINETHICK3,COLOR00FFFF;V1:=(C+H+L)/3;MA3:=MA(V1,2);MA5:=MA(V1,5);DRAWBAND(MA2,RGB(200,50,55),MA5,RGB(0,100,50));遵:IF(MA2>=MA5,MA2,DRAWNULL),COLORRED;守:IF(MA5>=MA2,MA5,DRAWNULL),COLORFF9900;纪:IF(MA2>=MA5,MA5,DRAWNULL),COLOR00FFFF;律:IF(MA5>=MA2,MA2,DRAWNULL),COLOR00FF00;N1:=BARSLAST(CROSS(MA3,MA5));N2:=BARSLAST(CROSS(MA5,MA3));N:=IF(N1<N2,N1+1,0-N2-1);STICKLINE(N>0,C,O,3,0),COLOR000099;STICKLINE(N>0,C,O,0.9,0),COLOR0000CC;STICKLINE(N>0,C,O,0.2,0),COLOR0000FF;STICKLINE(N<0,C,O,3,0),COLOR888800;STICKLINE(N<0,C,O,0.9,0),COLORCCCC00;STICKLINE(N<0,C,O,0.2,0),COLORFFFF00;======================================================{Y395}股价67:="Y366";增幅67:=XMA(XMA(XMA(股价67,3),3),3)-REF(XMA(XMA(XMA(股价67,3),3),3),1); X367:=XMA(股价67,3);J367:=(XMA(股价67,3)*3+0.5*股价67-0.5*REF(股价67,1)+增幅67)/3;Y367:=IFF(CURRBARSCOUNT=1,J367,X367);股价68:=Y367;增幅68:=XMA(XMA(XMA(股价68,3),3),3)-REF(XMA(XMA(XMA(股价68,3),3),3),1); X368:=XMA(股价68,3);J368:=(XMA(股价68,3)*3+0.5*股价68-0.5*REF(股价68,1)+增幅68)/3;Y368:=IFF(CURRBARSCOUNT=1,J368,X368);股价69:=Y368;增幅69:=XMA(XMA(XMA(股价69,3),3),3)-REF(XMA(XMA(XMA(股价69,3),3),3),1); X369:=XMA(股价69,3);J369:=(XMA(股价69,3)*3+0.5*股价69-0.5*REF(股价69,1)+增幅69)/3;Y369:=IFF(CURRBARSCOUNT=1,J369,X369);股价70:=Y369;增幅70:=XMA(XMA(XMA(股价70,3),3),3)-REF(XMA(XMA(XMA(股价70,3),3),3),1); X370:=XMA(股价70,3);J370:=(XMA(股价70,3)*3+0.5*股价70-0.5*REF(股价70,1)+增幅70)/3;Y370:=IFF(CURRBARSCOUNT=1,J370,X370);股价71:=Y370;增幅71:=XMA(XMA(XMA(股价71,3),3),3)-REF(XMA(XMA(XMA(股价71,3),3),3),1); X371:=XMA(股价71,3);J371:=(XMA(股价71,3)*3+0.5*股价71-0.5*REF(股价71,1)+增幅71)/3;Y371:=IFF(CURRBARSCOUNT=1,J371,X371);股价72:=Y371;增幅72:=XMA(XMA(XMA(股价72,3),3),3)-REF(XMA(XMA(XMA(股价72,3),3),3),1); X372:=XMA(股价72,3);J372:=(XMA(股价72,3)*3+0.5*股价72-0.5*REF(股价72,1)+增幅72)/3;Y372:=IFF(CURRBARSCOUNT=1,J372,X372);股价73:=Y372;增幅73:=XMA(XMA(XMA(股价73,3),3),3)-REF(XMA(XMA(XMA(股价73,3),3),3),1); X373:=XMA(股价73,3);J373:=(XMA(股价73,3)*3+0.5*股价73-0.5*REF(股价73,1)+增幅73)/3;Y373:=IFF(CURRBARSCOUNT=1,J373,X373);股价74:=Y373;增幅74:=XMA(XMA(XMA(股价74,3),3),3)-REF(XMA(XMA(XMA(股价74,3),3),3),1); X374:=XMA(股价74,3);J374:=(XMA(股价74,3)*3+0.5*股价74-0.5*REF(股价74,1)+增幅74)/3;Y374:=IFF(CURRBARSCOUNT=1,J374,X374);股价75:=Y374;增幅75:=XMA(XMA(XMA(股价75,3),3),3)-REF(XMA(XMA(XMA(股价75,3),3),3),1); X375:=XMA(股价75,3);J375:=(XMA(股价75,3)*3+0.5*股价75-0.5*REF(股价75,1)+增幅75)/3;Y375:=IFF(CURRBARSCOUNT=1,J375,X375);股价76:=Y375;增幅76:=XMA(XMA(XMA(股价76,3),3),3)-REF(XMA(XMA(XMA(股价76,3),3),3),1); X376:=XMA(股价76,3);J376:=(XMA(股价76,3)*3+0.5*股价76-0.5*REF(股价76,1)+增幅76)/3;Y376:=IFF(CURRBARSCOUNT=1,J376,X376);股价77:=Y376;增幅77:=XMA(XMA(XMA(股价77,3),3),3)-REF(XMA(XMA(XMA(股价77,3),3),3),1); X377:=XMA(股价77,3);J377:=(XMA(股价77,3)*3+0.5*股价77-0.5*REF(股价77,1)+增幅77)/3;Y377:=IFF(CURRBARSCOUNT=1,J377,X377);股价78:=Y377;增幅78:=XMA(XMA(XMA(股价78,3),3),3)-REF(XMA(XMA(XMA(股价78,3),3),3),1); X378:=XMA(股价78,3);J378:=(XMA(股价78,3)*3+0.5*股价78-0.5*REF(股价78,1)+增幅78)/3;Y378:=IFF(CURRBARSCOUNT=1,J378,X378);股价79:=Y378;增幅79:=XMA(XMA(XMA(股价79,3),3),3)-REF(XMA(XMA(XMA(股价79,3),3),3),1); X379:=XMA(股价79,3);J379:=(XMA(股价79,3)*3+0.5*股价79-0.5*REF(股价79,1)+增幅79)/3;Y379:=IFF(CURRBARSCOUNT=1,J379,X379);股价80:=Y379;增幅80:=XMA(XMA(XMA(股价80,3),3),3)-REF(XMA(XMA(XMA(股价80,3),3),3),1); X380:=XMA(股价80,3);J380:=(XMA(股价80,3)*3+0.5*股价80-0.5*REF(股价80,1)+增幅80)/3;Y380:=IFF(CURRBARSCOUNT=1,J380,X380);股价81:=Y380;增幅81:=XMA(XMA(XMA(股价81,3),3),3)-REF(XMA(XMA(XMA(股价81,3),3),3),1); X381:=XMA(股价81,3);J381:=(XMA(股价81,3)*3+0.5*股价81-0.5*REF(股价81,1)+增幅81)/3;Y381:=IFF(CURRBARSCOUNT=1,J381,X381);股价82:=Y381;增幅82:=XMA(XMA(XMA(股价82,3),3),3)-REF(XMA(XMA(XMA(股价82,3),3),3),1); X382:=XMA(股价82,3);J382:=(XMA(股价82,3)*3+0.5*股价82-0.5*REF(股价82,1)+增幅82)/3;Y382:=IFF(CURRBARSCOUNT=1,J382,X382);股价83:=Y382;增幅83:=XMA(XMA(XMA(股价83,3),3),3)-REF(XMA(XMA(XMA(股价83,3),3),3),1); X383:=XMA(股价83,3);J383:=(XMA(股价83,3)*3+0.5*股价83-0.5*REF(股价83,1)+增幅83)/3;Y383:=IFF(CURRBARSCOUNT=1,J383,X383);股价84:=Y383;增幅84:=XMA(XMA(XMA(股价84,3),3),3)-REF(XMA(XMA(XMA(股价84,3),3),3),1); X384:=XMA(股价84,3);J384:=(XMA(股价84,3)*3+0.5*股价84-0.5*REF(股价84,1)+增幅84)/3;Y384:=IFF(CURRBARSCOUNT=1,J384,X384);股价85:=Y384;增幅85:=XMA(XMA(XMA(股价85,3),3),3)-REF(XMA(XMA(XMA(股价85,3),3),3),1); X385:=XMA(股价85,3);J385:=(XMA(股价85,3)*3+0.5*股价85-0.5*REF(股价85,1)+增幅85)/3;Y385:=IFF(CURRBARSCOUNT=1,J385,X385);股价86:=Y385;增幅86:=XMA(XMA(XMA(股价86,3),3),3)-REF(XMA(XMA(XMA(股价86,3),3),3),1); X386:=XMA(股价86,3);J386:=(XMA(股价86,3)*3+0.5*股价86-0.5*REF(股价86,1)+增幅86)/3;Y386:=IFF(CURRBARSCOUNT=1,J386,X386);股价87:=Y386;增幅87:=XMA(XMA(XMA(股价87,3),3),3)-REF(XMA(XMA(XMA(股价87,3),3),3),1); X387:=XMA(股价87,3);J387:=(XMA(股价87,3)*3+0.5*股价87-0.5*REF(股价87,1)+增幅87)/3;Y387:=IFF(CURRBARSCOUNT=1,J387,X387);股价88:=Y387;增幅88:=XMA(XMA(XMA(股价88,3),3),3)-REF(XMA(XMA(XMA(股价88,3),3),3),1); X388:=XMA(股价88,3);J388:=(XMA(股价88,3)*3+0.5*股价88-0.5*REF(股价88,1)+增幅88)/3;Y388:=IFF(CURRBARSCOUNT=1,J388,X388);股价89:=Y388;增幅89:=XMA(XMA(XMA(股价89,3),3),3)-REF(XMA(XMA(XMA(股价89,3),3),3),1); X389:=XMA(股价89,3);J389:=(XMA(股价89,3)*3+0.5*股价89-0.5*REF(股价89,1)+增幅89)/3;Y389:IFF(CURRBARSCOUNT=1,J389,X389);股价90:=Y389;增幅90:=XMA(XMA(XMA(股价90,3),3),3)-REF(XMA(XMA(XMA(股价90,3),3),3),1); X390:=XMA(股价90,3);J390:=(XMA(股价90,3)*3+0.5*股价90-0.5*REF(股价90,1)+增幅90)/3;Y390:=IFF(CURRBARSCOUNT=1,J390,X390);股价91:=Y390;增幅91:=XMA(XMA(XMA(股价91,3),3),3)-REF(XMA(XMA(XMA(股价91,3),3),3),1); X391:=XMA(股价91,3);J391:=(XMA(股价91,3)*3+0.5*股价91-0.5*REF(股价91,1)+增幅91)/3;Y391:=IFF(CURRBARSCOUNT=1,J391,X391);股价92:=Y391;增幅92:=XMA(XMA(XMA(股价92,3),3),3)-REF(XMA(XMA(XMA(股价92,3),3),3),1); X392:=XMA(股价92,3);J392:=(XMA(股价92,3)*3+0.5*股价92-0.5*REF(股价92,1)+增幅92)/3;Y392:=IFF(CURRBARSCOUNT=1,J392,X392);股价93:=Y392;增幅93:=XMA(XMA(XMA(股价93,3),3),3)-REF(XMA(XMA(XMA(股价93,3),3),3),1); X393:=XMA(股价93,3);J393:=(XMA(股价93,3)*3+0.5*股价93-0.5*REF(股价93,1)+增幅93)/3;Y393:=IFF(CURRBARSCOUNT=1,J393,X393);股价94:=Y393;增幅94:=XMA(XMA(XMA(股价94,3),3),3)-REF(XMA(XMA(XMA(股价94,3),3),3),1); X394:=XMA(股价94,3);J394:=(XMA(股价94,3)*3+0.5*股价94-0.5*REF(股价94,1)+增幅94)/3;Y394:=IFF(CURRBARSCOUNT=1,J394,X394);股价95:=Y394;增幅95:=XMA(XMA(XMA(股价95,3),3),3)-REF(XMA(XMA(XMA(股价95,3),3),3),1); X395:=XMA(股价95,3);J395:=(XMA(股价95,3)*3+0.5*股价95-0.5*REF(股价95,1)+增幅95)/3;Y395:IFF(CURRBARSCOUNT=1,J395,X395);==============================================================={Y366}股价34:="Y333";增幅34:=XMA(XMA(XMA(股价34,3),3),3)-REF(XMA(XMA(XMA(股价34,3),3),3),1); X334:=XMA(股价34,3);J334:=(XMA(股价34,3)*3+0.5*股价34-0.5*REF(股价34,1)+增幅34)/3;Y334:=IFF(CURRBARSCOUNT=1,J334,X334);股价35:=Y334;增幅35:=XMA(XMA(XMA(股价35,3),3),3)-REF(XMA(XMA(XMA(股价35,3),3),3),1); X335:=XMA(股价35,3);J335:=(XMA(股价35,3)*3+0.5*股价35-0.5*REF(股价35,1)+增幅35)/3;Y335:=IFF(CURRBARSCOUNT=1,J335,X335);股价36:=Y335;增幅36:=XMA(XMA(XMA(股价36,3),3),3)-REF(XMA(XMA(XMA(股价36,3),3),3),1); X336:=XMA(股价36,3);J336:=(XMA(股价36,3)*3+0.5*股价36-0.5*REF(股价36,1)+增幅36)/3;Y336:=IFF(CURRBARSCOUNT=1,J336,X336);股价37:=Y336;增幅37:=XMA(XMA(XMA(股价37,3),3),3)-REF(XMA(XMA(XMA(股价37,3),3),3),1); X337:=XMA(股价37,3);J337:=(XMA(股价37,3)*3+0.5*股价37-0.5*REF(股价37,1)+增幅37)/3;Y337:=IFF(CURRBARSCOUNT=1,J337,X337);股价38:=Y337;增幅38:=XMA(XMA(XMA(股价38,3),3),3)-REF(XMA(XMA(XMA(股价38,3),3),3),1); X338:=XMA(股价38,3);J338:=(XMA(股价38,3)*3+0.5*股价38-0.5*REF(股价38,1)+增幅38)/3;Y338:=IFF(CURRBARSCOUNT=1,J338,X338);股价39:=Y338;增幅39:=XMA(XMA(XMA(股价39,3),3),3)-REF(XMA(XMA(XMA(股价39,3),3),3),1); X339:=XMA(股价39,3);J339:=(XMA(股价39,3)*3+0.5*股价39-0.5*REF(股价39,1)+增幅39)/3;Y339:=IFF(CURRBARSCOUNT=1,J339,X339);股价40:=Y339;增幅40:=XMA(XMA(XMA(股价40,3),3),3)-REF(XMA(XMA(XMA(股价40,3),3),3),1); X340:=XMA(股价40,3);J340:=(XMA(股价40,3)*3+0.5*股价40-0.5*REF(股价40,1)+增幅40)/3;Y340:=IFF(CURRBARSCOUNT=1,J340,X340);股价41:=Y340;增幅41:=XMA(XMA(XMA(股价41,3),3),3)-REF(XMA(XMA(XMA(股价41,3),3),3),1); X341:=XMA(股价41,3);J341:=(XMA(股价41,3)*3+0.5*股价41-0.5*REF(股价41,1)+增幅41)/3;Y341:=IFF(CURRBARSCOUNT=1,J341,X341);股价42:=Y341;增幅42:=XMA(XMA(XMA(股价42,3),3),3)-REF(XMA(XMA(XMA(股价42,3),3),3),1); X342:=XMA(股价42,3);J342:=(XMA(股价42,3)*3+0.5*股价42-0.5*REF(股价42,1)+增幅42)/3;Y342:=IFF(CURRBARSCOUNT=1,J342,X342);股价43:=Y342;增幅43:=XMA(XMA(XMA(股价43,3),3),3)-REF(XMA(XMA(XMA(股价43,3),3),3),1); X343:=XMA(股价43,3);J343:=(XMA(股价43,3)*3+0.5*股价43-0.5*REF(股价43,1)+增幅43)/3;Y343:=IFF(CURRBARSCOUNT=1,J343,X343);股价44:=Y343;增幅44:=XMA(XMA(XMA(股价44,3),3),3)-REF(XMA(XMA(XMA(股价44,3),3),3),1); X344:=XMA(股价44,3);J344:=(XMA(股价44,3)*3+0.5*股价44-0.5*REF(股价44,1)+增幅44)/3;Y344:=IFF(CURRBARSCOUNT=1,J344,X344);股价45:=Y344;增幅45:=XMA(XMA(XMA(股价45,3),3),3)-REF(XMA(XMA(XMA(股价45,3),3),3),1); X345:=XMA(股价45,3);J345:=(XMA(股价45,3)*3+0.5*股价45-0.5*REF(股价45,1)+增幅45)/3;Y345:=IFF(CURRBARSCOUNT=1,J345,X345);股价46:=Y345;增幅46:=XMA(XMA(XMA(股价46,3),3),3)-REF(XMA(XMA(XMA(股价46,3),3),3),1); X346:=XMA(股价46,3);J346:=(XMA(股价46,3)*3+0.5*股价46-0.5*REF(股价46,1)+增幅46)/3;Y346:=IFF(CURRBARSCOUNT=1,J346,X346);股价47:=Y346;增幅47:=XMA(XMA(XMA(股价47,3),3),3)-REF(XMA(XMA(XMA(股价47,3),3),3),1); X347:=XMA(股价47,3);J347:=(XMA(股价47,3)*3+0.5*股价47-0.5*REF(股价47,1)+增幅47)/3;Y347:=IFF(CURRBARSCOUNT=1,J347,X347);股价48:=Y347;增幅48:=XMA(XMA(XMA(股价48,3),3),3)-REF(XMA(XMA(XMA(股价48,3),3),3),1); X348:=XMA(股价48,3);J348:=(XMA(股价48,3)*3+0.5*股价48-0.5*REF(股价48,1)+增幅48)/3;Y348:=IFF(CURRBARSCOUNT=1,J348,X348);股价49:=Y348;增幅49:=XMA(XMA(XMA(股价49,3),3),3)-REF(XMA(XMA(XMA(股价49,3),3),3),1); X349:=XMA(股价49,3);J349:=(XMA(股价49,3)*3+0.5*股价49-0.5*REF(股价49,1)+增幅49)/3;Y349:=IFF(CURRBARSCOUNT=1,J349,X349);股价50:=Y349;增幅50:=XMA(XMA(XMA(股价50,3),3),3)-REF(XMA(XMA(XMA(股价50,3),3),3),1); X350:=XMA(股价50,3);J350:=(XMA(股价50,3)*3+0.5*股价50-0.5*REF(股价50,1)+增幅50)/3;Y350:=IFF(CURRBARSCOUNT=1,J350,X350);股价51:=Y350;增幅51:=XMA(XMA(XMA(股价51,3),3),3)-REF(XMA(XMA(XMA(股价51,3),3),3),1); X351:=XMA(股价51,3);J351:=(XMA(股价51,3)*3+0.5*股价51-0.5*REF(股价51,1)+增幅51)/3;Y351:=IFF(CURRBARSCOUNT=1,J351,X351);股价52:=Y351;增幅52:=XMA(XMA(XMA(股价52,3),3),3)-REF(XMA(XMA(XMA(股价52,3),3),3),1); X352:=XMA(股价52,3);J352:=(XMA(股价52,3)*3+0.5*股价52-0.5*REF(股价52,1)+增幅52)/3;Y352:=IFF(CURRBARSCOUNT=1,J352,X352);股价53:=Y352;增幅53:=XMA(XMA(XMA(股价53,3),3),3)-REF(XMA(XMA(XMA(股价53,3),3),3),1); X353:=XMA(股价53,3);J353:=(XMA(股价53,3)*3+0.5*股价53-0.5*REF(股价53,1)+增幅53)/3;Y353:=IFF(CURRBARSCOUNT=1,J353,X353);股价54:=Y353;增幅54:=XMA(XMA(XMA(股价54,3),3),3)-REF(XMA(XMA(XMA(股价54,3),3),3),1); X354:=XMA(股价54,3);J354:=(XMA(股价54,3)*3+0.5*股价54-0.5*REF(股价54,1)+增幅54)/3;Y354:=IFF(CURRBARSCOUNT=1,J354,X354);股价55:=Y354;增幅55:=XMA(XMA(XMA(股价55,3),3),3)-REF(XMA(XMA(XMA(股价55,3),3),3),1); X355:=XMA(股价55,3);J355:=(XMA(股价55,3)*3+0.5*股价55-0.5*REF(股价55,1)+增幅55)/3;Y355:=IFF(CURRBARSCOUNT=1,J355,X355);股价56:=Y355;增幅56:=XMA(XMA(XMA(股价56,3),3),3)-REF(XMA(XMA(XMA(股价56,3),3),3),1); X356:=XMA(股价56,3);J356:=(XMA(股价56,3)*3+0.5*股价56-0.5*REF(股价56,1)+增幅56)/3;Y356:=IFF(CURRBARSCOUNT=1,J356,X356);股价57:=Y356;增幅57:=XMA(XMA(XMA(股价57,3),3),3)-REF(XMA(XMA(XMA(股价57,3),3),3),1); X357:=XMA(股价57,3);J357:=(XMA(股价57,3)*3+0.5*股价57-0.5*REF(股价57,1)+增幅57)/3;Y357:=IFF(CURRBARSCOUNT=1,J357,X357);股价58:=Y357;增幅58:=XMA(XMA(XMA(股价58,3),3),3)-REF(XMA(XMA(XMA(股价58,3),3),3),1); X358:=XMA(股价58,3);J358:=(XMA(股价58,3)*3+0.5*股价58-0.5*REF(股价58,1)+增幅58)/3;Y358:=IFF(CURRBARSCOUNT=1,J358,X358);股价59:=Y358;增幅59:=XMA(XMA(XMA(股价59,3),3),3)-REF(XMA(XMA(XMA(股价59,3),3),3),1); X359:=XMA(股价59,3);J359:=(XMA(股价59,3)*3+0.5*股价59-0.5*REF(股价59,1)+增幅59)/3;Y359:=IFF(CURRBARSCOUNT=1,J359,X359);股价60:=Y359;增幅60:=XMA(XMA(XMA(股价60,3),3),3)-REF(XMA(XMA(XMA(股价60,3),3),3),1); X360:=XMA(股价60,3);J360:=(XMA(股价60,3)*3+0.5*股价60-0.5*REF(股价60,1)+增幅60)/3;Y360:=IFF(CURRBARSCOUNT=1,J360,X360);股价61:=Y360;增幅61:=XMA(XMA(XMA(股价61,3),3),3)-REF(XMA(XMA(XMA(股价61,3),3),3),1); X361:=XMA(股价61,3);J361:=(XMA(股价61,3)*3+0.5*股价61-0.5*REF(股价61,1)+增幅61)/3;Y361:=IFF(CURRBARSCOUNT=1,J361,X361);股价62:=Y361;增幅62:=XMA(XMA(XMA(股价62,3),3),3)-REF(XMA(XMA(XMA(股价62,3),3),3),1); X362:=XMA(股价62,3);J362:=(XMA(股价62,3)*3+0.5*股价62-0.5*REF(股价62,1)+增幅62)/3;Y362:=IFF(CURRBARSCOUNT=1,J362,X362);股价63:=Y362;增幅63:=XMA(XMA(XMA(股价63,3),3),3)-REF(XMA(XMA(XMA(股价63,3),3),3),1); X363:=XMA(股价63,3);J363:=(XMA(股价63,3)*3+0.5*股价63-0.5*REF(股价63,1)+增幅63)/3;Y363:=IFF(CURRBARSCOUNT=1,J363,X363);股价64:=Y363;增幅64:=XMA(XMA(XMA(股价64,3),3),3)-REF(XMA(XMA(XMA(股价64,3),3),3),1); X364:=XMA(股价64,3);J364:=(XMA(股价64,3)*3+0.5*股价64-0.5*REF(股价64,1)+增幅64)/3;Y364:=IFF(CURRBARSCOUNT=1,J364,X364);股价65:=Y364;增幅65:=XMA(XMA(XMA(股价65,3),3),3)-REF(XMA(XMA(XMA(股价65,3),3),3),1); X365:=XMA(股价65,3);J365:=(XMA(股价65,3)*3+0.5*股价65-0.5*REF(股价65,1)+增幅65)/3;Y365:=IFF(CURRBARSCOUNT=1,J365,X365);股价66:=Y365;增幅66:=XMA(XMA(XMA(股价66,3),3),3)-REF(XMA(XMA(XMA(股价66,3),3),3),1); X366:=XMA(股价66,3);J366:=(XMA(股价66,3)*3+0.5*股价66-0.5*REF(股价66,1)+增幅66)/3;Y366:IFF(CURRBARSCOUNT=1,J366,X366);==========================================================={Y333}股价1:=(C+H+L)/3;增幅1:=XMA(XMA(XMA(股价1,3),3),3)-REF(XMA(XMA(XMA(股价1,3),3),3),1);X31:=XMA(股价1,3);J31:=(XMA(股价1,3)*3+0.5*股价1-0.5*REF(股价1,1)+增幅1)/3;Y31:=IFF(CURRBARSCOUNT=1,J31,X31);股价2:=Y31;增幅2:=XMA(XMA(XMA(股价2,3),3),3)-REF(XMA(XMA(XMA(股价2,3),3),3),1); X32:=XMA(股价2,3);J32:=(XMA(股价2,3)*3+0.5*股价2-0.5*REF(股价2,1)+增幅2)/3;Y32:=IFF(CURRBARSCOUNT=1,J32,X32);股价3:=Y32;增幅3:=XMA(XMA(XMA(股价3,3),3),3)-REF(XMA(XMA(XMA(股价3,3),3),3),1); X33:=XMA(股价3,3);J33:=(XMA(股价3,3)*3+0.5*股价3-0.5*REF(股价3,1)+增幅3)/3;Y33:=IFF(CURRBARSCOUNT=1,J33,X33);股价4:=Y33;增幅4:=XMA(XMA(XMA(股价4,3),3),3)-REF(XMA(XMA(XMA(股价4,3),3),3),1); X34:=XMA(股价4,3);J34:=(XMA(股价4,3)*3+0.5*股价4-0.5*REF(股价4,1)+增幅4)/3;Y34:=IFF(CURRBARSCOUNT=1,J34,X34);股价5:=Y34;增幅5:=XMA(XMA(XMA(股价5,3),3),3)-REF(XMA(XMA(XMA(股价5,3),3),3),1); X35:=XMA(股价5,3);J35:=(XMA(股价5,3)*3+0.5*股价5-0.5*REF(股价5,1)+增幅5)/3;Y35:=IFF(CURRBARSCOUNT=1,J35, X35);股价6:=Y35;增幅6:=XMA(XMA(XMA(股价6,3),3),3)-REF(XMA(XMA(XMA(股价6,3),3),3),1); X36:=XMA(股价6,3);J36:=(XMA(股价6,3)*3+0.5*股价6-0.5*REF(股价6,1)+增幅6)/3;Y36:=IFF(CURRBARSCOUNT=1,J36,X36);股价7:=Y36;增幅7:=XMA(XMA(XMA(股价7,3),3),3)-REF(XMA(XMA(XMA(股价7,3),3),3),1); X37:=XMA(股价7,3);J37:=(XMA(股价7,3)*3+0.5*股价7-0.5*REF(股价7,1)+增幅7)/3;Y37:=IFF(CURRBARSCOUNT=1,J37,X37);股价8:=Y37;增幅8:=XMA(XMA(XMA(股价8,3),3),3)-REF(XMA(XMA(XMA(股价8,3),3),3),1); X38:=XMA(股价8,3);J38:=(XMA(股价8,3)*3+0.5*股价8-0.5*REF(股价8,1)+增幅8)/3;Y38:=IFF(CURRBARSCOUNT=1,J38,X38);股价9:=Y38;增幅9:=XMA(XMA(XMA(股价9,3),3),3)-REF(XMA(XMA(XMA(股价9,3),3),3),1); X39:=XMA(股价9,3);J39:=(XMA(股价9,3)*3+0.5*股价9-0.5*REF(股价9,1)+增幅9)/3;Y39:=IFF(CURRBARSCOUNT=1,J39,X39);股价10:=Y39;增幅10:=XMA(XMA(XMA(股价10,3),3),3)-REF(XMA(XMA(XMA(股价10,3),3),3),1); X310:=XMA(股价10,3);J310:=(XMA(股价10,3)*3+0.5*股价10-0.5*REF(股价10,1)+增幅10)/3;Y310:=IFF(CURRBARSCOUNT=1,J310,X310);股价11:=Y310;增幅11:=XMA(XMA(XMA(股价11,3),3),3)-REF(XMA(XMA(XMA(股价11,3),3),3),1); X311:=XMA(股价11,3);J311:=(XMA(股价11,3)*3+0.5*股价11-0.5*REF(股价11,1)+增幅11)/3;Y311:=IFF(CURRBARSCOUNT=1,J311,X311);股价12:=Y311;增幅12:=XMA(XMA(XMA(股价12,3),3),3)-REF(XMA(XMA(XMA(股价12,3),3),3),1); X312:=XMA(股价12,3);J312:=(XMA(股价12,3)*3+0.5*股价12-0.5*REF(股价12,1)+增幅12)/3;Y312:=IFF(CURRBARSCOUNT=1,J312,X312);股价13:=Y312;增幅13:=XMA(XMA(XMA(股价13,3),3),3)-REF(XMA(XMA(XMA(股价13,3),3),3),1); X313:=XMA(股价13,3);J313:=(XMA(股价13,3)*3+0.5*股价13-0.5*REF(股价13,1)+增幅13)/3;Y313:=IFF(CURRBARSCOUNT=1,J313,X313);股价14:=Y313;增幅14:=XMA(XMA(XMA(股价14,3),3),3)-REF(XMA(XMA(XMA(股价14,3),3),3),1); X314:=XMA(股价14,3);J314:=(XMA(股价14,3)*3+0.5*股价14-0.5*REF(股价14,1)+增幅14)/3;Y314:=IFF(CURRBARSCOUNT=1,J314,X314);股价15:=Y314;增幅15:=XMA(XMA(XMA(股价15,3),3),3)-REF(XMA(XMA(XMA(股价15,3),3),3),1); X315:=XMA(股价15,3);J315:=(XMA(股价15,3)*3+0.5*股价15-0.5*REF(股价15,1)+增幅15)/3;Y315:=IFF(CURRBARSCOUNT=1,J315,X315);股价16:=Y315;增幅16:=XMA(XMA(XMA(股价16,3),3),3)-REF(XMA(XMA(XMA(股价16,3),3),3),1); X316:=XMA(股价16,3);J316:=(XMA(股价16,3)*3+0.5*股价16-0.5*REF(股价16,1)+增幅16)/3;Y316:=IFF(CURRBARSCOUNT=1,J316,X316);股价17:=Y316;增幅17:=XMA(XMA(XMA(股价17,3),3),3)-REF(XMA(XMA(XMA(股价17,3),3),3),1); X317:=XMA(股价17,3);J317:=(XMA(股价17,3)*3+0.5*股价17-0.5*REF(股价17,1)+增幅17)/3;Y317:=IFF(CURRBARSCOUNT=1,J317,X317);股价18:=Y317;增幅18:=XMA(XMA(XMA(股价18,3),3),3)-REF(XMA(XMA(XMA(股价18,3),3),3),1);X318:=XMA(股价18,3);J318:=(XMA(股价18,3)*3+0.5*股价18-0.5*REF(股价18,1)+增幅18)/3;Y318:=IFF(CURRBARSCOUNT=1,J318,X318);股价19:=Y318;增幅19:=XMA(XMA(XMA(股价19,3),3),3)-REF(XMA(XMA(XMA(股价19,3),3),3),1); X319:=XMA(股价19,3);J319:=(XMA(股价19,3)*3+0.5*股价19-0.5*REF(股价19,1)+增幅19)/3;Y319:=IFF(CURRBARSCOUNT=1,J319,X319);股价20:=Y319;增幅20:=XMA(XMA(XMA(股价20,3),3),3)-REF(XMA(XMA(XMA(股价20,3),3),3),1); X320:=XMA(股价20,3);J320:=(XMA(股价20,3)*3+0.5*股价20-0.5*REF(股价20,1)+增幅20)/3;Y320:=IFF(CURRBARSCOUNT=1,J320,X320);股价21:=Y320;增幅21:=XMA(XMA(XMA(股价21,3),3),3)-REF(XMA(XMA(XMA(股价21,3),3),3),1); X321:=XMA(股价21,3);J321:=(XMA(股价21,3)*3+0.5*股价21-0.5*REF(股价21,1)+增幅21)/3;Y321:=IFF(CURRBARSCOUNT=1,J321,X321);股价22:=Y321;增幅22:=XMA(XMA(XMA(股价22,3),3),3)-REF(XMA(XMA(XMA(股价22,3),3),3),1); X322:=XMA(股价22,3);J322:=(XMA(股价22,3)*3+0.5*股价22-0.5*REF(股价22,1)+增幅22)/3;Y322:=IFF(CURRBARSCOUNT=1,J322,X322);股价23:=Y322;增幅23:=XMA(XMA(XMA(股价23,3),3),3)-REF(XMA(XMA(XMA(股价23,3),3),3),1); X323:=XMA(股价23,3);J323:=(XMA(股价23,3)*3+0.5*股价23-0.5*REF(股价23,1)+增幅23)/3;Y323:=IFF(CURRBARSCOUNT=1,J323,X323);股价24:=Y323;增幅24:=XMA(XMA(XMA(股价24,3),3),3)-REF(XMA(XMA(XMA(股价24,3),3),3),1); X324:=XMA(股价24,3);J324:=(XMA(股价24,3)*3+0.5*股价24-0.5*REF(股价24,1)+增幅24)/3;Y324:=IFF(CURRBARSCOUNT=1,J324,X324);股价25:=Y324;增幅25:=XMA(XMA(XMA(股价25,3),3),3)-REF(XMA(XMA(XMA(股价25,3),3),3),1); X325:=XMA(股价25,3);J325:=(XMA(股价25,3)*3+0.5*股价25-0.5*REF(股价25,1)+增幅25)/3;Y325:=IFF(CURRBARSCOUNT=1,J325,X325);股价26:=Y325;增幅26:=XMA(XMA(XMA(股价26,3),3),3)-REF(XMA(XMA(XMA(股价26,3),3),3),1); X326:=XMA(股价26,3);J326:=(XMA(股价26,3)*3+0.5*股价26-0.5*REF(股价26,1)+增幅26)/3;Y326:=IFF(CURRBARSCOUNT=1,J326,X326);股价27:=Y326;增幅27:=XMA(XMA(XMA(股价27,3),3),3)-REF(XMA(XMA(XMA(股价27,3),3),3),1); X327:=XMA(股价27,3);J327:=(XMA(股价27,3)*3+0.5*股价27-0.5*REF(股价27,1)+增幅27)/3;Y327:=IFF(CURRBARSCOUNT=1,J327,X327);股价28:=Y327;增幅28:=XMA(XMA(XMA(股价28,3),3),3)-REF(XMA(XMA(XMA(股价28,3),3),3),1); X328:=XMA(股价28,3);J328:=(XMA(股价28,3)*3+0.5*股价28-0.5*REF(股价28,1)+增幅28)/3;Y328:=IFF(CURRBARSCOUNT=1,J328,X328);股价29:=Y328;增幅29:=XMA(XMA(XMA(股价29,3),3),3)-REF(XMA(XMA(XMA(股价29,3),3),3),1); X329:=XMA(股价29,3);J329:=(XMA(股价29,3)*3+0.5*股价29-0.5*REF(股价29,1)+增幅29)/3;Y329:=IFF(CURRBARSCOUNT=1,J329,X329);股价30:=Y329;增幅30:=XMA(XMA(XMA(股价30,3),3),3)-REF(XMA(XMA(XMA(股价30,3),3),3),1); X330:=XMA(股价30,3);J330:=(XMA(股价30,3)*3+0.5*股价30-0.5*REF(股价30,1)+增幅30)/3;Y330:=IFF(CURRBARSCOUNT=1,J330,X330);股价31:=Y330;增幅31:=XMA(XMA(XMA(股价31,3),3),3)-REF(XMA(XMA(XMA(股价31,3),3),3),1); X331:=XMA(股价31,3);J331:=(XMA(股价31,3)*3+0.5*股价31-0.5*REF(股价31,1)+增幅31)/3;Y331:=IFF(CURRBARSCOUNT=1,J331,X331);股价32:=Y331;增幅32:=XMA(XMA(XMA(股价32,3),3),3)-REF(XMA(XMA(XMA(股价32,3),3),3),1); X332:=XMA(股价32,3);J332:=(XMA(股价32,3)*3+0.5*股价32-0.5*REF(股价32,1)+增幅32)/3;Y332:=IFF(CURRBARSCOUNT=1,J332,X332);股价33:=Y332;增幅33:=XMA(XMA(XMA(股价33,3),3),3)-REF(XMA(XMA(XMA(股价33,3),3),3),1); X333:=XMA(股价33,3);J333:=(XMA(股价33,3)*3+0.5*股价33-0.5*REF(股价33,1)+增幅33)/3;Y333:IFF(CURRBARSCOUNT=1,J333,X333);。

通达信指标——神偷牵牛主图(主图)

通达信指标——神偷牵牛主图(主图)

V AR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));V AR2:=(REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));V AR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));V AR4:=(REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));V AR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));V AR6:=(REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));V AR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));V AR8:=(REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));V AR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));V ARA:=(REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));V ARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));V ARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));红色持股:STICKLINE(V AR1 OR V AR2 OR V AR3 OR V AR4 OR V AR5 OR V AR6 OR V AR7 OR V AR8 OR V AR9 OR V ARA OR V ARB OR V ARC,CLOSE,REF(CLOSE,1),4,0),COLOR000099; STICKLINE(V AR1 OR V AR2 OR V AR3 OR V AR4 OR V AR5 OR V AR6 OR V AR7 OR V AR8 OR V AR9 OR V ARA OR V ARB OR V ARC,CLOSE,REF(CLOSE,1),3,0),COLOR0000CC; STICKLINE(V AR1 OR V AR2 OR V AR3 OR V AR4 OR V AR5 OR V AR6 OR V AR7 OR V AR8 OR V AR9 OR V ARA OR V ARB OR V ARC,CLOSE,REF(CLOSE,1),2,0),COLOR0000FF; STICKLINE(V AR1 OR V AR2 OR V AR3 OR V AR4 OR V AR5 OR V AR6 OR V AR7 OR V AR8 OR V AR9 OR V ARA OR V ARB OR V ARC,CLOSE,REF(CLOSE,1),1,0),COLOR0000FF; STICKLINE(V AR1 OR V AR2 OR V AR3 OR V AR4 OR V AR5 OR V AR6 OR V AR7 OR V AR8 OR V AR9 OR V ARA OR V ARB OR V ARC,CLOSE,REF(CLOSE,1),0,0),COLOR0000FF; STICKLINE(V AR1 OR V AR2 OR V AR3 OR V AR4 OR V AR5 OR V AR6 OR V AR7 OR V AR8 OR V AR9 OR V ARA OR V ARB OR V ARC,LOW,HIGH,0.1,0),COLOR0000FF;V ARD:=(CLOSEV ARE:=(REF(V ARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));V ARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));V AR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));V AR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));V AR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));V AR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));V AR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));V AR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));V AR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));V AR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));V AR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));青色观望:STICKLINE(V ARD OR V ARE OR V ARF OR V AR10 OR V AR11 OR V AR12 OR V AR13 OR V AR14 OR V AR15 OR V AR16 OR V AR17 OR V AR18,CLOSE,REF(CLOSE,1),4,0),COLORDDDD00;STICKLINE(V ARD OR V ARE OR V ARF OR V AR10 OR V AR11 OR V AR12 OR V AR13 OR V AR14 OR V AR15 OR V AR16 OR V AR17 OR V AR18,CLOSE,REF(CLOSE,1),3,0),COLOREEEE00;STICKLINE(V ARD OR V ARE OR V ARF OR V AR10 OR V AR11 OR V AR12 OR V AR13 OR V AR14 OR V AR15 OR V AR16 OR V AR17 OR V AR18,CLOSE,REF(CLOSE,1),2,0),COLORFFFF00;STICKLINE(V ARD OR V ARE OR V ARF OR V AR10 OR V AR11 OR V AR12 OR V AR13 OR V AR14 OR V AR15 OR V AR16 OR V AR17 OR V AR18,CLOSE,REF(CLOSE,1),1,0),COLORFFFF00;STICKLINE(V ARD OR V ARE OR V ARF OR V AR10 OR V AR11 OR V AR12 OR V AR13 OR V AR14 OR V AR15 OR V AR16 OR V AR17 OR V AR18,CLOSE,REF(CLOSE,1),0,0),COLORFFFF00;STICKLINE(V ARD OR V ARE OR V ARF OR V AR10 OR V AR11 OR V AR12 OR V AR13 OR V AR14 OR V AR15 OR VAR16 OR V AR17 OR V AR18,LOW,HIGH,0.1,0),COLORFFFF00;V AR19:=((REF(VARD OR V ARE OR V ARF OR V AR10 OR V AR11 OR V AR12 OR V AR13 OR V AR14 OR V AR15 OR VAR16 OR V AR17 OR V AR18,1)) AND V AR1);黄色短买:STICKLINE(V AR19,REF(CLOSE,1),REF(CLOSE,2),4,0),COLOR33DDCC;STICKLINE(V AR19,REF(CLOSE,1),REF(CLOSE,2),3,0),COLOR33EECC;STICKLINE(V AR19,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR33FFCC;STICKLINE(V AR19,REF(CLOSE,1),REF(CLOSE,2),1,0),COLOR33FFCC;DRAWTEXT(V AR19,REF(CLOSE,1),'短买'),COLOR33FFCC;V AR1A:=((REF(VAR1 OR V AR2 OR V AR3 OR V AR4 OR V AR5 OR V AR6 OR V AR7 OR V AR8 OR V AR9 OR V ARA OR V ARB OR V ARC,1)) AND V ARD);品红离场:STICKLINE(V AR1A,REF(CLOSE,1),REF(CLOSE,2),4,0),COLORFF66FF;STICKLINE(V AR1A,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORFF77FF;STICKLINE(V AR1A,REF(CLOSE,1),REF(CLOSE,2),2,0),COLORFF88FF;STICKLINE(V AR1A,REF(CLOSE,1),REF(CLOSE,2),1,0),COLORFF99FF;DRAWTEXT(V AR1A,REF(CLOSE,1)+0.01,'离场'),COLORFF99FF;MA3:=MA(CLOSE,3),COLORGREEN,LINETHICK3;YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;辰星线:(20*YTSL+19*REF(YTSL,1)+18*REF(YTSL,2)+17*REF(YTSL,3)+16*REF(YTSL,4) +15*REF(YTSL,5)+14*REF(YTSL,6)+13*REF(YTSL,7)+12*REF(YTSL,8)+11*REF(YTSL,9) +10*REF(YTSL,10)+9*REF(YTSL,11)+8*REF(YTSL,12)+7*REF(YTSL,13)+6*REF(YTSL,14) +5*REF(YTSL,15)+4*REF(YTSL,16)+3*REF(YTSL,17)+2*REF(YTSL,18)+REF(YTSL,20))/2 11,COLORFF0000;牵牛线:MA(CLOSE,26),COLORFF00FF;等待:IF(MA3>辰星线,辰星线,MA3);IF(等待>REF(等待,1),等待,DRAWNULL),LINETHICK3,COLOR0000FF;IF(辰星线>REF(辰星线,1),辰星线,DRAWNULL),LINETHICK2,COLOR0000FF;IF(辰星线IF(牵牛线>REF(牵牛线,1),牵牛线,DRAWNULL),LINETHICK2,COLORFF00FF;IF(牵牛线{AA:=FORCAST(CLOSE,21);BB:=FORCAST(CLOSE,111);}中轨:=MA(CLOSE,26);上轨:=中轨+STD(CLOSE,20);下轨:=中轨-STD(CLOSE,20);上极限:(中轨+2*STD(CLOSE,20)),COLORFFFF00;下极限:(中轨-2*STD(CLOSE,20)),COLORFFFF00;离场:=IF(VAR1A,1,0),LINETHICK0;短买:=IF(VAR19,1,0),LINETHICK0;。

一个很牛B的主图通达信指标公式源码

一个很牛B的主图通达信指标公式源码

⼀个很⽜B的主图通达信指标公式源码⼀个很⽜B的主图操盘王指标--主图出现红⾊箭头买进,出现绿⾊箭头卖出。

信号不迟后,结合副图主⼒资⾦流向指标可以达到极⾼的操作准度。

紫⾊线和绿⾊线为趋势线,紫⾊持股绿⾊持币。

DII:MA(C,7),COLORWHITE,LINETHICK2;IF(DII>REF(DII,1),DII,DRAWNULL),COLORFF00FF,LINETHICK2;IF(DIIA:=(3*C+L+O+H)/6;X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8* REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+ REF(A,20))/210;S2:=SMA(C,3,1);S6:=SMA(C,5,1);DK:=2*(S2-S6);DRAWKLINE(HIGH,OPEN,LOW,CLOSE);MA5:=MA(C,5);MA10:=MA(C,10);MA30:=MA(C,30);FA:=BARSLAST(CROSS(MA10,MA5)) AND CROSS(MA5,MA10);FB:=FA AND MA5>MA30 AND MA10>MA30 AND MA10>REF(MA10,1);DRAWTEXT(FB,L-0.38,'●疯⽜'),COLORRED;STICKLINE(FB,OPEN,CLOSE,3,0),COLORRED;STICKLINE(FB,OPEN,CLOSE,1,0),COLORYELLOW;V1:=EMA(CLOSE,5);V2:=EMA(EMA(CLOSE,90)*1.01,10);VAR1:=LLV(LOW,21);VAR2:=HHV(HIGH,21);AK1:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 100),5);AK:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 50),13);AB:=CROSS(AK1,AK);DRAWTEXT((AB = 1),(LOW * 0.95),'★底部'),COLORYELLOW;STICKLINE(AB,OPEN,CLOSE,3,0),COLORRED;STICKLINE(AB,OPEN,CLOSE,1,0),COLORMAGENTA;AA1:=AMOUNT/V;BB1:=LCC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=LEE1:=V⽼⿏仓:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0,COLOR0099FF; DRAWTEXT(⽼⿏仓,L*0.99,'⽼⿏仓'),COLOR0099FF;VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.96),'★飞马'),COLORF00FF0; DRAWTEXT(FILTER((VAR4AA>90),35), (LOW)*(0.99000001),'★加仓'),COLOR00FFFF; A1AA:=9;A2AA:=(REF(CLOSE,A1AA+1)VAR6:=REF(C,1);VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100;AA:=CLOSE/REF(CLOSE,1)>=1.09;STICKLINE(AA,OPEN,CLOSE,0.5,0),COLORYELLOW;STICKLINE(AA,LOW,HIGH,0 ,0 ),COLORYELLOW;MMM:=MA(CLOSE,6);DRAWICON((CLOSEDRAWICON((CLOSE>MMM),MMM,1);。

通达信主图操盘(附源码)

通达信主图操盘(附源码)

通达信主图操盘(附源码)通达信主图操盘(附源码){山东操盘手主图}MA5:MA(C,5),COLORYELLOW;MA10:MA(CLOSE,10),COLORFF00FF;MA30:MA(C,30),COLORRED,LINETHICK2;跌:IF(MA(CLOSE,30)<=REF(MA(CLOSE,30),1),MA(CLOSE,30), DRAWNULL),COLORGREEN,LINETHICK2;MA60:MA(CLOSE,60),COLORFFCC66;GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));BAIJIN1:=BARSLAST(CROSS(30,GJTJ1))<2 ANDBARSLAST(CROSS(GJTJ1,50))<2;BAIJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;BAIJIN3:=GJTJ1>60 AND GJTJ4>70;DRAWTEXT(BAIJIN1 AND BAIJIN2 AND BAIJIN3,L-0.02,'白金'),COLORWHITE;HUANGJIN1:=BARSLAST(CROSS(50,GJTJ1))<3 ANDBARSLAST(CROSS(GJTJ1,50))<3;HUANGJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;DRAWTEXT(HUANGJIN1 AND HUANGJIN2,L-0.03,'黄金'),COLORYELLOW;XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5 AND GJTJ1>GJTJ4;DRAWTEXT(COUNT(XG,3)=1 AND XG ANDC>MA(C,20),L-0.02,'启动金三角'),COLORRED;ZHENCANG1:=BARSLAST(CROSS(GJTJ4,GJTJ1))>3 ANDBARSLAST(CROSS(GJTJ1,GJTJ4))<3;ZHENCANG2:=BARSLAST(CROSS(GJTJ4,GJTJ2));ZHENCANG3:=GJTJ3<GJTJ4 AND GJTJ2<GJTJ4;ZHENCANG4:=BARSLAST(CROSS(GJTJ4,GJTJ3))>3 ANDBARSLAST(CROSS(GJTJ1,GJTJ4))<3;ZHENCANG5:=GJTJ2<GJTJ3 AND GJTJ2<GJTJ4 AND GJTJ2<GJTJ1 ANDGJTJ1=100;ZCB1:=ZHENCANG1>0 AND REF(ZHENCANG1,1)=0 AND REF(ZHENCANG1,2)>0;DRAWTEXT(ZHENCANG1 AND ZHENCANG2 AND ZHENCANG3 AND ZHENCANG4 ANDZHENCANG5,L-0.05,'震仓启点');AA:=BARSLAST(CROSS(97,GJTJ1))<=1 AND BARSLAST(CROSS(GJTJ1,85))<=1;BB:=BARSLAST(CROSS(97,GJTJ2))<=1 AND BARSLAST(CROSS(GJTJ2,85))<=1;AA1:=AA AND BB;AAA:=BARSLAST(CROSS(97,GJTJ1))<=2 AND BARSLAST(CROSS(GJTJ1,85))<=1;BAA:=BARSLAST(CROSS(97,GJTJ2))<=2 AND BARSLAST(CROSS(GJTJ2,85))<=1;AA2:=AA AND BB ;AAAA:=BARSLAST(CROSS(97,GJTJ1))<=3 AND BARSLAST(CROSS(GJTJ1,85))<=1;BAAA:=BARSLAST(CROSS(97,GJTJ2))<=3 AND BARSLAST(CROSS(GJTJ2,85))<=1;AA3:=AAAA AND BAAA ;BB1:=REF(AA1,1);BB2:=REF(AA2,1);BB3:=REF(AA3,1);DD1:=GJTJ1=100 AND GJTJ2=100 AND AA1 ;DD2:=GJTJ1=100 AND GJTJ2=100 AND AA2 ;DD3:=GJTJ1=100 AND GJTJ2=100 AND AA3 ;DRAWTEXT(DD1 OR DD2 OR DD3,L-0.02,'短线追涨'),COLORFF00FF;AW:=BARSLAST(CROSS(95,GJTJ1))<=2;BW:=BARSLAST(CROSS(95,GJTJ2))<=2;EW:= GJTJ4<GJTJ1 AND GJTJ1<GJTJ2 AND GJTJ1<GJTJ3;FW:=GJTJ2>50 AND GJTJ3>50;GW:=GJTJ1=100 AND GJTJ2=100;TXW:=COUNT(GW,2)=1;DRAWTEXT(AW AND BW AND EW AND FW AND TXW,L-0.03,'起涨首日');AQ:=GJTJ3=100;BQ:=GJTJ4<90;DRAWTEXT(COUNT(AQ,2) = 2 AND BQ,L-0.02,'波启前兆');DSJ:=1;GET:ZIG(3,N),COLORYELLOW;PL5:=ZIG(3,5)*DSJ;EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)*DSJ;EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)*DSJ;PL10:=ZIG(3,10)*DSJ;EN2:=ZIG(3,10)>REF(ZIG(3,10),1) ANDREF(ZIG(3,10),1)<=REF(ZIG(3,10),2) ANDREF(ZIG(3,10),2)<=REF(ZIG(3,10),3)*DSJ;EX2:=ZIG(3,10)<REF(ZIG(3,10),1) ANDREF(ZIG(3,10),1)>=REF(ZIG(3,10),2) ANDREF(ZIG(3,10),2)>=REF(ZIG(3,10),3)*DSJ;PL20:=ZIG(3,20)*DSJ;EN3:=ZIG(3,20)>REF(ZIG(3,20),1) ANDREF(ZIG(3,20),1)<=REF(ZIG(3,20),2) ANDREF(ZIG(3,20),2)<=REF(ZIG(3,20),3)*DSJ;EX3:=ZIG(3,20)<REF(ZIG(3,20),1) ANDREF(ZIG(3,20),1)>=REF(ZIG(3,20),2) ANDREF(ZIG(3,20),2)>=REF(ZIG(3,20),3)*DSJ;PL40:=ZIG(3,40)*DSJ;走强1:=BARSLAST(PL5<REF(PL5,1));走弱1:=BARSLAST(PL5>REF(PL5,1));走强2:=BARSLAST(PL10<REF(PL10,1));走弱2:=BARSLAST(PL10>REF(PL10,1));走强3:=BARSLAST(PL20<REF(PL20,1));走弱3:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0); DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0); DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'㈠'),COLORFFFF00; DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'㈡'),COLORFFFF00; DRAWTEXT(EN2 AND ZTJZ5=1,L*0.98,'㈢'),COLORFFFF00; DRAWTEXT(EX1 AND PL10>REF(PL10,1) ANDZTJD5=1,H*1.02,'⑴'),COLORFF0000;DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.98,'⑵'),COLORFF0000;DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.02,'⑶'),COLORF000F0;DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.98,'⑷'),COLORFF0000;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.02,'⑸'),COLORFF0000;DRAWTEXT(EN2 AND DTJZ10=1,L*0.94,'Ⅰ'),COLORFF0000;DRAWTEXT(EX2 AND DTJD10=2,H*1.06,'Ⅱ'),COLORFF0000;DRAWTEXT(EN3 AND ZTJZ10=1,L*0.94,'Ⅲ'),COLORFF0000;DRAWTEXT(EX2 AND PL20>REF(PL20,1) ANDZTJD10=1,H*1.06,'①'),COLORFFFF00;DRAWTEXT(EN2 AND PL20>REF(PL20,1) ANDZTJZ10=2,L*0.94,'②'),COLORFFFF00;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 ORZTJD10=2) AND EX2,H*1.06*DSJ,'③'),COLORFFFF00;DRAWTEXT(EN2 AND PL20>REF(PL0,1) ANDZTJZ10=3,L*0.94,'④'),COLORFFFF00;。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

M1:=55;HR:=HHV(HIGH,M1);HRY:=LLV(LOW,M1);HRY11:=HR*HRY;HRY33:SQRT(HRY11),COLORGREEN,LINETHICK2;IF(C>HRY33 AND HRY33 >=REF(HRY33 ,1), HRY33 ,DRAWNULL),LINETHICK2,COLORRED;TEND:EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42),POINTDOT,COLORFF00FF,LINETHICK2;WLT1:=EMA(C,3),COLORBLUE,LINETHICK1;WLT2:=EMA(C,5),COLORWHITE,LINETHICK1;WLT3:=EMA(WLT2,5),COLOR00FF00,LINETHICK1;DRAWBAND(WLT1,RGB(255,255,0),WLT2,RGB(256,200,0));QQ:= CMM:=WLT1>REF(WLT1,1) AND REF(WLT1,1)MM0:=WLT1REF(WLT1,2) ;WL:=CROSS(WLT1,WLT2);WL1:=CROSS(WLT2,WLT1);WL2:=CROSS(WLT1,TEND);WL3:=LLV(LOW,55);WL6:=HHV(HIGH,21);WL8:=LLV(LOW,34);DRAWICON(WL AND MM AND CWL6*0.6,LOW*0.97,23);RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=EMA(DIFF,9);MACD:=2*(DIFF-DEA);生命:MA(C,24),COLOR00FFFF;做多:=IF(K>D AND MACD>0 AND V>1,2,0),COLORRED;做空:=IF(K<0 AND V>1,-2,0),COLOR00FF00;强洗:=IF(MACD>0 AND K1,1,0),COLOR0099FF;弱升:=IF(MACD<0 AND K>D AND V>1,-1,0),COLORFFFF00;STICKLINE(做多,L,H,0,0),COLORRED;STICKLINE(做多AND CSTICKLINE(做多AND C>=O,C,O,3,1),COLORRED;STICKLINE(做多AND CSTICKLINE(做多AND CSTICKLINE(做多AND CSTICKLINE(做空AND C>=O,L,H,0.1,0),COLOR0000FF;STICKLINE(做空AND C>=O,C,O,3,1),COLOR00FF00;STICKLINE(做空AND CSTICKLINE(做空AND CSTICKLINE(做空AND CSTICKLINE(强洗AND C>=O,L,H,0.1,0),COLOR0000FF;STICKLINE(强洗AND C>=O,C,O,3,1),COLORFFFF00;STICKLINE(强洗AND CSTICKLINE(强洗AND CSTICKLINE(强洗AND CSTICKLINE(弱升AND C>=O,L,H,0,0),COLOR0000FF;STICKLINE(弱升AND C>=O,C,O,3,1),COLOR00FFFF;STICKLINE(弱升AND CSTICKLINE(弱升AND CSTICKLINE(弱升AND CSAL:=FILTER(CROSS(TEND,C) AND CWLT1WL8*1.2,13);DRAWICON(SAL,HIGH*1.03,15);TJ1:=WL AND MM AND CWL6*0.8;TJ2:=WL2 AND C>TEND;TJ3:=TJ1 OR TJ2;TJ4:=COUNT(TJ3,3)=2;DRAWICON(FILTER(TJ4,3),LOW*0.95,23);STICKLINE(WL AND MM AND CWL6*0.8,C,O,4,0),COLOR009999;STICKLINE(WL AND MM AND CWL6*0.8,C,O,2.5,0),COLOR00BBBB;STICKLINE(WL AND MM AND CWL6*0.8,C,O,1,0),COLOR00DDDD;STICKLINE(WL AND MM AND CWL6*0.8,C,O,0.3,0),COLOR00FFFF;STICKLINE(WL2 AND C>TEND,C,O,4,0),COLOR000099;STICKLINE(WL2 AND C>TEND,C,O,2.5,0),COLOR0000BB;STICKLINE(WL2 AND C>TEND,C,O,1,0),COLOR0000DD;STICKLINE(WL2 AND C>TEND,C,O,0.3,0),COLOR0000FF;STICKLINE(MM0 AND C>WL8*1.2,C,O,1,0),COLORFF0000;HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLAY: =0;AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);{HIGHN日前的最高价=2*HIGHN+1日内最高价的最高值}QY:=BACKSET(AA,HIGHN+1);{若AA则将最近HIGHN+1周期置为1}CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);{QY的HIGHN日过滤AND 最高价=HIGHN+1日内最高价的最高值}DRAWICON(CC,H*1.02,2);DDD:=BARSLAST(CC);{上次CC距今天数}GDTS:=IF(CC,CURRBARSCOUNT,0);{如果CC,返回到最后交易日的周,否则返回0} DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);DINGBU1:=REF(DINGBU,DDD+1);GDCS1:=CONST(DINGBUTS);DINGBUTS1:=REF(DINGBUTS,DDD+1);GDCS2:=CONST(DINGBUTS1);DINGBU2:=REF(DINGBU1,DDD+1);MMM:=IF(CURRBARSCOUNT>GDCS2,0,1);高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) COLORGREEN,LINETHICK1;DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055 FF,POINTDOT;DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORYEL LOW,POINTDOT;AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);QY1:=BACKSET(AA1,LOWN+1);CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);{DRAWICON(CC1,L*0.98,1);}DD1:=BARSLAST(CC1);DDTS:=IF(CC1,CURRBARSCOUNT,0);YDB:=IF(DD1,REF(L,DD1),L);DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);DDCS1:=CONST(DDTS1);ZDB:=REF(YDB,DD1+1);DDTS2:=REF(DDTS1,DD1+1);DDCS2:=CONST(DDTS2);低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1) COLORRED,LINETHICK1;ZGSTAR:=(高点压力+低点支撑)/2;ZGEND:=CONST((高点压力+低点支撑)/2);STARDAY:=IF(DDCS2中轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1), COLORFFBBFF,LINETHICK1;DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,DDCS1-1),1),COLORFF00FF,POINTDOT,;DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,DDCS2-1),1),COLORCY AN,POINTDOT;DRAWICON(WL2 AND C>TEND AND CDRAWTEXT(WL2 AND C>TEND AND CN8:=89;HH:=CONST(HHV(H,N8));LL:=CONST(LLV(L,N8));M:=CONST(HH/2+LL/2);CCC:=CONST(C);YYY:=CONST(IF(CCC>=M,LL-(HH-LL)*0.2,HH+(HH-LL)*0.2));V11:=(C+H+L)/3;MA33:=MA(V11,2);MA55:=MA(V11,5);N18:=BARSLAST(CROSS(MA33,MA55));N28:=BARSLAST(CROSS(MA55,MA33));N88:=IF(N18STICKLINE(N88>0,YYY,YYY+0.1,3,0),COLOR0000FF; STICKLINE(N88<0,YYY,YYY+0.1,3,0),COLOR00FF00;。

相关文档
最新文档