极致波浪理论主图指标通达信指标公式源码

合集下载

通达信指标公式源码波浪之字主图指标公式

通达信指标公式源码波浪之字主图指标公式

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) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);PL10:=ZIG(3,13);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,26);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,55);走强一:=BARSLAST(PL5<REF(PL5,1));走弱一:=BARSLAST(PL5>REF(PL5,1));走强二:=BARSLAST(PL10<REF(PL10,1));走弱二:=BARSLAST(PL10>REF(PL10,1));走强三:=BARSLAST(PL20<REF(PL20,1));走弱三:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强二),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强二),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱二),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱二),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强三),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强三),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱三),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱三),0);DRAWTEXT(EN1 AND DTJZ5=1,LOW*0.98,'(Ⅰ)'),COLORFFFF00;DRAWTEXT(EX1 AND DTJD5=2,HIGH*1.02,'(Ⅱ)'),COLORFFFF00; DRAWTEXT(EN2 AND ZTJZ5=1,LOW*0.98,'(Ⅲ)'),COLORFFFF00; DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,HIGH*1.02,'⑴'),COLOR0000FF;DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,LOW*0.98,'⑵'),COLOR0000FF;DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,HIGH*1.02,'⑶'),COLOR0000FF;DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,LOW*0.98,'⑷'),COLOR0000FF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,HIGH*1.02,'⑸'),COLOR0000FF;DRAWTEXT(EN2 AND DTJZ10=1,LOW*0.94,'【A】'),COLOR00FF00; DRAWTEXT(EX2 AND DTJD10=2,HIGH*1.03,'【B】'),COLOR00FF00; DRAWTEXT(EN3 AND ZTJZ10=1,LOW*0.94,'【C】'),COLOR00FF00; DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,HIGH*1.04,'①'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,LOW*0.94,'②'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,HIGH*1.04,'③'),LINETHICK3,COLOR00FFFF; DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,LOW*0.94,'④'),LINETHICK3,COLOR00FFFF;DMLJ:=HHV(HIGH,120);TY:=CLOSE;HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10); LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10); A:=REF(CLOSE,BARSLAST(HD));B:=REF(CLOSE,BARSLAST(LD));T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);波浪顶:IF(T1,A,A),COLORFF00FF,POINTDOT,LINETHICK2;STICKLINE(T1,A,A,9,0),COLORFF00FF;波浪底:IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK2;VAR3:=LLV(HIGH,240);VAR4:=100*(CLOSE-VAR3)/VAR3;VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100; VAR7:=0;VAR8:=MA(HHV(CLOSE-REF(CLOSE,1),0),34)/MA(ABS(CLOSE-REF(CLOSE,1)), 7)*100;VAR9:=MA(HHV(CLOSE-REF(CLOSE,1),0),13)/MA(ABS(CLOSE-REF(CLOSE,1)), 13)*100;VARA:=BARSCOUNT(CLOSE);VARB:=VAR8<20 AND VAR9<23 AND VARA>35;VARC:=VARB AND COUNT(VARB,1)=1;VARD:=EMA(CLOSE,21)-EMA(CLOSE,8);VARE:=EMA(VARD,5);VARF:=TROUGH(3,6,1)<4 AND CROSS(VARD,VARE);VAR10:=IF(TROUGH(3,16,1)=0 AND HIGH>LOW+0.04,4,0);VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) ANDREF(ZIG(3,22),1)<=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) ANDREF(ZIG(3,22),1)>=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) ANDREF(ZIG(3,51),1)<=REF(ZIG(3,51),2) ANDREF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) ANDREF(ZIG(3,51),1)>=REF(ZIG(3,51),2) ANDREF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)<=REF(ZIG(3,72),2) ANDREF(ZIG(3,72),2)<=REF(ZIG(3,72),3);VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)>=REF(ZIG(3,72),2) ANDREF(ZIG(3,72),2)>=REF(ZIG(3,72),3);VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);VAR1A:=EMA(VAR19,100);VAR1B:=2*(VAR19-VAR1A);VAR1C:=POW(VAR1B,3)*0.1+POW(VAR1B,1);VAR1D:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));VAR1E:=EMA(VAR1D*0.97,3);VAR1F:=(HIGH+LOW+CLOSE)/3;VAR20:=(VAR1F-MA(VAR1F,14))/(0.015*AVEDEV(VAR1F,14));VAR21:=CROSS(VAR1E,LOW);买点一:=VAR10;买点二:=(VAR11+VAR13+VAR15+VAR17);卖点一:=(VAR12+VAR14+VAR16+VAR18);VAR22:=买点一AND VARF AND VARC AND VAR21 AND VAR4<0 AND VAR5=0 AND VAR6=0 AND VAR20<(-110);VAR1:=MA(CLOSE,6);VAR2:=MA(CLOSE,18);VAR31:=MA(CLOSE,30);VARB1:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28);VARC1:=INTPART(VARB1*100)/100;VARD1:=EMA(CLOSE,5)-EMA(CLOSE,10);VARE1:=EMA(VARD1,9);VAR131:=REF(VARE1,1);VAR141:=VARE1;VAR151:=VAR141-VAR131;VAR161:=REF(VARD1,1);VAR171:=VARD1;VAR181:=VAR171-VAR161;VAR191:=OPEN;VAR1A1:=CLOSE;DRAWTEXT(买点一>0,LOW-0.01,'▲买!'),COLORRED; DRAWTEXT(买点二>0,LOW-0.01,'▲买涨'),COLORYELLOW; DRAWTEXT(卖点一>0,HIGH+0.1,'▼卖跌'), COLORWHITE;A1:=BARSCOUNT(CLOSE);AH:=HHV(HIGH,72);AL:=LLV(LOW,72);A0:=(AH-AL)/21;B1:=LOW-A0;DRAWTEXT((A1+0)/15=FLOOR((A1+0)/15),B1-2.5*A0,'▲时窗'),COLORWHITE;VAR51:=HHVBARS(ZIG(3, 19)>REF(ZIG(3,19),1)AND REF(ZIG(3,19), 1)<REF(ZIG(3,19), 2),0);STICKLINE(VAR51=2,LOW*0.95,LOW*0.98,8,0),COLOR0000FF; DRAWTEXT(VAR51=2,LOW*0.95,'3天'),COLORWHITE; STICKLINE(VAR51=4,HIGH*1.05,HIGH*1.02,8,0),COLOR9966FF; DRAWTEXT(VAR51=4,HIGH*1.06,'5天'),COLORWHITE; STICKLINE(VAR51=7,LOW*0.95,LOW*0.98,8,0),COLOR00FFFF; DRAWTEXT(VAR51=7,LOW*0.95,'8天'),COLORWHITE; STICKLINE(VAR51=12,HIGH*1.05,HIGH*1.02,8,0),COLORFF33FF; DRAWTEXT(VAR51=12,HIGH*1.06,'13天'),COLORWHITE; STICKLINE(VAR51=20,LOW*0.95,LOW*0.98,8,0),COLOR0066FF; DRAWTEXT(VAR51=20,LOW*0.95,'21天'),COLORWHITE; STICKLINE(VAR51=33,HIGH*1.05,HIGH*1.02,8,0),COLORFFFF00; DRAWTEXT(VAR51=33,HIGH*1.06,'34天'),COLORWHITE; STICKLINE(VAR51=54,LOW*0.95,LOW*0.98,8,0),COLORWHITE; DRAWTEXT(VAR51=54,LOW*0.95,'55天'),COLORWHITE; STICKLINE(VAR51=88,HIGH*1.05,HIGH*1.02,8,0),COLOR00FF00; DRAWTEXT(VAR51=88,HIGH*1.06,'89天'),COLORWHITE; STICKLINE(VAR51=143,LOW*0.95,LOW*0.98,8,0),COLORCCFFFF; DRAWTEXT(VAR51=143,LOW*0.95,'144天'),COLORWHITE; STICKLINE(VAR51=232 ,HIGH*1.05,HIGH*1.02,8,0),COLORFF0033;DRAWTEXT(VAR51=232,HIGH*1.06,'233天'),COLORWHITE; STICKLINE(VAR51=376,LOW*0.95,LOW*0.98,8,0),COLORFF9966; DRAWTEXT(VAR51=376,LOW*0.95,'377天'),COLORWHITE;立春:=FILTER(MONTH=2 AND (DAY=3 OR DAY=5 ),2);雨水:=FILTER(MONTH=2 AND (DAY=18 OR DAY=20),2);惊蛰:=FILTER(MONTH=3 AND (DAY=5 OR DAY=7 ),2);春分:=FILTER(MONTH=3 AND (DAY=20 OR DAY=22),2);清明:=FILTER(MONTH=4 AND (DAY=3 OR DAY=6 ),2);谷雨:=FILTER(MONTH=4 AND (DAY=19 OR DAY=21),2);立夏:=FILTER(MONTH=5 AND (DAY=6 OR DAY=8 ),2);小满:=FILTER(MONTH=5 AND (DAY=20 OR DAY=22),2);芒种:=FILTER(MONTH=6 AND (DAY=5 OR DAY=7 ),2);夏至:=FILTER(MONTH=6 AND (DAY=20 OR DAY=22),2);小暑:=FILTER(MONTH=7 AND (DAY=6 OR DAY=8 ),2);大署:=FILTER(MONTH=7 AND (DAY=22 OR DAY=24),2);立秋:=FILTER(MONTH=8 AND (DAY=7 OR DAY=9 ),2);处暑:=FILTER(MONTH=8 AND (DAY=22 OR DAY=24),2);白露:=FILTER(MONTH=9 AND (DAY=7 OR DAY=9 ),2);秋分:=FILTER(MONTH=9 AND (DAY=22 OR DAY=24),2);寒露:=FILTER(MONTH=10 AND (DAY=7 OR DAY=9 ),2);霜降:=FILTER(MONTH=10 AND (DAY=22 OR DAY=24),2);立冬:=FILTER(MONTH=11 AND (DAY=7 OR DAY=9 ),2);小雪:=FILTER(MONTH=11 AND (DAY=22 OR DAY=24),2);大雪:=FILTER(MONTH=12 AND (DAY=6 OR DAY=8 ),2);冬至:=FILTER(MONTH=12 AND (DAY=21 OR DAY=23),2);小寒:=FILTER(MONTH=1 AND (DAY=5 OR DAY=7 ),2);大寒:=FILTER(MONTH=1 AND (DAY=19 OR DAY=21),2); GET:ZIG(3,5),COLORWHITE,LINETHICK1;。

艾略特波浪划线通达信指标公式源码

艾略特波浪划线通达信指标公式源码

艾略特波浪划线主图:艾略特波浪理论的五浪划线,方便看盘和技术分析X:=5;D:=10;M5:MA(C,X);M10:MA(C,D);T:=BARSLAST(CROSS(M5,M10));ST:=BARSLAST(CROSS(M10,M5));T1:=SUMBARS(T=0,2);T2:=SUMBARS(T=0,3);ST1:=SUMBARS(ST=0,2);ST2:=SUMBARS(ST=0,3);H1:=IF(CONST(M5)>CONST(M10),HHV(H,T+1),REF(HHV(H,T+1),ST));L1:=IF(CONST(M5)<CONST(M10),LLV(L,ST+1),REF(LLV(L,ST+1),T));H2:=IF(CONST(M5)>CONST(M10),REF(HHV(H,T+1),ST),REF(HHV(H,T+1),ST1-1));L2:=IF(CONST(M5)<CONST(M10),REF(LLV(L,ST+1),T),REF(LLV(L,ST+1),T1-1));H3:=IF(CONST(M5)>CONST(M10),REF(HHV(H,T+1),ST1-1),REF(HHV(H,T+1),ST2-1)); L3:=IF(CONST(M5)<CONST(M10),REF(LLV(L,ST+1),T1-1),REF(LLV(L,ST+1),T2-1)); TJ1:=CONST(M5)>CONST(M10) AND CURRBARSCOUNT>=CONST(T2) AND CURRBARSCOUNT<=CONST(ST2) AND L=CONST(L3);TJ2:=CONST(M5)>CONST(M10) AND CURRBARSCOUNT>=CONST(ST1) AND CURRBARSCOUNT<=CONST(T2) AND H=CONST(H3);TJ3:=CONST(M5)>CONST(M10) AND CURRBARSCOUNT>=CONST(T1) AND CURRBARSCOUNT<=CONST(ST1) AND L=CONST(L2);TJ4:=CONST(M5)>CONST(M10) AND CURRBARSCOUNT>=CONST(ST) AND CURRBARSCOUNT<=CONST(T1) AND H=CONST(H2);TJ5:=CONST(M5)>CONST(M10) AND CURRBARSCOUNT>=CONST(T)+1 AND CURRBARSCOUNT<=CONST(ST)+1 AND L=CONST(L1);TJ6:=CONST(M5)>CONST(M10) AND H=CONST(H1) ANDCURRBARSCOUNT<=CONST(ST2);TJ7:=CONST(M5)<CONST(M10) AND CURRBARSCOUNT>=CONST(ST2) AND CURRBARSCOUNT<=CONST(T2) AND H=CONST(H3);TJ8:=CONST(M5)<CONST(M10) AND CURRBARSCOUNT>=CONST(T1) AND CURRBARSCOUNT<=CONST(ST2) AND L=CONST(L3);TJ9:=CONST(M5)<CONST(M10) AND CURRBARSCOUNT>=CONST(ST1) AND CURRBARSCOUNT<=CONST(T1) AND H=CONST(H2);TJ10:=CONST(M5)<CONST(M10) AND CURRBARSCOUNT>=CONST(T) AND CURRBARSCOUNT<=CONST(ST1) AND L=CONST(L2);TJ11:=CONST(M5)<CONST(M10) AND CURRBARSCOUNT>=CONST(ST)+1 AND CURRBARSCOUNT<=CONST(T)+1 AND H=CONST(H1);TJ12:=CONST(M5)<CONST(M10) AND L=CONST(L1)ANDCURRBARSCOUNT<=CONST(T2);DRAWLINE(TJ1,L,TJ2,H,0),COLORMAGENTA;DRAWLINE(TJ2,H,TJ3,L,0),COLORMAGENTA;DRAWLINE(TJ3,L,TJ4,H,0),COLORMAGENTA;DRAWLINE(TJ4,H,TJ5,L,0),COLORMAGENTA;DRAWLINE(TJ5,L,TJ6,H,0),COLORMAGENTA;DRAWLINE(TJ7,H,TJ8,L,0),COLORGREEN;DRAWLINE(TJ8,L,TJ9,H,0),COLORGREEN;DRAWLINE(TJ9,H,TJ10,L,0),COLORGREEN;DRAWLINE(TJ10,L,TJ11,H,0),COLORGREEN;DRAWLINE(TJ11,H,TJ12,L,0),COLORGREEN;HH:=CONST(MAX(MAX(H1,H2),H3));LL:=CONST(MIN(MIN(L1,L2),L3));Z:=(HH-LL)/2+LL;DRAWLINE(TJ7,Z,ISLASTBAR,Z,0),COLORGREEN,DOTLINE;DRAWTEXT(TJ7,CONST(Z)*1.01,VARCAT(VARCAT('中区价位:',VAR2STR(CONST(Z),2)),'元')),COLORGREEN;HH1:=CONST(MAX(H1,MAX(H2,H3)));LL1:=CONST(MIN(MIN(L1,L2),L3));Z1:=(HH1-LL1)/2+LL1;DRAWLINE(TJ1,Z1,ISLASTBAR,Z1,0),COLORMAGENTA,DOTLINE;DRAWTEXT(TJ1,CONST(Z)*1.01,VARCAT(VARCAT('中区价位:',VAR2STR(CONST(Z1),2)),'元')),COLORMAGENTA;近高:H1,COLORMAGENTA,NODRAW;近低:L1,COLORGREEN,NODRAW;中高:H2,COLORMAGENTA,NODRAW;中底:L2,COLORGREEN,NODRAW;远高:H3,COLORMAGENTA,NODRAW;远底:L3,COLORGREEN,NODRAW;。

波浪主图+财务副图指标通达信指标公式源码

波浪主图+财务副图指标通达信指标公式源码

波浪主图+财务副图指标波浪主图:K:=1;N:=3;巨浪H:DRAWLINE(H=HHV(H,270),H,L=LLV(L,270),L,0),POINTDOT,LINETHICK4,COLORMAGE NTA;巨浪L:DRAWLINE(L=LLV(L,270),L,H=HHV(H,270),H,0),POINTDOT,LINETHICK4,COLORMAGE NTA;大浪H:DRAWLINE(H=HHV(H,90),H,L=LLV(L,90),L,0),LINETHICK3,COLORRED;大浪L:DRAWLINE(L=LLV(L,90),L,H=HHV(H,90),H,0),LINETHICK3,COLORRED;中浪H:DRAWLINE(H=HHV(H,30),H,L=LLV(L,30),L,0),LINETHICK2,COLORLIBLUE;中浪L:DRAWLINE(L=LLV(L,30),L,H=HHV(H,30),H,0),LINETHICK2,COLORLIBLUE;小浪H:DRAWLINE(H=HHV(H,10),H,L=LLV(L,10),L,0),COLORWHITE;小浪L:DRAWLINE(L=LLV(L,10),L,H=HHV(H,10),H,0),DOTLINE,COLORWHITE;ZLH:=STRCAT('顶天数:',CON2STR(CONST(BARSLAST(H=HHV(H,30))),0));ZLL:=STRCAT('底天数:',CON2STR(CONST(BARSLAST(L=LLV(L,30))),0));ZLTS:=STRCAT('中浪:',STRCAT(ZLH,ZLL));DLH:=STRCAT(' 顶天数:',CON2STR(CONST(BARSLAST(H=HHV(H,90))),0));DLL:=STRCAT('底天数:',CON2STR(CONST(BARSLAST(L=LLV(L,90))),0));DLTS:=STRCAT('大浪:',STRCAT(DLH,DLL));LXTS:=STRCAT('浪型天数:',STRCAT(ZLTS,DLTS));DRAWTEXT_FIX(ISLASTBAR=1,0,0,0,LXTS),COLORWHITE;T:=10*3*N;A:=H=HHV(H,T) AND HHV(H,T)>REF(HHV(H,T),1);B:=L=LLV(L,T) AND LLV(L,T)<REF(LLV(L,T),1);WAVE1:=DRAWLINE(A,H,B,L,0);WAVE2:=DRAWLINE(B,L,A,H,0);ZG:=IF(WAVE1<REF(WAVE1,1) OR WAVE1=WAVE2,WAVE1,WAVE2),COLORMAGENTA; 峰:=WAVE2=WAVE1 AND A;谷:=WAVE2=WAVE1 AND B;峰峰天:=BARSLAST(峰)+1;谷谷天:=BARSLAST(谷)+1;D1:=HHV(H,T)>REF(HHV(H,T),1) AND ISLASTBAR AND WAVE2!=WAVE1;D2:=LLV(L,T)<REF(LLV(L,T),1) AND ISLASTBAR AND WAVE2!=WAVE1;D3:=IF(谷OR D2,峰峰天,IF(峰OR D1,谷谷天,DRAWNULL));D4:=IF(谷OR D2,L*0.99,IF(峰OR D1,H*1.01,DRAWNULL));DRAWNUMBER(D3>0 AND K=1,D4,SUM("HSL.HSL",D3)),COLORGREEN;财务副图:DRAWRECTREL(0,0,990,990,RGB(20,18,12));DRAWTEXT_FIX(1,0.14,0.01,1,'股东股份:'),COLORRED;品种类型:=FINANCE(3);所属板块:=HYBLOCK;上市天数:=FINANCE(42);股总市值:=ROUND(FINANCE(41)/100000000);流通市值:=ROUND(FINANCE(40)/100000000);股东人数:=FINANCE(8);人均持股:=ROUND(FINANCE(7)/FINANCE(8));DRAWTEXT_FIX(1,0.14,0.15,1,'品种类型:'),COLORYELLOW;DRAWTEXT_FIX(1,0.14,0.25,1,'所属板块:'),COLORYELLOW;DRAWTEXT_FIX(1,0.14,0.35,1,'上市天数:'),COLORYELLOW;DRAWTEXT_FIX(1,0.14,0.45,1,'股总市值:'),COLORYELLOW;DRAWTEXT_FIX(1,0.14,0.55,1,'流通市值:'),COLORYELLOW;DRAWTEXT_FIX(1,0.14,0.65,1,'股东人数:'),COLORYELLOW;DRAWTEXT_FIX(1,0.14,0.75,1,'人均持股:'),COLORYELLOW;DRAWTEXT_FIX(1,0.23,0.25,1,HYBLOCK),COLORLIGREEN;DRAWNUMBER_FIX(1,0.2,0.35,1,上市天数),COLORWHITE;DRAWNUMBER_FIX(1,0.19,0.45,1,股总市值),COLORWHITE;DRAWNUMBER_FIX(1,0.19,0.55,1,流通市值),COLORWHITE;DRAWNUMBER_FIX(1,0.2,0.65,1,股东人数),COLORWHITE;DRAWNUMBER_FIX(1,0.2,0.75,1,人均持股),COLORWHITE;DRAWTEXT_FIX(品种类型=1,0.23,0.15,1,'沪深A 股'),COLORMAGENTA; DRAWTEXT_FIX(品种类型=2,0.23,0.15,1,' 中小板'),COLORMAGENTA; DRAWTEXT_FIX(品种类型=3,0.23,0.15,1,' 创业板'),COLORMAGENTA; DRAWTEXT_FIX(1,0.23,0.35,1,'天'),COLORCYAN;DRAWTEXT_FIX(1,0.23,0.45,1,'亿元'),COLORCYAN;DRAWTEXT_FIX(1,0.23,0.55,1,'亿元'),COLORCYAN;DRAWTEXT_FIX(1,0.23,0.65,1,'人'),COLORCYAN;DRAWTEXT_FIX(1,0.23,0.75,1,'股'),COLORCYAN;DRAWTEXT_FIX(1,0.326,0.01,1,'业绩指标:'),COLORRED;净资收益率:=(FINANCE(33)/FINANCE(34)*100);销售毛利率:=((FINANCE(20)-FINANCE(21))/FINANCE(20)*100);净利润比率:=(FINANCE(30)/FINANCE(20)*100);主营利润率:=(FINANCE(23)/FINANCE(20)*100);优质资产率:=((FINANCE(19)-FINANCE(22)-FINANCE(27))/FINANCE(19));{理论上越大越好但不同行业有不同标准};现金负债比:=(FINANCE(25)/FINANCE(15));{缺长期负债或负债总额,理论上越大越好但不同行业有不同标准};净利同增率:=FINANCE(43);DRAWTEXT_FIX(1,0.34,0.15,1,'净资收益率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.34,0.25,1,'销售毛利率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.34,0.35,1,'净利润率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.34,0.45,1,'主营利润率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.34,0.55,1,'优质资产率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.34,0.65,1,'现金负债比:'),COLORYELLOW;DRAWTEXT_FIX(1,0.34,0.75,1,'净利同增率:'),COLORYELLOW; DRAWNUMBER_FIX(1,0.4,0.15,1,净资收益率),COLORWHITE; DRAWNUMBER_FIX(1,0.4,0.25,1,销售毛利率),COLORWHITE; DRAWNUMBER_FIX(1,0.4,0.35,1,净利润比率),COLORWHITE; DRAWNUMBER_FIX(1,0.4,0.45,1,主营利润率),COLORWHITE; DRAWNUMBER_FIX(1,0.4,0.55,1,优质资产率),COLORWHITE; DRAWNUMBER_FIX(1,0.4,0.65,1,现金负债比),COLORWHITE; DRAWNUMBER_FIX(1,0.4,0.75,1,净利同增率),COLORWHITE;DRAWTEXT_FIX(1,0.498,0.01,1,'财务指标:'),COLORRED;市净率:=CONST(DYNAINFO(7) / FINANCE(34));市销率:=CONST(FINANCE(1)*DYNAINFO(7)/FINANCE(20));每股收益季:=CONST(FINANCE(33)/(5-FINANCE(37)));每股收益年:=CONST(FINANCE(33));每股现金流:=CONST((FINANCE(25)/FINANCE(1)));每股未分配:=CONST(FINANCE(32));每股公积金:=CONST(FINANCE(18));DRAWTEXT_FIX(1,0.51,0.15,1,'市净率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.51,0.25,1,'市销率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.51,0.35,1,'每股收益季:'),COLORYELLOW;DRAWTEXT_FIX(1,0.51,0.45,1,'每股收益年:'),COLORYELLOW;DRAWTEXT_FIX(1,0.51,0.55,1,'每股现金流:'),COLORYELLOW;DRAWTEXT_FIX(1,0.51,0.65,1,'每股未分配:'),COLORYELLOW;DRAWTEXT_FIX(1,0.51,0.75,1,'每股公积金:'),COLORYELLOW; DRAWNUMBER_FIX(1,0.57,0.15,1,市净率),COLORWHITE;DRAWNUMBER_FIX(1,0.57,0.25,1,市销率),COLORWHITE;DRAWNUMBER_FIX(1,0.57,0.35,1,每股收益季),COLORWHITE; DRAWNUMBER_FIX(1,0.57,0.45,1,每股收益年),COLORWHITE; DRAWNUMBER_FIX(1,0.57,0.55,1,每股现金流),COLORWHITE; DRAWNUMBER_FIX(1,0.57,0.65,1,每股未分配),COLORWHITE; DRAWNUMBER_FIX(1,0.57,0.75,1,每股公积金),COLORWHITE;{风险系数}X1:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;X2:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;{盈余公积用资本公积金代替} X3:=FINANCE(23)/FINANCE(10)*3.3;X4:=FINANCE(19)/FINANCE(15)*0.6;{缺长期负债或负债总额}X5:=FINANCE(20)/FINANCE(15)*0.999;Z值:=X1+X2+X3+X4+X5;DRAWTEXT_FIX(1,0.85,0.01,1,'财务预警:'),COLORRED;DRAWTEXT_FIX(Z值<1.2,0.838,0.11,1,' ●重警●'),COLORLIRED;DRAWTEXT_FIX( BETWEEN(Z值,1.2,2.6),0.838,0.11,1,' ○轻警○'),COLOR0099FF; DRAWTEXT_FIX(Z值>2.6,0.838,0.11,1,' ◎无警◎'),COLORLIGREEN;LC:=REF(CLOSE,1);WRSI:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;获利筹码:=CONST(WINNER(C)*100);SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));量能饱和:=(IF(SAT>1,1,SAT)*100);WR10:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100;活跃:=(WRSI-WR10);活跃度比:=IF(活跃>=0,(活跃+100)/2,100-ABS((活跃-100)/2));DRAWTEXT_FIX(1,0.74,0.15,1,STRCAT(STRCAT('量能饱和:',CON2STR(量能饱和,2)),'%')),COLORYELLOW;DRAWTEXT_FIX(1,0.74,0.35,1,STRCAT(STRCAT('活跃度比:',CON2STR(活跃度比,2)),'%')),COLORYELLOW;DRAWTEXT_FIX(1,0.74,0.55,1,STRCAT(STRCAT('获利筹码:',CON2STR(获利筹码,2)),'%')),COLORYELLOW;DRAWRECTREL(970,340,580,270,RGB(150,10,250));DRAWRECTREL(970,470,580,540,RGB(150,10,250));DRAWRECTREL(970,670,580,740,RGB(150,10,250));DRAWRECTREL(970,340,580+CONST(量能饱和*(970-580)/100),270,RGB(0,100,0)); DRAWRECTREL(970,470,580+CONST(活跃度比*(970-580)/100),540,RGB(0,100,0)); DRAWRECTREL(970,670,580+CONST(获利筹码*(970-580)/100),740,RGB(0,100,0)); DRAWTEXT_FIX(1,0.96,0.01,1,'大盘趋势:'),COLORRED;DRAWTEXT_FIX( CONST(INDEXC) >SAR(4,2,20),0.95,0.16,1,'∧∧∧∧'),COLORRED; DRAWTEXT_FIX( CONST(INDEXC) >SAR(4,2,20),0.95,0.11,1,'∧∧∧∧'),COLORRED; DRAWTEXT_FIX( CONST(INDEXC) <SAR(4,2,20),0.95,0.16,1,'∨∨∨∨'),COLORGREEN; DRAWTEXT_FIX( CONST(INDEXC) <SAR(4,2,20),0.95,0.11,1,'∨∨∨∨'),COLORGREEN; DRAWTEXT_FIX(1,0.87,0.85,1,''),COLORYELLOW;。

不惧洗盘的波段指标三浪必吃通达信指标公式源码

不惧洗盘的波段指标三浪必吃通达信指标公式源码

不惧洗盘的波段指标三浪必吃通达信指标公式源码洗盘是指股票市场中大量股票价格急剧下跌或飙升,导致投资者心态恐慌或亢奋,从而产生集中性的价格波动。

针对这种情况,波段指标可以帮助投资者判断价格震荡的趋势和力度,从而把握住投资机会。

波段指标中的经典指标三浪必吃,它采用通达信编程语言进行计算。

以下是该指标的公式源码:【变量定义】变量: RSIClose(0); //存储RSI均线值变量: flag(0); //标志位,0标识无三浪必吃,1标识有三浪必吃【计算过程】if BarsSince(barssuracy < 0) < 4 then begin //判断是否满足连续三根下跌K线RSIClose = Average(Close, 10); //计算10日收盘价的均线if Close < RSIClose then //判断收盘价是否小于均线flag = 1; //满足下跌条件,设置标志位为1end;if flag = 1 then begin //存在三浪必吃情况下进行判断if Close > RSIClose then //当收盘价大于均线时flag = 0; //取消三浪必吃标志位end;【画图显示】Plot1(flag, "三浪必吃"); //以0和1的形式显示三浪必吃的状态以上是三浪必吃通达信指标的公式源码。

该指标的计算逻辑是通过判断连续三根下跌K线后,观察下跌趋势是否有回转迹象,即收盘价是否大于其10日均线值。

如果连续三根下跌K线后回转至收盘价大于均线,则认为存在三浪必吃的情况。

标志位flag用于标识三浪必吃的状态,当flag为1时表示存在三浪必吃,当flag为0时表示没有三浪必吃。

通过画图函数Plot1可以实现在图表上显示三浪必吃指标的状态。

投资者可以通过观察三浪必吃指标的状态来判断市场洗盘的趋势。

当三浪必吃标志出现时,可以作为参考信号,辅助投资者进行买入或卖出的决策。

通达信抓主升浪源码公式四个公式

通达信抓主升浪源码公式四个公式

通达信抓主升浪源码公式四个公式{主升浪公式}var1:=WINNER(CLOSE*0.900)*100;var2:=vol/CAPITAL*100;var3:=var1-var2;var4:=var3<1;var5:=var3>=1 AND var3<5;var6:=var3>=5 AND var3<10;var7:=var3>=10 AND var3<25;var8:=var3>=25;极弱股:IF(var4, (-10), 0),colorwhite, STICK;弱势股:IF(var5, (-5), 0),coloryellow, STICK;转型股:IF(var6, 5, 0),colorff00ff, STICK;强势股:IF(var7, 10, 0),colorgreen, STICK;主升浪:IF(var8, 15, 0),colorffff00, STICK;------------------------------------------------------ {z主升浪公式}var1:=WINNER(CLOSE*0.900)*100;var2:=vol/CAPITAL*100;var3:=var1-var2;var4:=var3<1;var5:=var3>=1 AND var3<5;var6:=var3>=5 AND var3<10;var7:=var3>=10 AND var3<25;var8:=var3>=25;极弱股:IF(var4, (-10), 0),colorwhite, STICK;弱势股:IF(var5, (-5), 0),coloryellow, STICK;转型股:IF(var6, 5, 0),colorff00ff, STICK;强势股:IF(var7, 10, 0),colorgreen, STICK;主升浪:IF(var8, 15, 0),colorffff00, STICK;------------------------------------------------------------{主升浪式}Var1:=WINNER(CLOSE*0.900)*100;Var2:=VOL/CAPITAL*100;Var3:=Var1-Var2;Var4:=Var3<1;Var5:=Var3>=1 AND Var3<5;Var6:=Var3>=5 AND Var3<10;Var7:=Var3>=10 AND Var3<25;Var8:=Var3>=25;极弱股:IF(Var4, (-10), 0),COLORff3399, STICK;弱势股:IF(Var5, (-5), 0),coloryellow, STICK;转型股:IF(Var6, 5, 0),COLOR0066FF, STICK;强势股:IF(Var7, 10, 0),colorgreen, STICK;主升浪:IF(Var8, 15, 0),,,,Color3821FF, STICK;庄筹估算:EMA(WINNER(C)*70,5) ;散筹估算:EMA((WINNER(C*1.1)-WINNER(C*0.9))*80,5) ;cc:=FILTER( (CROSS(5,庄筹估算) and 散筹估算<20 )*60,10 );抄底:cc,coloryellow;DRAWTEXT(cc ,11 ,'抄底' ) ,coloryellow;aa:= ref(庄筹估算,30)>40 or ref(庄筹估算,20)>40;bb:=CROSS(28,庄筹估算) and 散筹估算>40 and aa=1 {and LLV(l ,60 )>LLV(l ,250 )};洗盘:IF(bb ,30 ,60 );DRAWTEXT(FILTER(bb,4) ,66 ,'洗盘' ) ;DRAWTEXT(庄筹估算>60,58,'★'),colorred;stickline(庄筹估算<散筹估算and 散筹估算<60,散筹估算,55,1,0),colorgreen;stickline(庄筹估算>散筹估算,散筹估算,50,1,0),colorred;stickline(庄筹估算<散筹估算,庄筹估算,0,0,0),coloryellow;------------------------------------------------------------------{量价配合抓主升浪}{设计思路:1今天这个量是20日内最大的;2今天的量比昨天的量放大了三倍;)3这个符合条件1,3的量,对应的那个K线收盘价格,大于作天,涨幅大于百分之二}tj1:=vol>=hhv(vol,20);{20日内最大的量}tj2:=vol/ref(vol,1)>=2;{量,比作天放大了三倍}tj3:=tj1 and tj2;tj4:=c/o>1.02 and c>ref(c,1);{收盘价格大于作天,涨幅大于百分之二 }量价配合选股:if(tj3 and tj4,1,0),stick,colorff00ff;{原文链接:/html/GS/tong-da-xin/1687.html}。

极致波浪理论主图指标通达信指标公式源码

极致波浪理论主图指标通达信指标公式源码

极致波浪理论主图指标通达信指标公式源码一个波浪理论,手上的指标会在大家的建议之下慢慢的完善指标这东西就要一点点的精细改良,虽然不可能到达百分百的正确率但是综合几个起来看,准确率就有保障了对指标的编写一直没有放弃过,不管大盘怎么变,找到方法才能够赚钱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); PL10:=ZIG(3,13);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); PL20:=ZIG(3,26);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); PL40:=ZIG(3,55);走强一:=BARSLAST(PL5REF(PL5,1)); 走强二 :=BARSLAST(PL10REF(PL10,1)); 走强三:=BARSLAST(PL20REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强二 ),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强二 ),0);DTJZ5:=IF(PL10REF(PL20,1),COUNT(EN2,走强三),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强三),0);DTJZ10:=IF(PL20REF(PL10,1) AND ZTJD5=1,HIGH*1.02,'⑴'),COLOR0000FF; DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,LOW*0.98,'⑵'),COLOR0000FF; DRAWTEXT(EX1 AND PL10>REF(PL10,1) ANDZTJZ5=2,HIGH*1.02,'⑶'),COLOR0000FF; DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,LOW*0.98,'⑷'),COLOR0000FF; DRAWTEXT(EX2 ANDPL20>REF(PL20,1) AND ZTJD10=1,HIGH*1.02,'⑸'),COLOR0000FF; DRAWTEXT(EN2 AND DTJZ10=1,LOW*0.94,'【A】'),COLOR00FF00; DRAWTEXT(EX2 AND DTJD10=2,HIGH*1.03,'【B】'),COLOR00FF00; DRAWTEXT(EN3 ANDZTJZ10=1,LOW*0.94,'【C】'),COLOR00FF00; DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,HIGH*1.04,'①'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,LOW*0.94,'②'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,HIGH*1.04,'③'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,LOW*0.94,'④'),LINETHICK3,COLOR00FFFF; DMLJ:=HHV(HIGH,120); TY:=CLOSE;HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10); LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10);A:=REF(CLOSE,BARSLAST(HD)); B:=REF(CLOSE,BARSLAST(LD));T1:=BARSLAST(HD)BARSLAST(LD) AND NOT(LD); 波浪顶:IF(T1,A,A),COLORFF00FF,POINTDOT,LINETHICK2;STICKLINE(T1,A,A,9,0),COLORFF00FF;波浪底:IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK2;VAR3:=LLV(HIGH,240);VAR4:=100*(CLOSE-VAR3)/VAR3;VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;VAR7:=0;VAR8:=MA(HHV(CLOSE-REF(CLOSE,1),0),34)/MA(ABS(CLOSE-REF(CLOSE,1)),7)* 100;VAR9:=MA(HHV(CLOSE-REF(CLOSE,1),0),13)/MA(ABS(CLOSE-REF(CLOSE,1)),13) *100; VARA:=BARSCOUNT(CLOSE);VARB:=VAR835; VARC:=VARB AND COUNT(VARB,1)=1;VARD:=EMA(CLOSE,21)-EMA(CLOSE,8); VARE:=EMA(VARD,5);VARF:=TROUGH(3,6,1)LOW+0.04,4,0);VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) ANDREF(ZIG(3,22),1)=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) ANDREF(ZIG(3,51),1)=REF(ZIG(3,51),2) ANDREF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)=REF(ZIG(3,72),2) ANDREF(ZIG(3,72),2)>=REF(ZIG(3,72),3);VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150); VAR1A:=EMA(VAR19,100);VAR1B:=2*(VAR19-VAR1A);VAR1C:=POW(VAR1B,3)*0.1+POW(VAR1B,1);VAR1D:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE)); VAR1E:=EMA(VAR1D*0.97,3); VAR1F:=(HIGH+LOW+CLOSE)/3;VAR20:=(VAR1F-MA(VAR1F,14))/(0.015*AVEDEV(VAR1F,14));VAR21:=CROSS(VAR1E,LOW); 买点一:=VAR10;买点二:=(VAR11+VAR13+VAR15+VAR17); 卖点一:=(VAR12+VAR14+VAR16+VAR18);VAR22:=买点一 AND VARF AND VARC AND VAR21 AND VAR40,LOW-0.01,'▲买!'),COLORRED;DRAWTEXT(买点二>0,LOW-0.01,'▲买入待涨'),COLORYELLOW; DRAWTEXT(卖点一>0,HIGH+0.1,'▼快卖欲跌'), COLORWHITE; A1:=BARSCOUNT(CLOSE);AH:=HHV(HIGH,72); AL:=LLV(LOW,72); A0:=(AH-AL)/21; B1:=LOW-A0;DRAWTEXT((A1+0)/15=FLOOR((A1+0)/15),B1-2.5*A0,'▲时窗'),COLORWHITE; VAR51:=HHVBARS(ZIG(3, 19)>REF(ZIG(3,19),1) AND REF(ZIG(3,19), 1)。

通达信波浪买卖点公式

通达信波浪买卖点公式

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) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);PL10:=ZIG(3,13);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,26);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,55);走强一:=BARSLAST(PL5<REF(PL5,1));走弱一:=BARSLAST(PL5>REF(PL5,1));走强二:=BARSLAST(PL10<REF(PL10,1));走弱二:=BARSLAST(PL10>REF(PL10,1));走强三:=BARSLAST(PL20<REF(PL20,1));走弱三:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强二),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强二),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱二),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱二),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强三),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强三),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱三),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱三),0);DRAWTEXT(EN1 AND DTJZ5=1,LOW*0.98,'(Ⅰ)'),COLORFFFF00;DRAWTEXT(EX1 AND DTJD5=2,HIGH*1.02,'(Ⅱ)'),COLORFFFF00;DRAWTEXT(EN2 AND ZTJZ5=1,LOW*0.98,'(Ⅲ)'),COLORFFFF00;DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,HIGH*1.02,'⑴'),COLOR0000FF; DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,LOW*0.98,'⑵'),COLOR0000FF; DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,HIGH*1.02,'⑶'),COLOR0000FF; DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,LOW*0.98,'⑷'),COLOR0000FF; DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,HIGH*1.02,'⑸'),COLOR0000FF; DRAWTEXT(EN2 AND DTJZ10=1,LOW*0.94,'【A】'),COLOR00FF00;DRAWTEXT(EX2 AND DTJD10=2,HIGH*1.03,'【B】'),COLOR00FF00;DRAWTEXT(EN3 AND ZTJZ10=1,LOW*0.94,'【C】'),COLOR00FF00;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,HIGH*1.04,'①'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,LOW*0.94,'②'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,HIGH*1.04,'③'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,LOW*0.94,'④'),LINETHICK3,COLOR00FFFF;DMLJ:=HHV(HIGH,120);TY:=CLOSE;HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10);LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10);A:=REF(CLOSE,BARSLAST(HD));B:=REF(CLOSE,BARSLAST(LD));T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);波浪顶:IF(T1,A,A),COLORFF00FF,POINTDOT,LINETHICK2;STICKLINE(T1,A,A,9,0),COLORFF00FF;波浪底:IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK2;V AR3:=LLV(HIGH,240);V AR4:=100*(CLOSE-V AR3)/V AR3;V AR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;V AR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;V AR7:=0;V AR8:=MA(HHV(CLOSE-REF(CLOSE,1),0),34)/MA(ABS(CLOSE-REF(CLOSE,1)),7)*100;V AR9:=MA(HHV(CLOSE-REF(CLOSE,1),0),13)/MA(ABS(CLOSE-REF(CLOSE,1)),13)*100; V ARA:=BARSCOUNT(CLOSE);V ARB:=V AR8<20 AND V AR9<23 AND V ARA>35;V ARC:=V ARB AND COUNT(V ARB,1)=1;V ARD:=EMA(CLOSE,21)-EMA(CLOSE,8);V ARE:=EMA(V ARD,5);V ARF:=TROUGH(3,6,1)<4 AND CROSS(V ARD,V ARE);V AR10:=IF(TROUGH(3,16,1)=0 AND HIGH>LOW+0.04,4,0);V AR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);V AR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);V AR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);V AR14:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);V AR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);V AR16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);V AR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);V AR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);V AR19:=EMA(CLOSE,2)-EMA(CLOSE,150);V AR1A:=EMA(V AR19,100);V AR1B:=2*(VAR19-V AR1A);V AR1C:=POW(V AR1B,3)*0.1+POW(V AR1B,1);V AR1D:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));V AR1E:=EMA(V AR1D*0.97,3);V AR1F:=(HIGH+LOW+CLOSE)/3;V AR20:=(V AR1F-MA(V AR1F,14))/(0.015*A VEDEV(V AR1F,14));V AR21:=CROSS(V AR1E,LOW);买点一:=V AR10;买点二:=(V AR11+V AR13+V AR15+V AR17);卖点一:=(V AR12+V AR14+V AR16+V AR18);V AR22:=买点一AND V ARF AND V ARC AND V AR21 AND V AR4<0 AND V AR5=0 AND V AR6=0 AND V AR20<(-110);V AR1:=MA(CLOSE,6);V AR2:=MA(CLOSE,18);V AR31:=MA(CLOSE,30);V ARB1:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28);V ARC1:=INTPART(V ARB1*100)/100;V ARD1:=EMA(CLOSE,5)-EMA(CLOSE,10);V ARE1:=EMA(V ARD1,9);V AR131:=REF(VARE1,1);V AR141:=VARE1;V AR151:=VAR141-V AR131;V AR161:=REF(VARD1,1);V AR171:=VARD1;V AR181:=VAR171-V AR161;V AR191:=OPEN;V AR1A1:=CLOSE;DRAWTEXT(买点一>0,LOW-0.01,'▲买!'),COLORRED;DRAWTEXT(买点二>0,LOW-0.01,'▲I淘金点'),COLORYELLOW;DRAWTEXT(卖点一>0,HIGH+0.1,'落袋为安'), COLORWHITE;A1:=BARSCOUNT(CLOSE);AH:=HHV(HIGH,72);AL:=LLV(LOW,72);A0:=(AH-AL)/21;B1:=LOW-A0;DRAWTEXT((A1+0)/15=FLOOR((A1+0)/15),B1-2.5*A0,'▲时窗'),COLORWHITE;V AR51:=HHVBARS(ZIG(3, 19)>REF(ZIG(3,19),1)AND REF(ZIG(3,19), 1)<REF(ZIG(3,19), 2),0);STICKLINE(V AR51=2,LOW*0.95,LOW*0.98,8,0),COLOR0000FF;DRAWTEXT(V AR51=2,LOW*0.95,'3天'),COLORWHITE;STICKLINE(V AR51=4,HIGH*1.05,HIGH*1.02,8,0),COLOR9966FF; DRAWTEXT(V AR51=4,HIGH*1.06,'5天'),COLORWHITE; STICKLINE(V AR51=7,LOW*0.95,LOW*0.98,8,0),COLOR00FFFF; DRAWTEXT(V AR51=7,LOW*0.95,'8天'),COLORWHITE; STICKLINE(V AR51=12,HIGH*1.05,HIGH*1.02,8,0),COLORFF33FF; DRAWTEXT(V AR51=12,HIGH*1.06,'13天'),COLORWHITE; STICKLINE(V AR51=20,LOW*0.95,LOW*0.98,8,0),COLOR0066FF; DRAWTEXT(V AR51=20,LOW*0.95,'21天'),COLORWHITE; STICKLINE(V AR51=33,HIGH*1.05,HIGH*1.02,8,0),COLORFFFF00; DRAWTEXT(V AR51=33,HIGH*1.06,'34天'),COLORWHITE; STICKLINE(V AR51=54,LOW*0.95,LOW*0.98,8,0),COLORWHITE; DRAWTEXT(V AR51=54,LOW*0.95,'55天'),COLORWHITE; STICKLINE(V AR51=88,HIGH*1.05,HIGH*1.02,8,0),COLOR00FF00; DRAWTEXT(V AR51=88,HIGH*1.06,'89天'),COLORWHITE; STICKLINE(V AR51=143,LOW*0.95,LOW*0.98,8,0),COLORCCFFFF; DRAWTEXT(V AR51=143,LOW*0.95,'144天'),COLORWHITE; STICKLINE(V AR51=232 ,HIGH*1.05,HIGH*1.02,8,0),COLORFF0033; DRAWTEXT(V AR51=232,HIGH*1.06,'233天'),COLORWHITE; STICKLINE(V AR51=376,LOW*0.95,LOW*0.98,8,0),COLORFF9966; DRAWTEXT(V AR51=376,LOW*0.95,'377天'),COLORWHITE;立春:=FILTER(MONTH=2 AND (DAY=3 OR DAY=5 ),2);雨水:=FILTER(MONTH=2 AND (DAY=18 OR DAY=20),2);惊蛰:=FILTER(MONTH=3 AND (DAY=5 OR DAY=7 ),2);春分:=FILTER(MONTH=3 AND (DAY=20 OR DAY=22),2);清明:=FILTER(MONTH=4 AND (DAY=3 OR DAY=6 ),2);谷雨:=FILTER(MONTH=4 AND (DAY=19 OR DAY=21),2);立夏:=FILTER(MONTH=5 AND (DAY=6 OR DAY=8 ),2);小满:=FILTER(MONTH=5 AND (DAY=20 OR DAY=22),2);芒种:=FILTER(MONTH=6 AND (DAY=5 OR DAY=7 ),2);夏至:=FILTER(MONTH=6 AND (DAY=20 OR DAY=22),2);小暑:=FILTER(MONTH=7 AND (DAY=6 OR DAY=8 ),2);大署:=FILTER(MONTH=7 AND (DAY=22 OR DAY=24),2);立秋:=FILTER(MONTH=8 AND (DAY=7 OR DAY=9 ),2);处暑:=FILTER(MONTH=8 AND (DAY=22 OR DAY=24),2);白露:=FILTER(MONTH=9 AND (DAY=7 OR DAY=9 ),2);秋分:=FILTER(MONTH=9 AND (DAY=22 OR DAY=24),2);寒露:=FILTER(MONTH=10 AND (DAY=7 OR DAY=9 ),2);霜降:=FILTER(MONTH=10 AND (DAY=22 OR DAY=24),2);立冬:=FILTER(MONTH=11 AND (DAY=7 OR DAY=9 ),2);小雪:=FILTER(MONTH=11 AND (DAY=22 OR DAY=24),2);大雪:=FILTER(MONTH=12 AND (DAY=6 OR DAY=8 ),2);冬至:=FILTER(MONTH=12 AND (DAY=21 OR DAY=23),2);小寒:=FILTER(MONTH=1 AND (DAY=5 OR DAY=7 ),2);大寒:=FILTER(MONTH=1 AND (DAY=19 OR DAY=21),2);DRAWTEXT(立春,HIGH*1.02,'立春'); DRAWTEXT(雨水,HIGH*1.02,'雨水'); DRAWTEXT(惊蛰,HIGH*1.02,'惊蛰'); DRAWTEXT(春分,HIGH*1.02,'春分');。

波浪主图通达信指标公式源码

波浪主图通达信指标公式源码

K:=1;局部低点预选A:=BACKSET(LLV(L,5)<REF(LLV(L,4),1),4);局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2);局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0);局部高点预选A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4);局部高点预选B:=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2);局部高点预选C:=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0);缺口判断:=IF(L>REF(H,1),1,IF(H<REF(L,1),-1,0));距前高天:=BARSLAST(局部高点预选C=1);距前低天:=BARSLAST(局部低点预选C=-1);小值周期:=LOWRANGE(L);大值周期:=TOPRANGE(H);低保留AA:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留AB:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR LLV(L,距前低天+2)<REF(LLV(L,距前低天+1),1)),-1,0);低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) AND L<REF(H,距前高天+1),-1,0);预判:=IF((距前低天<4 AND HHV(缺口判断,距前低天)!=1) OR REF(低保留S,距前低天)=0,1,0);判断:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND 预判=1 AND 大值周期>REF(小值周期,距前低天+1) AND 大值周期>REF(小值周期,距前低天) AND 大值周期>REF(大值周期,距前高天),1,0);高保留A:=IF(局部高点预选C=1 AND REF(距前低天,1)>REF(距前高天,1) AND HHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0);高保留B:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND REF(低保留S,距前低天)=-1 AND (距前低天>=4 OR HHV(缺口判断,距前低天)=1),1,0);高保留:=IF((高保留A=1 OR 高保留B=1 OR 判断=1) AND H>REF(L,距前低天+1),1,0);预判A:=IF((距前高天<4 AND HHV(缺口判断,距前高天)!=1) OR REF(高保留,距前高天)=0,1,0);判断A:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND 预判A=1 AND 小值周期>REF(大值周期,距前高天+1) AND 小值周期>REF(大值周期,距前高天) AND 小值周期>REF(小值周期,距前低天),-1,0);低保留A:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留B:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR 判断A=-1),-1,0);低保留:=IF((低保留A=-1 OR 低保留B=-1) AND L<REF(H,距前高天+1),-1,0);距前高天A:=BARSLAST(高保留=1);距前低天A:=BARSLAST(低保留=-1);预判X:=IF((距前低天A<4 AND HHV(缺口判断,距前低天A)!=1) OR REF(低保留,距前低天A)=0,1,0);判断X:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND 预判X=1 AND 大值周期>REF(小值周期,距前低天A+1) AND 大值周期>REF(小值周期,距前低天A) AND 大值周期>REF(大值周期,距前高天A),1,0);高保留XA:=IF(局部高点预选C=1 AND REF(距前低天A,1)>REF(距前高天A,1) AND HHV(H,距前低天A+1)>REF(HHV(H,距前低天A+1),1),1,0);高保留XB:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND REF(低保留,距前低天A)=-1 AND (距前低天A>=4 OR HHV(缺口判断,距前低天A)=1),1,0); 高保留X:=IF((高保留XA=1 OR 高保留XB=1 OR 判断X=1) AND H>REF(L,距前低天A+1),1,0);预判XA:=IF((距前高天A<4 AND HHV(缺口判断,距前高天A)!=1) OR REF(高保留XA,距前高天A)=0,1,0);判断XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND 预判XA=1 AND 小值周期>REF(大值周期,距前高天A+1) AND 小值周期>REF(大值周期,距前高天A) AND 小值周期>REF(小值周期,距前低天A),-1,0);低保留XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)>REF(距前低天A,1) AND LLV(L,距前高天A+1)<REF(LLV(L,距前高天A+1),1),-1,0);低保留XB:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND (距前高天A>=4 OR LLV(缺口判断,距前高天A)=-1 OR 判断XA=-1),-1,0);低保留X:=IF((低保留XA=-1 OR 低保留XB=-1) AND L<REF(H,距前高天A+1),-1,0);距前高天YA:=BARSLAST(高保留X=1);距前低天YA:=BARSLAST(低保留X=-1);预判YX:=IF((距前低天YA<4 AND HHV(缺口判断,距前低天YA)!=1) OR REF(低保留X,距前低天YA)=0,1,0);判断YX:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND 预判YX=1 AND 大值周期>REF(小值周期,距前低天YA+1) AND 大值周期>REF(小值周期,距前低天YA) AND 大值周期>REF(大值周期,距前高天YA),1,0);高保留YXA:=IF(局部高点预选C=1 AND REF(距前低天YA,1)>REF(距前高天YA,1) AND HHV(H,距前低天YA+1)>REF(HHV(H,距前低天YA+1),1),1,0);高保留YXB:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND REF(低保留X,距前低天YA)=-1 AND (距前低天YA>=4 OR HHV(缺口判断,距前低天YA)=1),1,0);高保留YX:=IF((高保留YXA=1 OR 高保留YXB=1 OR 判断YX=1) AND H>REF(L,距前低天YA+1),1,0);预判YXA:=IF((距前高天YA<4 AND HHV(缺口判断,距前高天YA)!=1) OR REF(高保留YXA,距前高天YA)=0,1,0);判断YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND 预判YXA=1 AND 小值周期>REF(大值周期,距前高天YA+1) AND 小值周期>REF(大值周期,距前高天YA) AND 小值周期>REF(小值周期,距前低天YA),-1,0);低保留YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)>REF(距前低天YA,1) AND LLV(L,距前高天YA+1)<REF(LLV(L,距前高天YA+1),1),-1,0);低保留YXB:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND (距前高天YA>=4 OR LLV(缺口判断,距前高天YA)=-1 OR 判断YXA=-1),-1,0);低保留YX:=IF((低保留YXA=-1 OR 低保留YXB=-1) AND L<REF(H,距前高天YA+1),-1,0); AAAD:=IF(高保留YX=1 AND 低保留YX=-1 AND H>REF(H,REF(距前高天YA,1)+2),1,IF(高保留YX=1 AND 低保留YX=-1 AND L<REF(L,REF(距前低天YA,1)+2),-1,0));极点保留:=IF(AAAD=0,高保留YX+低保留YX,AAAD);局部极点:IF(极点保留=-1,L,IF(极点保留=1,H,DRAWNULL)),CIRCLEDOT,COLORYELLOW; DRAWLINE(极点保留=-1,局部极点,极点保留=1,局部极点,0),COLORLIRED; DRAWLINE(极点保留=1,局部极点,极点保留=-1,局部极点,0),COLORYELLOW; DRAWNUMBER(极点保留=1,H,局部极点);DRAWNUMBER(极点保留=-1,L,局部极点),DRAWABOVE;。

通达信波浪尺主图指标公式

通达信波浪尺主图指标公式

通达信波浪尺主图指标公式高点:=10;低点:=10;高点选择:=1;低点选择:=1;波浪尺1:=0;波浪尺2:=1;PURC:=CONST(FINDHIGH(H,0,高点*10,高点选择));PLZ:=CONST(BARSLAST(PURC=H))+1;顶X:=CONST(IF(PLZ=1,H,REF(H,PLZ-1)));QQT:=CONST(FINDLOW(L,0,低点*10,低点选择));PLL:=CONST(BARSLAST(QQT=L))+1;低X:=CONST(IF(PLL=1,L,REF(L,PLL-1)));DRAWKLINE(H,O,L,C);顶点:顶X,COLORRED;底点:低X,COLORRED;波动速率:=100*((顶X-低X)/(IF(PLL>PLZ,低X,顶X)))/(PLL-PLZ),NODRAW,COLORMAGENTA;波动幅度:=((顶X-低X)/(IF(PLL>PLZ,低X,顶X)))*100;波动价位:=(顶X-低X)*(IF(PLL>PLZ,1,-1));BPURC:=CONST(FINDHIGH(H,0,(IF(波浪尺1>0,波浪尺1,IF(PLZ<PLL,高点,低点)))*5,波浪尺2));BPLZ:=CONST(BARSLAST(BPURC=H))+1;BQQT:=CONST(FINDLOW(L,0,(IF(波浪尺1>0,波浪尺1,IF(PLZ<PLL,高点,低点)))*5,波浪尺2));BPLL:=CONST(BARSLAST(BQQT=L))+1;BLC1:=CONST(FINDHIGH(H,0,(IF(波浪尺1>0,波浪尺1,IF(PLZ<PLL,高点,低点)))*5,波浪尺2));BLC2:=CONST(BARSLAST(BPURC=H))+1;BLC顶X:=CONST(IF(BPLZ=1,H,REF(H,BPLZ-1)));BLC3:=CONST(FINDLOW(L,0,(IF(波浪尺1>0,波浪尺1,IF(PLZ<PLL,高点,低点)))*5,波浪尺2));B6C4:=CONST(BARSLAST(BQQT=L))+1;BLC低X:=CONST(IF(BPLL=1,L,REF(L,BPLL-1)));BASE:=IF(波动速率<0,BLC顶X,BLC低X)COLORRED;BLCX:=IF(波动速率<0,-1,1);BLCZ:=(顶点-底点)*(IF(PLL>PLZ,1,-1));B618:=BASE+(BLCZ*0.618)COLORRED,DOTLINE;B382:=BASE+(BLCZ*0.382)COLORRED,DOTLINE;B05:=BASE+(BLCZ*0.5)COLORRED,DOTLINE;B809:=BASE+(BLCZ*0.809)COLORRED,DOTLINE;B191:=BASE+(BLCZ*0.191)COLORRED,DOTLINE;B100:=BASE+(BLCZ*1)COLORRED;B200:=BASE+(BLCZ*2)COLORRED;B11:=BASE+(BLCZ*1.191)COLORRED;B12:=BASE+(BLCZ*1.382)COLORRED;B13:=BASE+(BLCZ*1.5)COLORRED;B14:=BASE+(BLCZ*1.618)COLORRED;B15:=BASE+(BLCZ*1.809)COLORRED;BZ1:=BASE+(BLCZ*0.236)COLORRED;BZ2:=BASE+(BLCZ*1.236)COLORRED;BZ3:=BASE+(BLCZ*2.236)COLORRED;B11B:=BASE+(BLCZ*2.191)COLORRED;B12B:=BASE+(BLCZ*2.382)COLORRED;B13B:=BASE+(BLCZ*2.5)COLORRED;B14B:=BASE+(BLCZ*2.618)COLORRED;B15B:=BASE+(BLCZ*2.809)COLORRED;B300:=BASE+(BLCZ*3)COLORRED;XZDD:=IF(PLL>PLZ,BPLL,BPLZ);STICKLINE(CURRBARSCOUNT=XZDD ,BASE,B300,0,0),COLO RRED;DRAWTEXT(CURRBARSCOUNT=XZDD,B05,'---------0.500')COLORRED;DRAWTEXT(CURRBARSCOUNT=XZDD,BASE,'---------BASE')COLORRED;DRAWTEXT(CURRBARSCOUNT=XZDD,B618,'---------0.618')COLORRED;DRAWTEXT(CURRBARSCOUNT=XZDD,B809,'---------0.809')COLORRED;DRAWTEXT(CURRBARSCOUNT=XZDD,B382,'---------0.382')COLORRED;DRAWTEXT(CURRBARSCOUNT=XZDD,B191,'---------0.191')COLORRED;DRAWTEXT(CURRBARSCOUNT=XZDD,B100,'---------1.000')COLORRED;DRAWTEXT(CURRBARSCOUNT=XZDD,B11,'---------1.191')COLORRED;DRAWTEXT(CURRBARSCOUNT=XZDD,B12,'---------1.382')COLORRED;DRAWTEXT(CURRBARSCOUNT=XZDD,B13,'---------1.500')COLORRED;DRAWTEXT(CURRBARSCOUNT=XZDD,B14,'---------1.618')COLORRED;DRAWTEXT(CURRBARSCOUNT=XZDD,B15,'---------1.809')COLORRED;DRAWTEXT(CURRBARSCOUNT=XZDD,B200,'---------2.000')COLORRED;DRAWTEXT(CURRBARSCOUNT=XZDD,B11B,'---------2.191')COLORRED;DRAWTEXT(CURRBARSCOUNT=XZDD,B12B,'---------2.382')COLORRED;DRAWTEXT(CURRBARSCOUNT=XZDD,B13B,'---------2.500')COLORRED;DRAWTEXT(CURRBARSCOUNT=XZDD,B14B,'---------2.618')COLORRED;DRAWTEXT(CURRBARSCOUNT=XZDD,B15B,'---------2.809')COLORRED;DRAWTEXT(CURRBARSCOUNT=XZDD,B300,'---------3.000')COLORRED;DRAWTEXT(CURRBARSCOUNT=XZDD,BZ1,'---------0.236')COLORRED;DRAWTEXT(CURRBARSCOUNT=XZDD,BZ2,'---------1.236')COLORRED;DRAWTEXT(CURRBARSCOUNT=XZDD,BZ3,'---------2.236')COLORRED;QADQ:=IF(PLL>PLZ,PLL,PLZ);QADH:=IF(PLL>PLZ,PLZ,PLL);QHL1:=IF(PLL>PLZ,L,H);QHL2:=IF(PLL>PLZ,H,L);DRAWLINE(CURRBARSCOUNT=QADQ,QHL1,CURRBARSCO UNT=QADH,QHL2,0)COLORRED;DRAWLINE(CURRBARSCOUNT=QADH,QHL2,CURRBARSCO UNT=XZDD,QHL1,0)COLORRED;。

【股票指标公式下载】-【通达信】波浪主图(坚定、犹豫、等待、现价)

【股票指标公式下载】-【通达信】波浪主图(坚定、犹豫、等待、现价)

【通达信】波浪主图(坚定、犹豫、等待、现价)-指标公式源码MA5:MA(CLOSE,5);MA10:MA(CLOSE,10);DRAWBAND(MA5,RGB(238,108,180),MA10,RGB(56,30,30));MA30:MA(CLOSE,30),LINETHICK3,COLOR4D4DFF;降MA10:IF(MA10<REF(MA10,1),MA10,DRAWNULL),COLORBLUE,LINETHICK5;降MA30:IF(MA30<REF(MA30,1),MA30,DRAWNULL),COLOR238E23,LINETHICK3; VAR1:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);VAR2:=CROSS(VAR1,0.9);VAR3:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);VAR4:=CROSS(VAR3,0.9);压力: REF(HIGH,BARSLAST(VAR2)), POINTDOT,COLOREA91B5,LINETHICK4; STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2)),REF(HIGH,BARSLAST(VAR2)),5,0 ),COLOREA91B5;支撑: REF(LOW,BARSLAST(VAR4)), POINTDOT,COLOR3791B5,LINETHICK4; STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR4)),REF(LOW,BARSLAST(VAR4)),5,0), COLOR3791B5;{STICKLINE(VAR2,HIGH,HIGH*1.01,5,0),COLOR00E40E;}DRAWTEXT(VAR2,HIGH*1.01,'跌'),COLOR00E40E;{STICKLINE(VAR4,LOW,LOW*0.99,5,0),COLOR00E40E;}DRAWTEXT(VAR4,LOW*0.99,'停'),COLOR00E40E;VAR5:=IF(VAR2,HIGH,IF(VAR4,LOW,0));{POLYLINE(VAR5,VAR5),COLORFF00FF;}VAR6:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND LOW<REF(LOW,1) ANDHIGH<REF(HIGH,1),3);VAR7:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND LOW>REF(LOW,1) ANDHIGH>REF(HIGH,1),3);VAR8:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND HIGH<REF(HIGH,1) AND LOW>REF(LOW,1)AND REF(LOW,1)>REF(LOW,2) AND REF(HIGH,1)<REF(HIGH,2),3);VAR9:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND LOW>REF(LOW,1) ANDHIGH>REF(HIGH,1),3);VARA:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND LOW<REF(LOW,1) ANDHIGH<REF(HIGH,1),3);VARB:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND HIGH<REF(HIGH,1) ANDLOW>REF(LOW,1)AND REF(LOW,1)>REF(LOW,2) AND REF(HIGH,1)<REF(HIGH,2),3);{坚定: STICKLINE(CROSS(VAR6,0.9),HIGH,HIGH*1.01,5,0),COLOR0000FF;} DRAWTEXT(CROSS(VAR6,0.9),HIGH*1.01,'坚定'),COLORMAGENTA; {STICKLINE(CROSS(VAR9,0.9),LOW,LOW*0.99,5,0),COLOR0000FF;} DRAWTEXT(CROSS(VAR9,0.9),LOW*0.99,'停定'),COLOR0000FF;{犹豫: STICKLINE(CROSS(VAR7,0.9),HIGH,HIGH*1.01,5,0),COLOR00E5E9;} DRAWTEXT(CROSS(VAR7,0.9),HIGH*1.01,'犹豫'),COLOR00E5E9;{STICKLINE(CROSS(VARA,0.9),LOW,LOW*0.99,5,0),COLOR00E5E9;} DRAWTEXT(CROSS(VARA,0.9),HIGH*1.01,'犹豫'),COLOR00E5E9;{等待: STICKLINE(CROSS(VAR8,0.9),HIGH,HIGH*1.01,5,0),COLORFF4100;} DRAWTEXT(CROSS(VAR8,0.9),HIGH*1.01,'等待'),COLORFF4100;{STICKLINE(CROSS(VARB,0.9),LOW,LOW*0.99,5,0),COLORFF4100;} DRAWTEXT(CROSS(VARB,0.9),HIGH*1.01,'等待'),COLORFF4100;现价:CLOSE,POINTDOT,COLORRED;V1:=MA(HIGH,30)*1.15;V2:=MA(HIGH,3)*1.03;V3:=MA(LOW,3)*0.97;V4:=MA(LOW,30)*0.85;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) AND REF(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,'㈠'),COLORFFFF00;DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'㈡'),COLORFFFF00;DRAWTEXT(EN2 AND ZTJZ5=1,L*0.90,'㈢买'),COLORFFFF00;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.94,'Ⅰ短线'),COLORFF6000;DRAWTEXT(EX2 AND DTJD10=2,H*1.06,'Ⅱ'),COLORFF6000;DRAWTEXT(EN3 AND ZTJZ10=1,L*0.94,'Ⅲ买'),COLORFF6000;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.06,'①卖出'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.94,'②补仓'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,H*1.06,'③清仓'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.94,'④持股'),LINETHICK3,COLOR00FFFF;【通达信】波浪主图(坚定、犹豫、等待、现价)-指标公式效果图c(文档来源:若水财经社区)。

通达信指标——波浪主图(主图)

通达信指标——波浪主图(主图)

GET:ZIG(3,5),COLORAAAAAA;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),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);PL10:=ZIG(3,13);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),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);PL20:=ZIG(3,26);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),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);PL40:=ZIG(3,55);走强一:=BARSLAST(PL5走弱一:=BARSLAST(PL5>REF(PL5,1));走强二:=BARSLAST(PL10走弱二:=BARSLAST(PL10>REF(PL10,1));走强三:=BARSLAST(PL20走弱三:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强二),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强二),0);DTJZ5:=IF(PL10DTJD5:=IF(PL10ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强三),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强三),0);DTJZ10:=IF(PL20DTJD10:=IF(PL20DRAWTEXT(EN1 AND DTJZ5=1,LOW*0.97,'(Ⅰ)'),COLORFFFF00;DRAWTEXT(EX1 AND DTJD5=2,HIGH*1.03,'(Ⅱ)'),COLORFFFF00;DRAWTEXT(EN2 AND ZTJZ5=1,LOW*0.97,'(Ⅲ)'),COLORFFFF00;DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,HIGH*1.02,'⑴'),COLOR0000FF; DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,LOW*0.98,'⑵'),COLOR0000FF; DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,HIGH*1.02,'⑶'),COLOR0000FF; DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,LOW*0.98,'⑷'),COLOR0000FF; DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,HIGH*1.02,'⑸'),COLOR0000FF; DRAWTEXT(EN2 AND DTJZ10=1,LOW*0.94,'【A】'),COLOR00FF00;DRAWTEXT(EX2 AND DTJD10=2,HIGH*1.05,'【B】'),COLOR00FF00;DRAWTEXT(EN3 AND ZTJZ10=1,LOW*0.94,'【C】'),COLOR00FF00;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,HIGH*1.04,'①'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,LOW*0.96,'②'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,HIGH*1.04,'③'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,LOW*0.96,'④'),LINETHICK3,COLOR00FFFF;DMLJ:=HHV(HIGH,120);TY:=H;TY1:=L;HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10);LD:=FILTER(BACKSET(FILTER(REF(TY1,10)=LLV(TY1,2*10+1),10),10+1),10);A:=REF(H,BARSLAST(HD));B:=REF(L,BARSLAST(LD));T1:=BARSLAST(HD)T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);波浪顶:IF(T1,A,A),COLORFF00FF,POINTDOT,LINETHICK2;波浪底:IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK2;。

波浪与波神 主图指标通达信指标公式源码

波浪与波神 主图指标通达信指标公式源码

波浪与波神主图指标源码:波浪与波神INPUT:最近天(20,1,360);当前月:=FRACPART(ROUND(当前日期/100)/100)*100;月:=MONTH;日:=DAY;VERTLINE(月=1 AND ( 日=25)),COLORFFFFFF,LINEDASHDOT; VERTLINE(月=3 AND ( 日=20)),COLORFFFFFF,LINEDASHDOT; VERTLINE(月=5 AND ( 日=12)),COLORFFFFFF,LINEDASHDOT; VERTLINE(月=6 AND (日=14 )),COLORFFFFFF,LINEDASHDOT; VERTLINE(月=7 AND ( 日=19 )),COLORFFFFFF,LINEDASHDOT; VERTLINE(月=8 AND ( 日=6 )),COLORFFFFFF,LINEDASHDOT; VERTLINE(月=9 AND ( 日=18 )),COLORFFFFFF,LINEDASHDOT; VERTLINE(月=10 AND ( 日=31)),COLORFFFFFF,LINEDASHDOT; VERTLINE(月=11 AND ( 日=28)),COLORFFFFFF,LINEDASHDOT; VERTLINE(月=12 AND ( 日=31)),COLORFFFFFF,LINEDASHDOT; VERTLINE(月=1 AND ( 日=6 OR 日=15 OR 日=21 )),COLORAAAAAA,LINEDASHDOT;VERTLINE(月=2 AND ( 日=6 OR 日=15 OR 日=21 )),COLORAAAAAA,LINEDASHDOT;VERTLINE(月=3 AND ( 日=6 OR 日=15 OR 日=21 )),COLORAAAAAA,LINEDASHDOT;VERTLINE(月=4 AND ( 日=6 OR 日=15 OR 日=21 )),COLORAAAAAA,LINEDASHDOT;VERTLINE(月=5 AND ( 日=6 OR 日=15 OR 日=21 )),COLORAAAAAA,LINEDASHDOT;VERTLINE(月=6 AND ( 日=6 OR 日=21)),COLORAAAAAA,LINEDASHDOT; VERTLINE(月=7 AND ( 日=8 OR 日=15 OR 日=23)),COLORAAAAAA,LINEDASHDOT;VERTLINE(月=8 AND ( 日=8 OR 日=15 OR 日=23)),COLORAAAAAA,LINEDASHDOT;VERTLINE(月=9 AND ( 日=8 OR 日=15 OR 日=23)),COLORAAAAAA,LINEDASHDOT;VERTLINE(月=10 AND ( 日=8 OR 日=15 OR 日=23 )),COLORAAAAAA,LINEDASHDOT;VERTLINE(月=11 AND ( 日=8 OR 日=15 OR 日=23)),COLORAAAAAA,LINEDASHDOT;VERTLINE(月=12 AND ( 日=8 OR 日=15 OR 日=23 )),COLORAAAAAA,LINEDASHDOT;N:=if(sysparam(1)=datacount,最近天,datacount-sysparam(1));HH:=HHV(HIGH,N);LL:=LLV(LOW,N);VN:=N;{LAST1:=DATACOUNT;}IF VN>DATACOUNT THENVN:=DATACOUNT+1;FOR I=DATACOUNT DOWNTO DATACOUNT-VN+1 DO BEGINHH[I]:=HH[DATACOUNT];LL[I]:=LL[DATACOUNT];END;TMP:=SETLBOUND(hh,DATACOUNT-VN+1);TMP:=SETLBOUND(ll,DATACOUNT-VN+1);阶段高:HH,LINETHICK2,color0000FF;阶段低:LL,LINETHICK2,color00FF00;中线:(HH+LL)/2,linethick0;KKH:=BARSLAST(H=HH);KKL:=BARSLAST(L=LL);N低日:=STRTONUM(NUMTOSTR(REF(DATE,KKL),0)),LINETHICK;N高日:=STRTONUM(NUMTOSTR(REF(DATE,KKH),0)),LINETHICK;多空:IF(N低日>N高日,2,1),LINETHICK0;多空天:IF(N低日<N高日,kkl,kkh),LINETHICK0;DATE1:=IF(多空=1,N低日,N高日);{}hh0:=ref(h,BARSLAST(DATE1=DATE));ll0:=ref(l,BARSLAST(DATE1=DATE));H1:=STRTONUM(NUMTOSTR(Hh0,3)),POINTDOT;L1:=STRTONUM(NUMTOSTR(Ll0,3)),POINTDOT;PARTLINE(1,H1),,POINTDOT,linethick0;PARTLINE(1,L1),,POINTDOT,linethick0;LL:=H1 - L1;VERTLINE(DATE=DATE1),COLORFFAAAA,,LINETHICK2;DRAWTEXT(DATE=DATE1,SYSPARAM(4)*0.95,'起\n \n始\n \n线'),COLORFFFFFF;起始至今天:BARSLAST(DATE1=DATE),COLORFFFF00,LINETHICK0;涨幅:(C-REF(C,起始至今天))/REF(C,起始至今天)*100,COLORFFDDDD,LINETHICK0;IF 多空=1 THEN BEGIN{看多}开门线: PARTLINE(DATE>=N低日,LL*1.50801 +L1),LINETHICK1,COLOREE99FF;;PARTLINE(DATE>=N低日,LL*2.00001 + L1),COLOR9999FF,LINEDOT;多2线: PARTLINE(DATE>=N低日,LL*2.40001 + L1),COLORFFFF99,linethick1; PARTLINE(DATE>=N低日,LL*3.05001 + L1),COLOR99FF99,LINEDOT; PARTLINE(DATE>=N低日,LL*3.75001 + L1),COLORFF9999,LINEDOT;多5线: PARTLINE(DATE>=N低日,LL*4.15001 +L1),COLORMAGENTA,linethick2,LINEDOT;PARTLINE(DATE>=N低日,LL*4.80001 + L1),COLORRED,LINEDOT;多7线: PARTLINE(DATE>=N低日,LL*5.50001 + L1),COLORCYAN,linethick2; PARTLINE(DATE>=N低日,LL*6.10001 + L1),COLORGREEN,LINEDOT; PARTLINE(DATE>=N低日,LL*6.90001 + L1),LINETHICK1,COLORRED;L*1.50801,2)),COLORAAAAAA,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1+LL*2.00001+0.002,NUMTOSTR(L1+L L*2.00001,2)),COLORAAAAAA,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1+LL*2.40001+0.002,'NO.2'+NUMTOSTR(L1+LL*2.40001,2)),COLORAAAAAA,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1+LL*3.05001+0.002,NUMTOSTR(L1+L L*3.05001,2)),COLORAAAAAA,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1+LL*3.75001+0.002,NUMTOSTR(L1+L L*3.75001,2)),COLORAAAAAA,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1+LL*4.15001+0.002,'NO.5'+NUMTOSTR(L1+LL*4.15001,2)),COLORAAAAAA,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1+LL*4.80001+0.002,NUMTOSTR(L1+L L*4.80001,2)),COLORAAAAAA,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1+LL*5.50001+0.002,'NO.7'+NUMTOSTR(L1+LL*5.50001,2)),COLORAAAAAA,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1+LL*6.10001+0.002,NUMTOSTR(L1+L L*6.10001,2)),COLORAAAAAA,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1+LL*6.90001+0.002,NUMTOSTR(L1+L L*6.90001,2)),COLORAAAAAA,ALIGN2;DRAWTEXT(DATE=DATE1,LL*1.50801 + L1+0.002,'多开门'),colorred; DRAWTEXT(DATE=DATE1,LL*6.90001 + L1+0.002,'多关门'),colorred; END;ELSE BEGIN{看空}空开门线: PARTLINE(DATE>=N高日,H1-LL*1.50801),LINETHICK1,COLOREE99FF;PARTLINE(DATE>=N高日,H1-LL*2.00001),COLOR9999FF,LINEDOT;空2线: PARTLINE(DATE>=N高日,H1-LL*2.40001),COLORFFFF99; PARTLINE(DATE>=N高日,H1-LL*3.05001),COLOR99FF99,LINEDOT; PARTLINE(DATE>=N高日,H1-LL*3.75001),COLORFF9999,LINEDOT;空5线: PARTLINE(DATE>=N高日,H1-LL*4.15001),COLORMAGENTA; PARTLINE(DATE>=N高日,H1-LL*4.80001),COLORRED,LINEDOT;空7线: PARTLINE(DATE>=N高日,H1-LL*5.50001),COLORCYAN; PARTLINE(DATE>=N高日,H1-LL*6.10001),COLORGREEN,LINEDOT;空关门线: PARTLINE(DATE>=N高日,H1-LL*6.90001),LINETHICK1,COLORRED; DRAWTEXT(DATE=DATE1,H1-LL*1.50801+0.002,'空开门'),color3333FF; DRAWTEXT(DATE=DATE1,H1-LL*6.90001+0.002,'空关门'),color3333FF; DRAWTEXT(SYSPARAM(3)=BARPOS,H1-LL*1.50801+0.002,NUMTOSTR(H1-L L*1.50801,2)),COLORAAAAAA,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-LL*2.00001+0.002,NUMTOSTR(H1-L L*2.00001,2)),COLORAAAAAA,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-LL*2.40001+0.002,'NO.2'+NUMTOSTR(H1-LL*2.40001,2)),COLORAAAAAA,ALIGN2;L*3.05001,2)),COLORAAAAAA,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-LL*3.75001+0.002,NUMTOSTR(H1-L L*3.75001,2)),COLORAAAAAA,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-LL*4.15001+0.002,'NO.5'+NUMTOSTR(H1-LL*4.15001,2)),COLORAAAAAA,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-LL*4.80001+0.002,NUMTOSTR(H1-L L*4.80001,2)),COLORAAAAAA,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-LL*5.50001+0.002,'NO.7'+NUMTOSTR(H1-LL*5.50001,2)),COLORAAAAAA,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-LL*6.10001+0.002,NUMTOSTR(H1-L L*6.10001,2)),COLORAAAAAA,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-LL*6.90001+0.002,NUMTOSTR(H1-L L*6.90001,2)),COLORAAAAAA,ALIGN2;END;高年:=ref(YEAR,BARSLAST(date=N高日));高月:=ref(MONTH,BARSLAST(date=N高日));高日:=ref(DAY,BARSLAST(date=N高日));低年:=ref(YEAR,BARSLAST(date=N低日));低月:=ref(MONTH,BARSLAST(date=N低日));低日:=ref(DAY,BARSLAST(date=N低日));DRAWTEXT(SYSPARAM(2)=BARPOS,H1,'最近'+NUMTOSTR(最近天,0)+'天最高价日期:'+NUMTOSTR(高年,0)+'年'+NUMTOSTR(高月,0)+'月'+NUMTOSTR(高日,0)+'日'+'\n \n'+'最近'+NUMTOSTR(最近天,0)+'天最低价日期:'+NUMTOSTR(低年,0)+'年'+NUMTOSTR(低月,0)+'月'+NUMTOSTR(低日,0)+'日'),COLORFFAAAA,ALIGN4;DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='1',c,NUMTOSTR(当前月,0)+'月转折日:6、15、21、*25\n \n \n \n '),COLOR00FFFF,ALIGN5;DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='2',c,NUMTOSTR(当前月,0)+'月转折日:6、15、21\n \n \n \n'),COLOR00FFFF,ALIGN5;DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='3',c,NUMTOSTR(当前月,0)+'月转折日:6、15、*20、21\n \n \n \n '),COLOR00FFFF,ALIGN5;DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='4',c,NUMTOSTR(当前月,0)+'月转折日:6、15、21\n \n \n \n'),COLOR00FFFF,ALIGN5;DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='5',c,NUMTOSTR(当前月,0)+'月转折日:6、*1 2、15、21\n \n \n \n '),COLOR00FFFF,ALIGN5;DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='6',c,NUMTOSTR(当前月,0)+'月转折日:6、*1 4、21\n \n \n \n'),COLOR00FFFF,ALIGN5;DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='7',c,NUMTOSTR(当前月,0)+'月转折日:8、15、*1 9、23\n \n \n \n '),COLOR00FFFF,ALIGN5;DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='8',c,NUMTOSTR(当前月,0)+'月转折日:*6、8、15、23\n \n \n \n '),COLOR00FFFF,ALIGN5;DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='9',c,NUMTOSTR(当前月,0)+'月转折日:8、15、*1 8、23\n \n \n \n '),COLOR00FFFF,ALIGN5;DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='10',c,NUMTOSTR(当前月,0)+'月转折日:8、15、23、*31\n \n \n \n '),COLOR00FFFF,ALIGN5;DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='11',c,NUMTOSTR(当前月,0)+'月转折日:8、15、23、*28\n \n \n \n '),COLOR00FFFF,ALIGN5;DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='12',c,NUMTOSTR(当前月,0)+'月转折日:8、15、23、*31\n \n \n \n '),COLOR00FFFF,ALIGN5;{-----------------------------立体K线--------------------------------------}{-------------------------------------------------------------------------}pl5:=之字转向(3,5);en1:=之字转向(3,5)>向前引用(之字转向(3,5),1) and 向前引用(之字转向(3,5),1)<=向前引用(之字转向(3,5),2) and 向前引用(之字转向(3,5),2)<=向前引用(之字转向(3,5),3);ex1:=之字转向(3,5)<向前引用(之字转向(3,5),1) and 向前引用(之字转向(3,5),1)>=向前引用(之字转向(3,5),2) and 向前引用(之字转向(3,5),2)>=向前引用(之字转向(3,5),3);pl10:=之字转向(3,13);en2:=之字转向(3,10)>向前引用(之字转向(3,10),1) and 向前引用(之字转向(3,10),1)<=向前引用(之字转向(3,10),2) and 向前引用(之字转向(3,10),2)<=向前引用(之字转向(3,10),3);ex2:=之字转向(3,10)<向前引用(之字转向(3,10),1) and 向前引用(之字转向(3,10),1)>=向前引用(之字转向(3,10),2) and 向前引用(之字转向(3,10),2)>=向前引用(之字转向(3,10),3);pl20:=之字转向(3,26);en3:= 之字转向(3,20)>向前引用(之字转向(3,20),1) and 向前引用(之字转向(3,20),1)<=向前引用(之字转向(3,20),2) and 向前引用(之字转向(3,20),2)<=向前引用(之字转向(3,20),3);ex3:=之字转向(3,20)<向前引用(之字转向(3,20),1) and 向前引用(之字转向(3,20),1)>=向前引用(之字转向(3,20),2) and 向前引用(之字转向(3,20),2)>=向前引用(之字转向(3,20),3);pl40:=之字转向(3,55);走强1:=上一次条件成立位置(pl5<向前引用(pl5,1));走弱1:=上一次条件成立位置(pl5>向前引用(pl5,1));走强2:=上一次条件成立位置(pl10<向前引用(pl10,1));走弱2:=上一次条件成立位置(pl10>向前引用(pl10,1));走强3:=上一次条件成立位置(pl20<向前引用(pl20,1));走弱3:=上一次条件成立位置(pl20>向前引用(pl20,1));ztjz5:=条件函数(pl10>向前引用(pl10,1),统计总数(en1,走强2),0);ztjd5:=条件函数(pl10>向前引用(pl10,1),统计总数(ex1,走强2),0);dtjz5:=条件函数(pl10<向前引用(pl10,1),统计总数(en1,走弱2),0);dtjd5:=条件函数(pl10<向前引用(pl10,1),统计总数(ex1,走弱2),0);ztjz10:=条件函数(pl20>向前引用(pl20,1),统计总数(en2,走强3),0);ztjd10:=条件函数(pl20>向前引用(pl20,1),统计总数(ex2,走强3),0);dtjz10:=条件函数(pl20<向前引用(pl20,1),统计总数(en2,走弱3),0);dtjd10:=条件函数(pl20<向前引用(pl20,1),统计总数(ex2,走弱3),0);显示文字(en1 and dtjz5=1,最低价*0.98,'(Ⅰ)'),colorffff00;显示文字(ex1 and dtjd5=2,最高价*1.02,'(Ⅱ)'),colorffff00;显示文字(en2 and ztjz5=1,最低价*0.98,'(Ⅲ)'),colorffff00;显示文字(ex1 and pl10>向前引用(pl10,1) and ztjd5=1,最高价*1.02,'⑴'),colorff;显示文字(en1 and pl10>向前引用(pl10,1) and ztjz5=2,最低价*0.98,'⑵'),colorff;显示文字(ex1 and pl10>向前引用(pl10,1) and ztjz5=2,最高价*1.02,'⑶'),colorff; 显示文字(en1 and pl10>向前引用(pl10,1) and ztjz5=3,最低价*0.98,'⑷'),colorff;显示文字(ex2 and pl20>向前引用(pl20,1) and ztjd10=1,最高价*1.02,'⑸'),colorff;显示文字(en2 and dtjz10=1,最低价*0.94,'【A】'),color00ff00;显示文字(ex2 and dtjd10=2,最高价*1.03,'【B】'),color00ff00;显示文字(en3 and ztjz10=1,最低价*0.94,'【C】'),color00ff00;显示文字(ex2 and pl20>向前引用(pl20,1) and ztjd10=1,最高价*1.04,'①'),Linethick3,colorffff;显示文字(en2 and pl20>向前引用(pl20,1) and ztjz10=2,最低价*0.94,'②'),Linethick3,colorffff;显示文字(ex2 and pl20>向前引用(pl20,1) and ztjd10=2 or (ztjd10=0 orztjd10=2) and ex2,最高价*1.04,'③'),Linethick3,colorffff;显示文字(en2 and pl20>向前引用(pl20,1) and ztjz10=3,最低价*0.94,'④'),Linethick3,colorffff;DMLJ:=最高值(最高价,120);TY:=收盘价;HD:=信号过滤(向前赋值(信号过滤(向前引用(TY,10)=最高值(TY,2*10+1),10),10+1),10);LD:=信号过滤(向前赋值(信号过滤(向前引用(TY,10)=最低值(TY,2*10+1),10),10+1),10);A:=向前引用(收盘价,上一次条件成立位置(HD));B:=向前引用(收盘价,上一次条件成立位置(LD));T1:=上一次条件成立位置(HD)<上一次条件成立位置(LD) AND 求逻辑非(HD) ; T2:=上一次条件成立位置(HD)>上一次条件成立位置(LD) AND 求逻辑非(LD); 波浪顶:条件函数(T1,A,A),COLORFF00FF,点状线,LINETHICK4;画柱线(T1,A,A,9,0),COLORFF00FF;波浪底:条件函数(T2,B,B),COLOR80FF00,点状线,LINETHICK4;VAR3:=最低值(最高价,240);VAR4:=100*(收盘价-VAR3)/VAR3;VAR5:=(收盘价-最低值(最低价,528))/(最高值(最高价,528)-最低值(最低价,528))*100;VAR6:=(收盘价-最低值(收盘价,530))/(最高值(收盘价,530)-最低值(收盘价,530))*100;VAR7:=0;VAR8:=简单移动平均(最高值(收盘价-向前引用(收盘价,1),0),34)/简单移动平均(绝对值(收盘价-向前引用(收盘价,1)),7)*100;VAR9:=简单移动平均(最高值(收盘价-向前引用(收盘价,1),0),13)/简单移动平均(绝对值(收盘价-向前引用(收盘价,1)),13)*100;VARA:=有效值周期数(收盘价);VARB:=VAR8<20 AND VAR9<23 AND VARA>35;VARC:=VARB AND 统计总数(VARB,1)=1;VARD:=指数平滑移动平均(收盘价,21)-指数平滑移动平均(收盘价,8); VARE:=指数平滑移动平均(VARD,5);VARF:=前M个波谷值(3,6,1)<4 AND 交叉函数(VARD,VARE);VAR10:=条件函数(前M个波谷值(3,16,1)=0 AND 最高价>最低价+0.04,4,0); VAR11:=之字转向(3,6)>向前引用(之字转向(3,6),1) AND 向前引用(之字转向(3,6),1)<=向前引用(之字转向(3,6),2) AND 向前引用(之字转向(3,6),2)<=向前引用(之字转向(3,6),3);VAR12:=之字转向(3,6)<向前引用(之字转向(3,6),1) AND 向前引用(之字转向(3,6),1)>=向前引用(之字转向(3,6),2) AND 向前引用(之字转向(3,6),2)>=向前引用(之字转向(3,6),3);VAR13:=之字转向(3,22)>向前引用(之字转向(3,22),1) AND 向前引用(之字转向(3,22),1)<=向前引用(之字转向(3,22),2) AND 向前引用(之字转向(3,22),2)<=向前引用(之字转向(3,22),3);VAR14:=之字转向(3,22)<向前引用(之字转向(3,22),1) AND 向前引用(之字转向(3,22),1)>=向前引用(之字转向(3,22),2) AND 向前引用(之字转向(3,22),2)>=向前引用(之字转向(3,22),3);VAR15:=之字转向(3,51)>向前引用(之字转向(3,51),1) AND 向前引用(之字转向(3,51),1)<=向前引用(之字转向(3,51),2) AND 向前引用(之字转向(3,51),2)<=向前引用(之字转向(3,51),3);VAR16:=之字转向(3,51)<向前引用(之字转向(3,51),1) AND 向前引用(之字转向(3,51),1)>=向前引用(之字转向(3,51),2) AND 向前引用(之字转向(3,51),2)>=向前引用(之字转向(3,51),3);VAR17:=之字转向(3,72)>向前引用(之字转向(3,72),1) AND 向前引用(之字转向(3,72),1)<=向前引用(之字转向(3,72),2) AND 向前引用(之字转向(3,72),2)<=向前引用(之字转向(3,72),3);VAR18:=之字转向(3,72)<向前引用(之字转向(3,72),1) AND 向前引用(之字转向(3,72),1)>=向前引用(之字转向(3,72),2) AND 向前引用(之字转向(3,72),2)>=向前引用(之字转向(3,72),3);VAR19:=指数平滑移动平均(收盘价,2)-指数平滑移动平均(收盘价,150);VAR1A:=指数平滑移动平均(VAR19,100);VAR1B:=2*(VAR19-VAR1A);VAR1C:=乘幂(VAR1B,3)*0.1+乘幂(VAR1B,1);VAR1D:=开平方(开平方(最低价*最高价*开盘价*收盘价));VAR1E:=指数平滑移动平均(VAR1D*0.97,3);VAR1F:=(最高价+最低价+收盘价)/3;VAR20:=(VAR1F-简单移动平均(VAR1F,14))/(0.015*平均绝对偏差(VAR1F,14)); VAR21:=交叉函数(VAR1E,最低价);买点1:=VAR10;买点2:=(VAR11+VAR13+VAR15+VAR17);卖点1:=(VAR12+VAR14+VAR16+VAR18),LINETHICK2;VAR22:=买点1 AND VARF AND VARC AND VAR21 AND VAR4<0 AND VAR5=0 AND VAR6=0 AND VAR20<(-110);VAR1:=简单移动平均(收盘价,6);VAR2:=简单移动平均(收盘价,18);VAR31:=简单移动平均(收盘价,30);VARB1:=求和(收盘价*成交量*100,28)/求和(成交量*100,28);VARC1:=取整(VARB1*100)/100;VARD1:=指数平滑移动平均(收盘价,5)-指数平滑移动平均(收盘价,10);VARE1:=指数平滑移动平均(VARD1,9);VAR131:=向前引用(VARE1,1);VAR141:=VARE1;VAR151:=VAR141-VAR131;VAR161:=向前引用(VARD1,1);VAR171:=VARD1;VAR181:=VAR171-VAR161;VAR191:=开盘价;VAR1A1:=收盘价;显示文字(买点1>0,最低价-0.01,'▲买!'),COLORRED;显示文字(买点2>0,最低价-0.01,'▲要涨'),COLORYELLOW;显示文字(卖点1>0,最高价+0.1,'▼快卖'), COLORWHITE;a:=有效值周期数(收盘价);ah:=最高值(最高价,72);al:=最低值(最低价,72);a0:=(ah-al)/21;b1:=最低价-a0;显示文字((a+0)/15=向下舍入((a+0)/15),b1-2.5*a0,'▲时窗'),COLORWHITE; var31:=上一高点位置(之字转向(3, 19)>向前引用(之字转向(3,19),1)and 向前引用(之字转向(3,19), 1)<向前引用(之字转向(3,19), 2),0);画柱线(var31=2,最低价*0.95,最低价*0.98,8,0),color0000ff;显示文字(var31=2,最低价*0.95,'3天'),COLORWHITE;画柱线(var31=4,最高价*1.05,最高价*1.02,8,0),color9966ff;显示文字(var31=4,最高价*1.06,'5天'),COLORWHITE;画柱线(var31=7,最低价*0.95,最低价*0.98,8,0),color00ffff;显示文字(var31=7,最低价*0.95,'8天'),COLORWHITE;画柱线(var31=12,最高价*1.05,最高价*1.02,8,0),colorff33ff;显示文字(var31=12,最高价*1.06,'13天'),COLORWHITE;画柱线(var31=20,最低价*0.95,最低价*0.98,8,0),color0066ff;显示文字(var31=20,最低价*0.95,'21天'),COLORWHITE;画柱线(var31=33,最高价*1.05,最高价*1.02,8,0),colorffff00;显示文字(var31=33,最高价*1.06,'34天'),COLORWHITE;画柱线(var31=54,最低价*0.95,最低价*0.98,8,0),COLORWHITE;显示文字(var31=54,最低价*0.95,'55天'),COLORWHITE;画柱线(var31=88,最高价*1.05,最高价*1.02,8,0),color00ff00;显示文字(var31=88,最高价*1.06,'89天'),COLORWHITE;画柱线(var31=143,最低价*0.95,最低价*0.98,8,0),colorccffff;显示文字(var31=143,最低价*0.95,'144天'),COLORWHITE;画柱线(var31=232 ,最高价*1.05,最高价*1.02,8,0),colorff0033;显示文字(var31=232,最高价*1.06,'233天'),COLORWHITE;画柱线(var31=376,最低价*0.95,最低价*0.98,8,0),colorff9966;显示文字(var31=376,最低价*0.95,'377天'),COLORWHITE;立春:=信号过滤(月份=2 AND (日期=3 OR 日期=5 ),2);雨水:=信号过滤(月份=2 AND (日期=18 OR 日期=20),2);惊蛰:=信号过滤(月份=3 AND (日期=5 OR 日期=7 ),2);春分:=信号过滤(月份=3 AND (日期=20 OR 日期=22),2);清明:=信号过滤(月份=4 AND (日期=3 OR 日期=6 ),2);谷雨:=信号过滤(月份=4 AND (日期=19 OR 日期=21),2);立夏:=信号过滤(月份=5 AND (日期=6 OR 日期=8 ),2);小满:=信号过滤(月份=5 AND (日期=20 OR 日期=22),2);芒种:=信号过滤(月份=6 AND (日期=5 OR 日期=7 ),2);夏至:=信号过滤(月份=6 AND (日期=20 OR 日期=22),2);小暑:=信号过滤(月份=7 AND (日期=6 OR 日期=8 ),2);大署:=信号过滤(月份=7 AND (日期=22 OR 日期=24),2);立秋:=信号过滤(月份=8 AND (日期=7 OR 日期=9 ),2);处暑:=信号过滤(月份=8 AND (日期=22 OR 日期=24),2);白露:=信号过滤(月份=9 AND (日期=7 OR 日期=9 ),2);秋分:=信号过滤(月份=9 AND (日期=22 OR 日期=24),2);寒露:=信号过滤(月份=10 AND (日期=7 OR 日期=9 ),2);霜降:=信号过滤(月份=10 AND (日期=22 OR 日期=24),2);立冬:=信号过滤(月份=11 AND (日期=7 OR 日期=9 ),2);小雪:=信号过滤(月份=11 AND (日期=22 OR 日期=24),2);大雪:=信号过滤(月份=12 AND (日期=6 OR 日期=8 ),2);冬至:=信号过滤(月份=12 AND (日期=21 OR 日期=23),2);小寒:=信号过滤(月份=1 AND (日期=5 OR 日期=7 ),2);大寒:=信号过滤(月份=1 AND (日期=19 OR 日期=21),2);显示文字(立春,最高价*1.02,'立春'),COLORgreen,ALIGN1;显示文字(雨水,最高价*1.02,'雨水'),COLORgreen,ALIGN1;显示文字(惊蛰,最高价*1.02,'惊蛰'),COLORgreen,ALIGN1;显示文字(春分,最高价*1.02,'春分'),COLORgreen,ALIGN1;显示文字(清明,最高价*1.02,'清明'),COLORgreen,ALIGN1;显示文字(谷雨,最高价*1.02,'谷雨'),COLORgreen,ALIGN1;显示文字(立夏,最高价*1.02,'立夏'),COLORMAGENTA,ALIGN1;显示文字(小满,最高价*1.02,'小满'),COLORMAGENTA,ALIGN1;显示文字(芒种,最高价*1.02,'芒种'),COLORMAGENTA,ALIGN1;显示文字(夏至,最高价*1.02,'夏至'),COLORMAGENTA,ALIGN1;显示文字(小暑,最高价*1.02,'小暑'),COLORMAGENTA,ALIGN1;显示文字(大署,最高价*1.02,'大署'),COLORMAGENTA,ALIGN1;显示文字(立秋,最高价*1.02,'立秋'),COLORYELLOW,ALIGN1;显示文字(处暑,最高价*1.02,'处暑'),COLORYELLOW,ALIGN1;显示文字(白露,最高价*1.02,'白露'),COLORYELLOW,ALIGN1;显示文字(秋分,最高价*1.02,'秋分'),COLORYELLOW,ALIGN1;显示文字(寒露,最高价*1.02,'寒露'),COLORYELLOW,ALIGN1;显示文字(霜降,最高价*1.02,'霜降'),COLORYELLOW,ALIGN1;显示文字(立冬,最高价*1.02,'立冬'),COLORWHITE,ALIGN1;显示文字(小雪,最高价*1.02,'小雪'),COLORWHITE,ALIGN1;显示文字(大雪,最高价*1.02,'大雪'),COLORWHITE,ALIGN1;显示文字(冬至,最高价*1.02,'冬至'),COLORWHITE,ALIGN1;显示文字(小寒,最高价*1.02,'小寒'),COLORWHITE,ALIGN1;显示文字(大寒,最高价*1.02,'大寒'),COLORWHITE,ALIGN1;GET:ZIG(3,5)COLORWHITE,LINETHICK2;{开盘既知今天高低价}高:=MA(REF(H,1)/REF(C,2),27)*REF(C,1);低:=MA(REF(L,1)/REF(C,2),27)*REF(C,1);A5:=低[SYSPARAM(1)];RA5:=低[SYSPARAM(1)-1];A10:=高[SYSPARAM(1)];RA10:=高[SYSPARAM(1)-1];jt5:=if(A5>RA5,'↑','↓');jt10:=if(A10>RA10,'↑','↓');SZ1:='开盘预测最高价:'+NUMTOSTR(高[SYSPARAM(1)],2)+jt10; DRAWTEXT(BARPOS=SYSPARAM(2),c,SZ1),align4,COLORMAGENTA;SZ:='\n \n开盘预测最低价:'+NUMTOSTR(低[SYSPARAM(1)],2)+jt5; DRAWTEXT(BARPOS=SYSPARAM(2),c,SZ),align4,COLORGREEN;。

波浪主图+财务副图指标通达信指标公式源码

波浪主图+财务副图指标通达信指标公式源码

波浪主图+财务副图指标波浪主图:K:=1;N:=3;巨浪H:DRAWLINE(H=HHV(H,270),H,L=LLV(L,270),L,0),POINTDOT,LINETHICK4,COLORMAGE NTA;巨浪L:DRAWLINE(L=LLV(L,270),L,H=HHV(H,270),H,0),POINTDOT,LINETHICK4,COLORMAGE NTA;大浪H:DRAWLINE(H=HHV(H,90),H,L=LLV(L,90),L,0),LINETHICK3,COLORRED;大浪L:DRAWLINE(L=LLV(L,90),L,H=HHV(H,90),H,0),LINETHICK3,COLORRED;中浪H:DRAWLINE(H=HHV(H,30),H,L=LLV(L,30),L,0),LINETHICK2,COLORLIBLUE;中浪L:DRAWLINE(L=LLV(L,30),L,H=HHV(H,30),H,0),LINETHICK2,COLORLIBLUE;小浪H:DRAWLINE(H=HHV(H,10),H,L=LLV(L,10),L,0),COLORWHITE;小浪L:DRAWLINE(L=LLV(L,10),L,H=HHV(H,10),H,0),DOTLINE,COLORWHITE;ZLH:=STRCAT('顶天数:',CON2STR(CONST(BARSLAST(H=HHV(H,30))),0));ZLL:=STRCAT('底天数:',CON2STR(CONST(BARSLAST(L=LLV(L,30))),0));ZLTS:=STRCAT('中浪:',STRCAT(ZLH,ZLL));DLH:=STRCAT(' 顶天数:',CON2STR(CONST(BARSLAST(H=HHV(H,90))),0));DLL:=STRCAT('底天数:',CON2STR(CONST(BARSLAST(L=LLV(L,90))),0));DLTS:=STRCAT('大浪:',STRCAT(DLH,DLL));LXTS:=STRCAT('浪型天数:',STRCAT(ZLTS,DLTS));DRAWTEXT_FIX(ISLASTBAR=1,0,0,0,LXTS),COLORWHITE;T:=10*3*N;A:=H=HHV(H,T) AND HHV(H,T)>REF(HHV(H,T),1);B:=L=LLV(L,T) AND LLV(L,T)<REF(LLV(L,T),1);WAVE1:=DRAWLINE(A,H,B,L,0);WAVE2:=DRAWLINE(B,L,A,H,0);ZG:=IF(WAVE1<REF(WAVE1,1) OR WAVE1=WAVE2,WAVE1,WAVE2),COLORMAGENTA; 峰:=WAVE2=WAVE1 AND A;谷:=WAVE2=WAVE1 AND B;峰峰天:=BARSLAST(峰)+1;谷谷天:=BARSLAST(谷)+1;D1:=HHV(H,T)>REF(HHV(H,T),1) AND ISLASTBAR AND WAVE2!=WAVE1;D2:=LLV(L,T)<REF(LLV(L,T),1) AND ISLASTBAR AND WAVE2!=WAVE1;D3:=IF(谷OR D2,峰峰天,IF(峰OR D1,谷谷天,DRAWNULL));D4:=IF(谷OR D2,L*0.99,IF(峰OR D1,H*1.01,DRAWNULL));DRAWNUMBER(D3>0 AND K=1,D4,SUM("HSL.HSL",D3)),COLORGREEN;财务副图:DRAWRECTREL(0,0,990,990,RGB(20,18,12));DRAWTEXT_FIX(1,0.14,0.01,1,'股东股份:'),COLORRED;品种类型:=FINANCE(3);所属板块:=HYBLOCK;上市天数:=FINANCE(42);股总市值:=ROUND(FINANCE(41)/100000000);流通市值:=ROUND(FINANCE(40)/100000000);股东人数:=FINANCE(8);人均持股:=ROUND(FINANCE(7)/FINANCE(8));DRAWTEXT_FIX(1,0.14,0.15,1,'品种类型:'),COLORYELLOW;DRAWTEXT_FIX(1,0.14,0.25,1,'所属板块:'),COLORYELLOW;DRAWTEXT_FIX(1,0.14,0.35,1,'上市天数:'),COLORYELLOW;DRAWTEXT_FIX(1,0.14,0.45,1,'股总市值:'),COLORYELLOW;DRAWTEXT_FIX(1,0.14,0.55,1,'流通市值:'),COLORYELLOW;DRAWTEXT_FIX(1,0.14,0.65,1,'股东人数:'),COLORYELLOW;DRAWTEXT_FIX(1,0.14,0.75,1,'人均持股:'),COLORYELLOW;DRAWTEXT_FIX(1,0.23,0.25,1,HYBLOCK),COLORLIGREEN;DRAWNUMBER_FIX(1,0.2,0.35,1,上市天数),COLORWHITE;DRAWNUMBER_FIX(1,0.19,0.45,1,股总市值),COLORWHITE;DRAWNUMBER_FIX(1,0.19,0.55,1,流通市值),COLORWHITE;DRAWNUMBER_FIX(1,0.2,0.65,1,股东人数),COLORWHITE;DRAWNUMBER_FIX(1,0.2,0.75,1,人均持股),COLORWHITE;DRAWTEXT_FIX(品种类型=1,0.23,0.15,1,'沪深A 股'),COLORMAGENTA; DRAWTEXT_FIX(品种类型=2,0.23,0.15,1,' 中小板'),COLORMAGENTA; DRAWTEXT_FIX(品种类型=3,0.23,0.15,1,' 创业板'),COLORMAGENTA; DRAWTEXT_FIX(1,0.23,0.35,1,'天'),COLORCYAN;DRAWTEXT_FIX(1,0.23,0.45,1,'亿元'),COLORCYAN;DRAWTEXT_FIX(1,0.23,0.55,1,'亿元'),COLORCYAN;DRAWTEXT_FIX(1,0.23,0.65,1,'人'),COLORCYAN;DRAWTEXT_FIX(1,0.23,0.75,1,'股'),COLORCYAN;DRAWTEXT_FIX(1,0.326,0.01,1,'业绩指标:'),COLORRED;净资收益率:=(FINANCE(33)/FINANCE(34)*100);销售毛利率:=((FINANCE(20)-FINANCE(21))/FINANCE(20)*100);净利润比率:=(FINANCE(30)/FINANCE(20)*100);主营利润率:=(FINANCE(23)/FINANCE(20)*100);优质资产率:=((FINANCE(19)-FINANCE(22)-FINANCE(27))/FINANCE(19));{理论上越大越好但不同行业有不同标准};现金负债比:=(FINANCE(25)/FINANCE(15));{缺长期负债或负债总额,理论上越大越好但不同行业有不同标准};净利同增率:=FINANCE(43);DRAWTEXT_FIX(1,0.34,0.15,1,'净资收益率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.34,0.25,1,'销售毛利率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.34,0.35,1,'净利润率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.34,0.45,1,'主营利润率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.34,0.55,1,'优质资产率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.34,0.65,1,'现金负债比:'),COLORYELLOW;DRAWTEXT_FIX(1,0.34,0.75,1,'净利同增率:'),COLORYELLOW; DRAWNUMBER_FIX(1,0.4,0.15,1,净资收益率),COLORWHITE; DRAWNUMBER_FIX(1,0.4,0.25,1,销售毛利率),COLORWHITE; DRAWNUMBER_FIX(1,0.4,0.35,1,净利润比率),COLORWHITE; DRAWNUMBER_FIX(1,0.4,0.45,1,主营利润率),COLORWHITE; DRAWNUMBER_FIX(1,0.4,0.55,1,优质资产率),COLORWHITE; DRAWNUMBER_FIX(1,0.4,0.65,1,现金负债比),COLORWHITE; DRAWNUMBER_FIX(1,0.4,0.75,1,净利同增率),COLORWHITE;DRAWTEXT_FIX(1,0.498,0.01,1,'财务指标:'),COLORRED;市净率:=CONST(DYNAINFO(7) / FINANCE(34));市销率:=CONST(FINANCE(1)*DYNAINFO(7)/FINANCE(20));每股收益季:=CONST(FINANCE(33)/(5-FINANCE(37)));每股收益年:=CONST(FINANCE(33));每股现金流:=CONST((FINANCE(25)/FINANCE(1)));每股未分配:=CONST(FINANCE(32));每股公积金:=CONST(FINANCE(18));DRAWTEXT_FIX(1,0.51,0.15,1,'市净率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.51,0.25,1,'市销率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.51,0.35,1,'每股收益季:'),COLORYELLOW;DRAWTEXT_FIX(1,0.51,0.45,1,'每股收益年:'),COLORYELLOW;DRAWTEXT_FIX(1,0.51,0.55,1,'每股现金流:'),COLORYELLOW;DRAWTEXT_FIX(1,0.51,0.65,1,'每股未分配:'),COLORYELLOW;DRAWTEXT_FIX(1,0.51,0.75,1,'每股公积金:'),COLORYELLOW; DRAWNUMBER_FIX(1,0.57,0.15,1,市净率),COLORWHITE;DRAWNUMBER_FIX(1,0.57,0.25,1,市销率),COLORWHITE;DRAWNUMBER_FIX(1,0.57,0.35,1,每股收益季),COLORWHITE; DRAWNUMBER_FIX(1,0.57,0.45,1,每股收益年),COLORWHITE; DRAWNUMBER_FIX(1,0.57,0.55,1,每股现金流),COLORWHITE; DRAWNUMBER_FIX(1,0.57,0.65,1,每股未分配),COLORWHITE; DRAWNUMBER_FIX(1,0.57,0.75,1,每股公积金),COLORWHITE;{风险系数}X1:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;X2:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;{盈余公积用资本公积金代替} X3:=FINANCE(23)/FINANCE(10)*3.3;X4:=FINANCE(19)/FINANCE(15)*0.6;{缺长期负债或负债总额}X5:=FINANCE(20)/FINANCE(15)*0.999;Z值:=X1+X2+X3+X4+X5;DRAWTEXT_FIX(1,0.85,0.01,1,'财务预警:'),COLORRED;DRAWTEXT_FIX(Z值<1.2,0.838,0.11,1,' ●重警●'),COLORLIRED;DRAWTEXT_FIX( BETWEEN(Z值,1.2,2.6),0.838,0.11,1,' ○轻警○'),COLOR0099FF; DRAWTEXT_FIX(Z值>2.6,0.838,0.11,1,' ◎无警◎'),COLORLIGREEN;LC:=REF(CLOSE,1);WRSI:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;获利筹码:=CONST(WINNER(C)*100);SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));量能饱和:=(IF(SAT>1,1,SAT)*100);WR10:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100;活跃:=(WRSI-WR10);活跃度比:=IF(活跃>=0,(活跃+100)/2,100-ABS((活跃-100)/2));DRAWTEXT_FIX(1,0.74,0.15,1,STRCAT(STRCAT('量能饱和:',CON2STR(量能饱和,2)),'%')),COLORYELLOW;DRAWTEXT_FIX(1,0.74,0.35,1,STRCAT(STRCAT('活跃度比:',CON2STR(活跃度比,2)),'%')),COLORYELLOW;DRAWTEXT_FIX(1,0.74,0.55,1,STRCAT(STRCAT('获利筹码:',CON2STR(获利筹码,2)),'%')),COLORYELLOW;DRAWRECTREL(970,340,580,270,RGB(150,10,250));DRAWRECTREL(970,470,580,540,RGB(150,10,250));DRAWRECTREL(970,670,580,740,RGB(150,10,250));DRAWRECTREL(970,340,580+CONST(量能饱和*(970-580)/100),270,RGB(0,100,0)); DRAWRECTREL(970,470,580+CONST(活跃度比*(970-580)/100),540,RGB(0,100,0)); DRAWRECTREL(970,670,580+CONST(获利筹码*(970-580)/100),740,RGB(0,100,0)); DRAWTEXT_FIX(1,0.96,0.01,1,'大盘趋势:'),COLORRED;DRAWTEXT_FIX( CONST(INDEXC) >SAR(4,2,20),0.95,0.16,1,'∧∧∧∧'),COLORRED; DRAWTEXT_FIX( CONST(INDEXC) >SAR(4,2,20),0.95,0.11,1,'∧∧∧∧'),COLORRED; DRAWTEXT_FIX( CONST(INDEXC) <SAR(4,2,20),0.95,0.16,1,'∨∨∨∨'),COLORGREEN; DRAWTEXT_FIX( CONST(INDEXC) <SAR(4,2,20),0.95,0.11,1,'∨∨∨∨'),COLORGREEN; DRAWTEXT_FIX(1,0.87,0.85,1,''),COLORYELLOW;。

通达信指标——波浪买卖主图(主图)

通达信指标——波浪买卖主图(主图)

均衡:=IF (YEAR<=2017,IF(YEAR<2017, EMA(EMA(CLOSE,5),5),IF(YEAR=2017 AND MONTH<10, EMA(EMA(CLOSE,5),5),1000)),1000);中轨:=HHV(MA(HIGH,13),13);趋势:=LLV(MA(HIGH,13),1);V ARA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;V ARB:=EMA(0.667*REF(V ARA,1)+0.333*VARA,5);V ARC:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)* 100;V AR1:=(HIGH+LOW+OPEN+2*CLOSE)/5;V AR2:=REF(VAR1,1);V AR3:=SMA(MAX(V AR1-V AR2,0),10,1)/SMA(ABS(V AR1-V AR2),10,1)*100;V AR4:=(IF(COUNT(V AR3<20,5)>=1 AND COUNT(V AR1=LLV(V AR1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0));V AR5:=(均衡>REF(均衡,1)AND 中轨REF(CLOSE,1));趋势向上:=IF (MA(CLOSE,1)>MA(CLOSE,2) AND MA(CLOSE,2)>MA(CLOSE,3),1,0);出击A:=IF (VAR5 AND 趋势向上,100,0);均衡A:=BARSLAST(出击A>0);A:=REF(均衡A,1)>5 AND 出击A>0;CALF:=EMA((C/REF(C,10)-1)*100,5);CALF1:=EMA((C/REF(C,10)-1)*100,30);CALF2:=EMA((C/REF(C,10)-1)*100,120);CALF3:=CROSS(CALF,CALF1);B1F:=IF (YEAR>2005 AND CALF3>0,1,0);D1F:=IF(REF(CLOSE,1)C1F:=IF((CLOSE-REF(CLOSE,1))/CLOSE*100>3.6,1,0);AFF:=IF(B1F AND C1F AND D1F ,1,0);FLY1:=FORCAST(CLOSE,8);FLY2:=HHV(FL Y1,18);FLY3:=EMA(COST(5),17);FLY4:=(CLOSE+OPEN)*0.75/2;FLY5:=CROSS(FL Y3,FL Y4);CBPZ:=IF (A OR AFF OR FL Y5,1,0);CBPYY:=BARSLAST(CBPZ>0);ZJMR1:=REF(CBPYY,1)>5 AND CBPZ>0;ZJMR2:=IF (CROSS(ZIG(3,7),REF(ZIG(3,7),1)),1,0);HHH:=30;CCV AR2:=REF(LOW,1);CCV AR3:=SMA(ABS(LOW-CCV AR2),3,1)/SMA(MAX(LOW-CCVAR2,0),3,1)*100;CCV AR4:=EMA(IF(CLOSE*1.2,CCV AR3*10,CCV AR3/10),3);CCV AR5:=LLV(LOW,HHH);CCV AR6:=HHV(CCV AR4,HHH);CCV AR7:=IF(LLV(LOW,58),1,0);CCV AR8:=EMA(IF(LOW<=CCV AR5,(CCV AR4+CCV AR6*2)/2,0),3)/618*CCV AR7;DY11:=(2*CLOSE+HIGH+LOW)/4;DY12:=LLV(LOW,34);DY13:=HHV(HIGH,13);A11:=MA((DY11-DY12)/(DY13-DY12)*100,13);B11:=EMA((0.668*REF(A11,1)+0.333*A11),2);DY1:=(2*CLOSE+HIGH+LOW)/4;DY2:=LLV(LOW,34);DY3:=HHV(HIGH,13);DY A:=EMA((DY1-DY2)/(DY3-DY2)*100,30);DYB:=EMA(DYA,7);A1:=EMA((DY1-DY2)/(DY3-DY2)*100,9);B1:=EMA((0.667*REF(A1,2)+0.333*A1),2);买入:=IF(CROSS(A1,B1)AND A1<25,35,0);关注A:=IF (YEAR<=2017,IF(YEAR<2017, IF(CROSS(A11,B11)AND A11<25,40,20),IF(YEAR=2017 AND MONTH<10, IF(CROSS(A11,B11)AND A11<25,40,20),1000)),1000);CCV AR99:=IF (REF(CCV AR8,1)>1 AND CCV AR8<1, 1,0);CCCV AR99:=IF (REF(CCV AR8,1)>1 AND CCVAR8<1, 1,0);AF:=EMA((CLOSE+HIGH+LOW)/3,10);BF:=IF(YEAR<=2017,IF(YEAR<2017,REF(AF,1),IF(YEAR=2017 AND MONTH<10,REF(AF,1),0)),0);STICKLINE(AF>BF,AF,BF,6,0),COLORYELLOW;STICKLINE(AF。

通达信指标公式源码 自动画线主图指标公式

通达信指标公式源码 自动画线主图指标公式

N1:=10;N2:=10;DISP:=2;K:=IF(PERIOD=5,1,{日}IF(PERIOD=6,1,{周}IF(PERIOD=7,1,{月}IF(PERIOD=8,1,{多分钟}IF(PERIOD=9,1,{多日}IF(PERIOD=10,1,{季}IF(PERIOD=11,2,{年}IF(PERIOD=4,1,{60F}IF(PERIOD=3,1,{30F}IF(PERIOD=2,1,{15F}IF(PERIOD=1,1{5F},1{1F})))))))))))/10;P1:=PEAK(1,K*N1,1);P2:=PEAK(1,K*N1,2);WP1:=PEAKBARS(1,K*N1,1);WP2:=PEAKBARS(1,K*N1,2);T1:=TROUGH(2,K*N2,1);T2:=TROUGH(2,K*N2,2);WT1:=TROUGHBARS(2,K*N2,1);WT2:=TROUGHBARS(2,K*N2,2);TJ1:=P1>T1 AND P2>T2 ;ZD:=MAX(T1,T2);ZG:=MIN(P1,P2);LL:=MIN(T1,T2);HH:=MAX(P1,P2);TJ2:=FILTER(ZG>ZD,2);TJ3:=ZG=REF(ZG,BARSLAST(TJ2)) OR ZD=REF(ZD,BARSLAST(TJ2));TJ4:=TJ1&&TJ2&&NOT(TJ3);TJ5:=BETWEEN(ZD,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST( TJ4),1)));TJ6:=BETWEEN(ZG,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST( TJ4),1)));TJ7:=ZG>REF(ZG,REF(BARSLAST(TJ4),1))&&ZD<REF(ZD,REF(BARSLAST(TJ4 ),1));TJ8:=TJ4&&NOT(TJ5 OR TJ6 OR TJ7);ZSD:=IF(TJ8,ZD,DRAWNULL);ZSG:=IF(TJ8,ZG,DRAWNULL);ZSH:=IF(TJ8,HH,DRAWNULL);ZSL:=IF(TJ8,LL,DRAWNULL);STICKLINE(TJ8,ZSH,ZSL,0,-1),COLORMAGENTA;STICKLINE(TJ8,ZSD,ZSG,IF(DISP=1,3,0),1),COLORMAGENTA; DRAWTEXT(DISP=2,ZSH,'中枢'),COLORWHITE;中枢高:=PLOYLINE(DISP=2,REF(ZSD,BARSLAST(TJ8))),CIRCLEDOT,COLORLIRED; 中枢低:=PLOYLINE(DISP=2,REF(ZSG,BARSLAST(TJ8))),CIRCLEDOT,COLORLIGRE EN;{中枢最高:PLOYLINE(DISP=2,REF(ZSH,BARSLAST(TJ8))),POINTDOT,COLORRED;中枢最低:PLOYLINE(DISP=2,REF(ZSL,BARSLAST(TJ8))),POINTDOT,COLORGREEN;} 趋势高:=PLOYLINE(DISP=3,ZIG(1,K*N1)),COLORLIBLUE;趋势低:=PLOYLINE(DISP=3,ZIG(2,K*N2)),COLORLIBLUE;局部低点预选A:=BACKSET(LLV(L,5)<REF(LLV(L,4),1),4);局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2);局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0); 局部高点预选A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4);局部高点预选B:=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2);局部高点预选C:=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0); 缺口判断:=IF(L>REF(H,1),1,IF(H<REF(L,1),-1,0));距前高天:=BARSLAST(局部高点预选C=1);距前低天:=BARSLAST(局部低点预选C=-1);小值周期:=LOWRANGE(L);大值周期:=TOPRANGE(H);低保留AA:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留AB:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR LLV(L,距前低天+2)<REF(LLV(L,距前低天+1),1)),-1,0);低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) AND L<REF(H,距前高天+1),-1,0);预判:=IF((距前低天<4 AND HHV(缺口判断,距前低天)!=1) OR REF(低保留S,距前低天)=0,1,0);判断:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND 预判=1 AND 大值周期>REF(小值周期,距前低天+1) AND 大值周期>REF(小值周期,距前低天) AND 大值周期>REF(大值周期,距前高天),1,0);高保留A:=IF(局部高点预选C=1 AND REF(距前低天,1)>REF(距前高天,1) AND HHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0);高保留B:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND REF(低保留S,距前低天)=-1 AND (距前低天>=4 OR HHV(缺口判断,距前低天)=1),1,0);高保留:=IF((高保留A=1 OR 高保留B=1 OR 判断=1) AND H>REF(L,距前低天+1),1,0);预判A:=IF((距前高天<4 AND HHV(缺口判断,距前高天)!=1) OR REF(高保留,距前高天)=0,1,0);判断A:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND 预判A=1 AND 小值周期>REF(大值周期,距前高天+1) AND 小值周期>REF(大值周期,距前高天) AND 小值周期>REF(小值周期,距前低天),-1,0);低保留A:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留B:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR 判断A=-1),-1,0);低保留:=IF((低保留A=-1 OR 低保留B=-1) AND L<REF(H,距前高天+1),-1,0); 距前高天A:=BARSLAST(高保留=1);距前低天A:=BARSLAST(低保留=-1);预判X:=IF((距前低天A<4 AND HHV(缺口判断,距前低天A)!=1) OR REF(低保留,距前低天A)=0,1,0);判断X:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND 预判X=1 AND 大值周期>REF(小值周期,距前低天A+1) AND 大值周期>REF(小值周期,距前低天A) AND 大值周期>REF(大值周期,距前高天A),1,0); 高保留XA:=IF(局部高点预选C=1 AND REF(距前低天A,1)>REF(距前高天A,1) AND HHV(H,距前低天A+1)>REF(HHV(H,距前低天A+1),1),1,0);高保留XB:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND REF(低保留,距前低天A)=-1 AND (距前低天A>=4 OR HHV(缺口判断,距前低天A)=1),1,0);高保留X:=IF((高保留XA=1 OR 高保留XB=1 OR 判断X=1) AND H>REF(L,距前低天A+1),1,0);预判XA:=IF((距前高天A<4 AND HHV(缺口判断,距前高天A)!=1) OR REF(高保留XA,距前高天A)=0,1,0);判断XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND 预判XA=1 AND 小值周期>REF(大值周期,距前高天A+1) AND 小值周期>REF(大值周期,距前高天A) AND 小值周期>REF(小值周期,距前低天A),-1,0); 低保留XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)>REF(距前低天A,1) AND LLV(L,距前高天A+1)<REF(LLV(L,距前高天A+1),1),-1,0);低保留XB:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND (距前高天A>=4 OR LLV(缺口判断,距前高天A)=-1 OR 判断XA=-1),-1,0);低保留X:=IF((低保留XA=-1 OR 低保留XB=-1) AND L<REF(H,距前高天A+1),-1,0);距前高天YA:=BARSLAST(高保留X=1);距前低天YA:=BARSLAST(低保留X=-1);预判YX:=IF((距前低天YA<4 AND HHV(缺口判断,距前低天YA)!=1) OR REF(低保留X,距前低天YA)=0,1,0);判断YX:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND 预判YX=1 AND 大值周期>REF(小值周期,距前低天YA+1) AND 大值周期>REF(小值周期,距前低天YA) AND 大值周期>REF(大值周期,距前高天YA),1,0);高保留YXA:=IF(局部高点预选C=1 AND REF(距前低天YA,1)>REF(距前高天YA,1) AND HHV(H,距前低天YA+1)>REF(HHV(H,距前低天YA+1),1),1,0);高保留YXB:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND REF(低保留X,距前低天YA)=-1 AND (距前低天YA>=4 OR HHV(缺口判断,距前低天YA)=1),1,0);高保留YX:=IF((高保留YXA=1 OR 高保留YXB=1 OR 判断YX=1) ANDH>REF(L,距前低天YA+1),1,0);预判YXA:=IF((距前高天YA<4 AND HHV(缺口判断,距前高天YA)!=1) ORREF(高保留YXA,距前高天YA)=0,1,0);判断YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND 预判YXA=1 AND 小值周期>REF(大值周期,距前高天YA+1) AND小值周期>REF(大值周期,距前高天YA) AND 小值周期>REF(小值周期,距前低天YA),-1,0);低保留YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)>REF(距前低天YA,1) AND LLV(L,距前高天YA+1)<REF(LLV(L,距前高天YA+1),1),-1,0);低保留YXB:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND (距前高天YA>=4 OR LLV(缺口判断,距前高天YA)=-1 OR 判断YXA=-1),-1,0);低保留YX:=IF((低保留YXA=-1 OR 低保留YXB=-1) AND L<REF(H,距前高天YA+1),-1,0);AAAD:=IF(高保留YX=1 AND 低保留YX=-1 AND H>REF(H,REF(距前高天YA,1)+2),1,IF(高保留YX=1 AND 低保留YX=-1 AND L<REF(L,REF(距前低天YA,1)+2),-1,0));极点保留:=IF(AAAD=0,高保留YX+低保留YX,AAAD);局部极点:=IF(极点保留=-1,L,IF(极点保留=1,H,DRAWNULL)) CIRCLEDOT COLORYELLOW;{大折线}A1:=REF(HIGH,10)=HHV(HIGH,2*10+1);B1:=FILTER(A1,10);C1:=BACKSET(B1,10+1);D1:=FILTER(C1,10);{高点}A2:=REF(LOW,10)=LLV(LOW,2*10+1);B2:=FILTER(A2,10);C2:=BACKSET(B2,10+1);D2:=FILTER(C2,10);{低点}E1:=(REF(LLV(LOW,2*10),1)+REF(HHV(HIGH,2*10),1))/2;E2:=(HIGH+LOW)/2;H1:=(D1 AND NOT((D2 AND E1>=E2))) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;L1:=(D2 AND NOT((D1 AND E1<E2)));H2:=D1 AND NOT((D2 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 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);{过滤后高点}DRAWLINE(LD,L,HD,H,0),COLORMAGENTA,DOTLINE,LINETHICK1; DRAWLINE(HD,H,LD,L,0),COLORMAGENTA,DOTLINE,LINETHICK1;J1:=BACKSET(ISLASTBAR ,MIN(BARSLAST(HD),BARSLAST(LD))+1);J2:=J1>REF(J1,1);DRAWLINE(J2,IF(HD,H,L),ISLASTBAR ,IF(BARSLAST(HD)>BARSLAST(LD),H,L ),0),COLORWHITE,LINETHICK1;{趋势线}UU:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);VV:=UU>REF(UU,1);WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);XX:=WW>REF(WW,1);DRAWLINE(XX,L,VV,L,1),COLORRED,LINETHICK2;UU2:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);VV2:=UU2>REF(UU2,1);WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);XX2:=WW2>REF(WW2,1);DRAWLINE(XX2,H,VV2,H,1),COLORGREEN,LINETHICK2;。

通达信指标公式源码精品指标主升浪

通达信指标公式源码精品指标主升浪

通达信指标公式源码精品指标主升浪V5:=EMA(CLOSE,1);主线1:=EMA(V5,5);本:EMA(HHV(主线1,5),1),LINETHICK1,COLOR99CCCC;IF((本<ref(本,1)),本,drawnull),linethick1,colorgreen;< p=""> 急进:EMA(HHV(本,21),1),COLORBBBBBB;稳健:EMA(HHV(急进,21),2),COLORCCCCFF;投资:EMA(HHV(稳健,21),3),COLORFFFF00;散:EMA(HHV(投资,21),4),COLORFFFFFF;集:EMA(HHV(散,21),5),COLORYELLOW;界:MA(CLOSE,60)COLORWHITE;底:LLV(LOW,120),LINETHICK1,COLORRED;做空:=EMA(CLOSE,5);VARR5:=EMA(CLOSE,21);主线:=EMA(VARR5,20);骑手:=EMA(HHV(主线,13),1);骑师:=EMA(HHV(主线,5),1);训马:=做空;飙马:=本;跑马场:EMA(HHV(集,21),6),POINTDOT,COLORFF99CC;IF((急进> REF(急进,1)),急进,DRAWNULL),LINETHICK1,COLOR33BBFF;IF((稳健> REF(稳健,1)),稳健,DRAWNULL),LINETHICK1,COLOR3399CC;IF((投资> REF(投资,1)),投资,DRAWNULL),LINETHICK1,COLOR6699CC;IF((散> REF(散,1)),散,DRAWNULL),LINETHICK1,COLOR9999CC;IF((集> REF(集,1)),集,DRAWNULL),LINETHICK1,COLORCC99CC;IF((跑马场> REF(跑马场,1)),跑马场,DRAWNULL),LINETHICK1,COLORFF99CC;DL:=MA((((HIGH + LOW) + CLOSE) / 3),5);ML:=MA((((HIGH + LOW) + CLOSE) / 3),10);VAR1:=EMA(((OPEN + CLOSE) / 2),26);VAR2:=MA(COST(30),3);平均成本:=MA(COST(50),3);VAR3:=MA(COST(80),3);VAR4:=(((HIGH + LOW) + CLOSE) / 3);VAR5:=EMA(((((OPEN + HIGH) + LOW) + CLOSE) / 4),233);VAR6:=(VAR5 + ((VAR5 * 6) / 100));STICKLINE((VAR4 > 0.1),HIGH,LOW,0,0),COLORYELLOW;STICKLINE(((((VAR4 < 平均成本) AND (VAR4 > ML)) OR ((VAR4 < VAR5) AND (VAR4 > ML))) OR ((VAR4 > ML) AND (VAR1 > ML))),HIGH,LOW,0,0),COLOR9933CC; STICKLINE(((((((VAR4 > 平均成本) AND (VAR4 > VAR1)) AND (VAR4 > VAR5)) AND (VAR2 > REF(VAR2,1))) AND (CLOSE < OPEN)) OR (((((VAR4 > VAR2) AND (VAR4 > VAR1)) AND (VAR4 > VAR5)) AND (VAR2 > REF(VAR2,1))) AND (CLOSE < OPEN))),OPEN,CLOSE,3,0),COLORRED;STICKLINE(((((((VAR4 > 平均成本) AND (VAR4 > VAR1)) AND (VAR4 > VAR5)) AND (VAR2 > REF(VAR2,1))) AND (CLOSE > OPEN)) OR (((((VAR4 > VAR2) AND (VAR4 > VAR1)) AND (VAR4 > VAR5)) AND (VAR2 > REF(VAR2,1))) AND (CLOSE >=OPEN))),OPEN,CLOSE,3,0),COLORRED;STICKLINE((((((VAR4 > VAR6) AND (VAR4 > VAR3)) AND (DL > ML)) AND (VAR1 > REF(VAR1,1))) AND (CLOSE < OPEN)),OPEN,CLOSE,3,0),COLORYELLOW;STICKLINE((((((VAR4 > VAR6) AND (VAR4 > VAR3)) AND (DL > ML)) AND (VAR1 > REF(VAR1,1))) AND (CLOSE >=OPEN)),OPEN,CLOSE,3,0),COLOR00FFFF;</ref(本,1)),本,drawnull),linethick1,colorgreen;<>。

通达信——主升浪启动点信号指标公式源码完...

通达信——主升浪启动点信号指标公式源码完...

通达信——主升浪启动点信号指标公式源码完...通达信——主升浪启动点信号指标公式源码完整,复制就可以直接使用:YYHH22:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;主升浪信号: WINNER(CLOSE)*100;YYHH33:=SMA(YYHH22,3,1);YYHH44:=SMA(YYHH33,9,1);YYHH55:=3*YYHH33-2*YYHH44;YYHH66:=VOL;主升浪启动点: VOL/MA(VOL,5);主升浪: (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;主升浪公式: (CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;通达信公式: VOL/CAPITAL*100;YYHH77:=SUM(通达信公式,30);YYHH88:=LLV(INDEXL,5);YYHH99:=HHV(INDEXH,5);YYHHAA:=EMA((INDEXC-YYHH88)/(YYHH99-YYHH88)*100,4);YYHHBB:=MA(EMA(0.667*REF(YYHHAA,1)0.333*YYHHAA,2),9);YYHHCC:=MA(YYHHBB,30);YYHHDD:=EMA(主升浪信号,4);CCDS1: CAPITAL/1000000,;V5: MA(VOL,5)*2;YYHHE:=MA(V5,3);CCDS2: MA(VOL,34)*2;YYHHF:=(主升浪>YYHHDD AND 主升浪公式<-30 AND 主升浪>3);CROSS(YYHHBB,YYHHCC) AND YYHHCC<29;CROSS(YYHHCC,YYHHBB) AND YYHHCC>58;STICKLINE(VOL AND YYHH33>YYHH44,0,VOL,3,1),COLORRED;STICKLINE(VOL AND YYHH33<=YYHH44,0,VOL,3,1),COLORCYAN;DRAWTEXT(CROSS(YYHHBB,YYHHCC) AND 主升浪公式<-18 AND YYHHCC<29,VOL*1.2,''),COLORYELLOW;W:DRAWTEXT(CROSS(YYHHCC,YYHHBB) AND YYHHCC>58,VOL*1.2,''),COLORWHITE;DRAWTEXT(CROSS(YYHHE,V5) AND 主升浪公式>22,V5,'');YYHH2:=CLOSE-REF(CLOSE,1);YYHH3:=IF(CLOSE-REF(CLOSE,1)>=0,YYHH2,0);YYHH4:=REF(CLOSE,1)-CLOSE;YYHH5:=IF(CLOSE-REF(CLOSE,1)<=0,YYHH4,0);YYHH6:=SUM(YYHH3,16)/SUM(YYHH5,16);YYHH7:=100-100/(1 YYHH6);YYHH8:=EMA(YYHH7,16);YYHH9:=EMA(YYHH8,8);YYHHA:=EMA(YYHH8,45);CCDS3:=(YYHH8-YYHHA);ML:=(YYHH9-YYHHA);YYHH1A:=EMA(CLOSE,32);YYHH2A:=MA(OPEN,32);CCDS7:=(YYHH1A-YYHH2A);STICKLINE(CCDS3>ML AND CCDS7<0 AND CCDS3>REF(CCDS3,3) AND CCDS7>REF(CCDS7,3),VOL,0,3,0) COLORYELLOW;。

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

极致波浪理论主图指标通达信指标公式源码一个波浪理论,手上的指标会在大家的建议之下慢慢的完善指标这东西就要一点点的精细改进,虽然不可能达到百分百的正确率但是综合几个起来看,准确率就有保障了对指标的编写一直没有放弃过,不管大盘怎么变,找到方法才能够赚钱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); PL10:=ZIG(3,13);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); PL20:=ZIG(3,26);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); PL40:=ZIG(3,55);走强一:=BARSLAST(PL5REF(PL5,1)); 走强二:=BARSLAST(PL10REF(PL10,1)); 走强三:=BARSLAST(PL20REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强二),0); ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强二),0); DTJZ5:=IF(PL10REF(PL20,1),COUNT(EN2,走强三),0); ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强三),0); DTJZ10:=IF(PL20REF(PL10,1) AND ZTJD5=1,HIGH*1.02,’⑴’),COLOR0000FF; DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,LOW*0.98,’⑵’),COLOR0000FF; DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,HIGH*1.02,’⑶’),COLOR0000FF; DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,LOW*0.98,’⑷’),COLOR0000FF; DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,HIGH*1.02,’⑸’),COLOR0000FF; DRAWTEXT(EN2 AND DTJZ10=1,LOW*0.94,’【A】’),COLOR00FF00; DRAWT EXT(EX2 AND DTJD10=2,HIGH*1.03,’【B】’),COLOR00FF00; DRAWTEXT(EN3 ANDZTJZ10=1,LOW*0.94,’【C】’),COLOR00FF00; DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,HIGH*1.04,’①’),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,LOW*0.94,’②’),LINETHICK3,COLOR00FFFF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,HIGH*1.04,’③’),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,LOW*0.94,’④’),LINETHICK3,COLOR00FFFF; DMLJ:=HHV(HI GH,120); TY:=CLOSE;HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10);LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10);A:=REF(CLOSE,BARSLAST(HD)); B:=REF(CLOSE,BARSLAST(LD));T1:=BARSLAST(HD)BARSLAST(LD) AND NOT(LD); 波浪顶:IF(T1,A,A),COLORFF00FF,POINTDOT,LINETHICK2; STICKLINE(T1,A,A,9,0),COLORFF00FF;波浪底:IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK2; V AR3:=LLV(HIGH,240);V AR4:=100*(CLOSE-V AR3)/V AR3;V AR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;V AR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;V AR7:=0;V AR8:=MA(HHV(CLOSE-REF(CLOSE,1),0),34)/MA(ABS(CLOSE-REF(CLOSE,1)),7)*100; V AR9:=MA(HHV(CLOSE-REF(CLOSE,1),0),13)/MA(ABS(CLOSE-REF(CLOSE,1)),13)*100; V ARA:=BARSCOUNT(CLOSE);V ARB:=V AR835; V ARC:=V ARB AND COUNT(V ARB,1)=1; V ARD:=EMA(CLOSE,21)-EMA(CLOSE,8); V ARE:=EMA(V ARD,5);V ARF:=TROUGH(3,6,1)LOW+0.04,4,0);V AR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);V AR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)>=REF(ZIG(3,22),3);V AR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);V AR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3); V AR19:=EMA(CLOSE,2)-EMA(CLOSE,150); V AR1A:=EMA(V AR19,100); V AR1B:=2*(V AR19-V AR1A);V AR1C:=POW(V AR1B,3)*0.1+POW(V AR1B,1);V AR1D:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE)); V AR1E:=EMA(V AR1D*0.97,3); V AR1F:=(HIGH+LOW+CLOSE)/3;V AR20:=(V AR1F-MA(V AR1F,14))/(0.015*A VEDEV(V AR1F,14));V AR21:=CROSS(V AR1E,LOW); 买点一:=V AR10;买点二:=(V AR11+V AR13+V AR15+V AR17); 卖点一:=(V AR12+V AR14+V AR16+V AR18);V AR22:=买点一AND V ARF AND V ARC AND V AR21 AND V AR40,LOW-0.01,’▲买!’),COLORRED;DRAWTEXT(买点二>0,LOW-0.01,’▲买入待涨’),COLORYELLOW; DRAWTEXT(卖点一>0,HIGH+0.1,’▼快卖欲跌’), COLORWHITE; A1:=BARSCOUNT(CLOSE); AH:=HHV(HIGH,72); AL:=LLV(LOW,72); A0:=(AH-AL)/21; B1:=LOW-A0;DRAWTEXT((A1+0)/15=FLOOR((A1+0)/15),B1-2.5*A0,’▲时窗’),COLORWHITE; V AR51:=HHVBARS(ZIG(3, 19)>REF(ZIG(3,19),1) AND REF(ZIG(3,19), 1)<REF(ZIG(3,19), 2),0);STICKLINE(V AR51=2,LOW*0.95,LOW*0.98,8,0),COLOR0000FF;DRAWTEXT(V AR51=2,LOW*0.95,’3天’),COLORWHI TE;STICKLINE(V AR51=4,HIGH*1.05,HIGH*1.02,8,0),COLOR9966FF;DRAWTEXT(V AR51=4,HIGH*1.06,’5天’),COLORWHITE; STICKLINE(V AR51=7,LOW*0.95,LOW*0.98,8,0),COLOR00FFFF;DRAWTEXT(V AR51=7,LOW*0.95,’8天’),COLORWHITE;STICKLINE(V AR51=12,HIGH*1.05,HIGH*1.02,8,0),COLORFF33FF;DRAWTEXT(V AR51=12,HIGH*1.06,’13天’),COLORWHITE;STICKLINE(V AR51=20,LOW*0.95,LOW*0.98,8,0),COLOR0066FF;DRAWTEXT(V AR51=20,LOW*0.95,’21天’),COLORWHITE;STICKLINE(V AR51=33,HIGH*1.05,HIGH*1.02,8,0),COLORFFFF00;DRAWTEXT(V AR51=33,HIGH*1.06,’34天’),COLORWHITE; STICKLINE(V AR51=54,LOW*0.95,LOW*0.98,8,0),COLORWHITE;DRAWTEXT(V AR51=54,LOW*0.95,’55天’),COLORWHITE; STICKLINE(V AR51=88,HIGH*1.05,HIGH*1.02,8,0),COLOR00FF00;DRAWTEXT(V AR51=88,HIGH*1.06,’89天’),COLORWHITE; STICKLINE(V AR51=143,LOW*0.95,LOW*0.98,8,0),COLORCCFFFF;DRAWTEXT(V AR51=143,LOW*0.95,’144天’),COLORWHITE; STICKLINE(V AR51=232 ,HIGH*1.05,HIGH*1.02,8,0),COLORFF0033; DRAWTEXT(V AR51=232,HIGH*1.06,’233天’),COLORWHITE; STICKLINE(V AR51=376,LOW*0.95,LOW*0.98,8,0),COLORFF9966;DRAWTEXT(V AR51=376,LOW*0.95,’377天’),COLORWHITE; 立春:=FILTER(MONTH=2 AND (DAY=3 OR DAY=5 ),2); 雨水:=FILTER(MONTH=2 AND (DAY=18 OR DAY=20),2); 惊蛰:=FILTER(MONTH=3 AND (DAY=5 OR DAY=7 ),2); 春分:=FILTER(MONTH=3 AND (DAY=20 OR DAY=22),2); 清明:=FILTER(MONTH=4 AND (DAY=3 OR DAY=6 ),2); 谷雨:=FILTER(MONTH=4 AND (DAY=19 OR DAY=21),2); 立夏:=FILTER(MONTH=5 AND (DAY=6 OR DAY=8 ),2); 小满:=FILTER(MONTH=5 AND (DAY=20 OR DAY=22),2); 芒种:=FILTER(MONTH=6 AND (DAY=5 OR DAY=7 ),2); 夏至:=FILTER(MONTH=6 AND (DAY=20 OR DAY=22),2); 小暑:=FILTER(MONTH=7 AND (DAY=6 OR DAY=8 ),2); 大署:=FILTER(MONTH=7 AND (DAY=22 OR DAY=24),2); 立秋:=FILTER(MONTH=8 AND (DAY=7 OR DAY=9 ),2); 处暑:=FILTER(MONTH=8 AND (DAY=22 OR DAY=24),2); 白露:=FILTER(MONTH=9 AND (DAY=7 OR DAY=9 ),2); 秋分:=FILTER(MONTH=9 AND (DAY=22 OR DAY=24),2); 寒露:=FILTER(MONTH=10 AND (DAY=7 OR DAY=9 ),2); 霜降:=FILTER(MONTH=10 AND (DAY=22 OR DAY=24),2); 立冬:=FILTER(MONTH=11 AND (DAY=7 OR DAY=9 ),2); 小雪:=FILTER(MONTH=11 AND (DAY=22 OR DAY=24),2); 大雪:=FILTER(MONTH=12 AND (DAY=6 OR DAY=8 ),2); 冬至:=FILTER(MONTH=12AND (DAY=21 OR DAY=23),2); 小寒:=FILTER(MONTH=1 AND (DAY=5 OR DAY=7 ),2); 大寒:=FILTER(MONTH=1 AND (DAY=19 OR DAY=21),2); DRAWTEXT(立春,HIGH*1.02,’立春’); DRAWTEXT(雨水,HIGH*1.02,’雨水’);DRAWTEXT(惊蛰,HIGH*1.02,’惊蛰’); DRAWTEXT(春分,HIGH*1.02,’春分’); DRAWTEXT_FIX(1,0.00,0.00,0,’送’),COLORYELLOW;。

相关文档
最新文档