艾略特波浪划线通达信指标公式源码
【股票指标公式下载】-【通达信】波浪指标(时间窗口、买、卖、注意)
【股票指标公式下载】-【通达信】波浪指标(时间窗⼝、买、卖、注意)【通达信】波浪指标(时间窗⼝、买、卖、注意)-指标公式源码N1:6;A1:DRAWLINE(HIGH>=HHV(HIGH,5),HIGH,LOW<=LLV(LOW,5),LOW,0);B1:DRAWLINE(LOW<=LLV(LOW,5),LOW,HIGH>=HHV(HIGH,5),HIGH,0);A2:DRAWLINE(HIGH>=HHV(HIGH,13),HIGH,LOW<=LLV(LOW,13),LOW,0);B2:DRAWLINE(LOW<=LLV(LOW,13),LOW,HIGH>=HHV(HIGH,13),HIGH,0);A3:DRAWLINE(HIGH>=HHV(HIGH,34),HIGH,LOW<=LLV(LOW,34),LOW,0);B3:DRAWLINE(LOW<=LLV(LOW,34),LOW,HIGH>=HHV(HIGH,34),HIGH,0);A4:DRAWLINE(HIGH>=HHV(HIGH,55),HIGH,LOW<=LLV(LOW,55),LOW,0);B4:DRAWLINE(LOW<=LLV(LOW,55),LOW,HIGH>=HHV(HIGH,55),HIGH,0); MTM:=C-REF(C,1);ZLGJ:=100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1);买1:=IF(LLV(ZLGJ,2)=LLV(ZLGJ,7) AND COUNT(ZLGJ<0,2) AND CROSS(ZLGJ,MA(ZLGJ,2)),1,0);卖1:=IF(HHV(ZLGJ,2)=HHV(ZLGJ,7) AND COUNT(ZLGJ>50,2) AND CROSS(MA(ZLGJ,2),ZLGJ),1,0);DRAWICON(FILTER(买1=1,5),LOW*0.99,7),COLORRED;STICKLINE(FILTER(买1=1,5),C,O,1,0),COLORRED;DRAWICON(FILTER(卖1=1,1),H*1.01,8),COLOR00FF00;STICKLINE(FILTER(卖1=1,1),C,O,1,0),COLOR00FF00;RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;BDGD:=HHV(J,2)=HHV(J,8) AND J>80;注意:=IF(CROSS(REF(J-0.01,1),J) AND REF(BDGD,1),1,0); DRAWTEXT(注意 AND 卖1<1,HIGH*1.01,'J'),COLOR00FF00,LINETHICK3; STICKLINE(注意 AND 卖1<1,O,CLOSE,1,0),COLORYELLOW,LINETHICK2; 时间窗⼝01:=FILTER(IF(HHVBARS(HIGH,5),0,H),5),COLORFFFF00; DRAWTEXT(时间窗⼝01,HIGH*0.99,'5');时间窗⼝02:=FILTER(IF(LLVBARS(LOW,5),0,L),5),COLOR00FFFF; DRAWTEXT(时间窗⼝02,LOW*0.99,'5');时间窗⼝1:=FILTER(IF(HHVBARS(HIGH,13),0,1),13),COLOR00FF00;DRAWTEXT(时间窗⼝1,HIGH*0.99,'13');时间窗⼝2:=FILTER(IF(LLVBARS(LOW,13),0,1),13),COLOR0000FF; DRAWTEXT(时间窗⼝2,LOW*0.99,'13');时间窗⼝3:=FILTER(IF(HHVBARS(HIGH,34),0,2),34),COLOR55FF55; DRAWTEXT(时间窗⼝3,HIGH*0.99,'34');时间窗⼝4:=FILTER(IF(LLVBARS(LOW,34),0,2),34),COLOR5555FF; DRAWTEXT(时间窗⼝4,LOW*0.99,'34');时间窗⼝5:=FILTER(IF(HHVBARS(HIGH,55),0,30),55),COLOR99FF99; DRAWTEXT(时间窗⼝5,HIGH*0.99,'55');时间窗⼝6:=FILTER(IF(LLVBARS(LOW,55),0,30),55),COLORDD00FF; DRAWTEXT(时间窗⼝6,LOW*0.99,'55');时间窗⼝7:=FILTER(IF(HHVBARS(HIGH,89),0,40),89),COLORDDFFDD; DRAWTEXT(时间窗⼝7,HIGH*0.99,'89');时间窗⼝8:=FILTER(IF(LLVBARS(LOW,89),0,40),89),COLOR0055FF; DRAWTEXT(时间窗⼝8,LOW*0.99,'89');时间窗⼝9:=FILTER(IF(HHVBARS(HIGH,144),0,50),144),COLORDDFF00; DRAWTEXT(时间窗⼝9,HIGH*0.99,'144');时间窗⼝10:=FILTER(IF(LLVBARS(LOW,144),0,50),144),COLOR9955FF; DRAWTEXT(时间窗⼝10,LOW*0.99,'144');时间窗⼝11:=FILTER(IF(HHVBARS(HIGH,233),0,60),233),COLORDDFFFF; DRAWTEXT(时间窗⼝11,HIGH*0.99,'233');时间窗⼝12:=FILTER(IF(LLVBARS(LOW,233),0,60),233),COLORFF55FF; DRAWTEXT(时间窗⼝12,LOW*0.99,'233');【通达信】波浪指标(时间窗⼝、买、卖、注意)-指标公式效果图(⽂档来源:若⽔财经社区)。
通达信指标公式源码波浪之字主图指标公式
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;。
通达信主升浪公式(一)
通达信主升浪公式(一)通达信主升浪公式一、什么是通达信主升浪公式?通达信主升浪公式是股市中一种用于判断股票主升浪的技术指标,通过计算股价走势中的相关指标,帮助投资者分析股票的上涨趋势和预测未来的市场走势。
二、通达信主升浪公式的相关公式如下:1.波动率(Volatility)计算公式:–波动率 = (最高价 - 最低价)/ 最低价例子:假设某股票的最高价为10元,最低价为8元,那么波动率为(10-8)/8 =2.股价走势斜率(Price Trend Slope)计算公式:–股价走势斜率 = (收盘价 - 前一日收盘价)/ 前一日收盘价例子:假设某股票的前一天收盘价为10元,今天的收盘价为12元,那么股价走势斜率为/10=3.相对强弱指数(Relative Strength Index)计算公式:–RS = MA(上涨日收盘涨幅)/ MA(下跌日收盘跌幅)–RSI = 100 - (100 / (1 + RS))例子:假设某股票最近10个交易日中上涨日的平均涨幅为2% ,下跌日的平均跌幅为1%,那么RS = 2 / 1 = 2,RSI = 100 -(100 / (1 + 2))=4.成交量比价(Volume Price Ratio)计算公式:–成交量比价 = (当日成交量 - 前一日成交量)/ 前一日成交量例子:假设某股票的前一天成交量为10万股,今天的成交量为12万股,那么成交量比价为/10 =三、总结通达信主升浪公式是一种用于股票分析的技术指标,通过计算波动率、股价走势斜率、相对强弱指数和成交量比价等指标,帮助投资者判断股票的上涨趋势和预测未来市场走势。
投资者可以结合这些指标来制定投资策略,提高投资准确性和收益率。
以上列举的公式只是通达信主升浪公式中的一部分,投资者可以根据自己的需要和实际情况,选择适合的公式进行分析与判断。
极致波浪理论主图指标通达信指标公式源码
极致波浪理论主图指标通达信指标公式源码一个波浪理论,手上的指标会在大家的建议之下慢慢的完善指标这东西就要一点点的精细改进,虽然不可能达到百分百的正确率但是综合几个起来看,准确率就有保障了对指标的编写一直没有放弃过,不管大盘怎么变,找到方法才能够赚钱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;。
不惧洗盘的波段指标三浪必吃通达信指标公式源码
不惧洗盘的波段指标三浪必吃通达信指标公式源码洗盘是指股票市场中大量股票价格急剧下跌或飙升,导致投资者心态恐慌或亢奋,从而产生集中性的价格波动。
针对这种情况,波段指标可以帮助投资者判断价格震荡的趋势和力度,从而把握住投资机会。
波段指标中的经典指标三浪必吃,它采用通达信编程语言进行计算。
以下是该指标的公式源码:【变量定义】变量: 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可以实现在图表上显示三浪必吃指标的状态。
投资者可以通过观察三浪必吃指标的状态来判断市场洗盘的趋势。
当三浪必吃标志出现时,可以作为参考信号,辅助投资者进行买入或卖出的决策。
通达信指标公式源码 通达信趋势波浪指标源码 打破一买就跌,一卖就涨
F111:=BACKSET(H111 AND COUNT(L111,X111)>0,LLVBARS(IF(L111,LOW,10000),X111));
G111:=F111>REF(F111,1);
I111:=BACKSET(G111,2);
LD:=I111>REF(I111,1);
L112:=LD OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;
X112:=REF(BARSLAST(L112),1)+1;
F112:=BACKSET(L112 AND COUNT(H112,X112)>0,HHVBARS(IF(H112,HIGH,0),X112));
DRAWTEXT(LD AND BARSLAST(HD)<BARSLAST(REF(LD,1)) ,L*0.99,'买入'),COLORYELLOW;
DRAWICON(LD AND BARSLAST(HD)<BARSLAST(REF(LD,1)) ,L*0.99,11);
DRAWTEXT(HD,H*1.01,'卖出'),COLORCYAN;
通达信指标公式源码通达信趋势波浪指标源码打破一买就跌一卖就涨
P:=14;WW:=(LLV(H,55)+HHV(L,55))/2;
WW2:=(C*4+L*3+H*2+O)/10;
OBV:=WW2;
A1:=REF(OBV,P)=HHV(OBV,2*P+1);
B1:=FILTER(A1,P);
C1:=BACKSET(B1,P+1);
波浪与波神 主图指标通达信指标公式源码
波浪与波神主图指标源码:波浪与波神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。
三部曲波浪指标公式源码
三部曲波浪指标公式源码
波浪指标(Elliott Wave Oscillator)是一种技术分析工具,用于识别股票价格走势中的波动。
它基于艾略特波动理论,通过计算价格波动的振荡来显示价格的趋势和逆转点。
波浪指标的公式源码可以使用多种编程语言来实现,比如Python、C++、Java等。
下面我将以Python语言为例,给出波浪指标的公式源码:
python.
def Elliott_Wave_Oscillator(close_prices, short_period, long_period):
short_MA =
close_prices.rolling(window=short_period).mean()。
long_MA =
close_prices.rolling(window=long_period).mean()。
wave_oscillator = short_MA long_MA.
return wave_oscillator.
在这段代码中,我们使用了pandas库来计算移动平均线(MA),然后通过短期移动平均线减去长期移动平均线得到波浪指标。
这只
是波浪指标的一种实现方式,实际上还有其他计算方法和参数设置,可以根据具体需求进行调整。
除了Python,你还可以使用其他编程语言来实现波浪指标的公
式源码。
无论使用哪种语言,关键是理解波浪指标的计算原理,然
后根据原理编写相应的代码。
希望这个回答能够帮助到你。
通达信划线源码和警告选股公式
通达信划线源码和警告选股公式{通达信划线源码和预警选股公式}{自动划线公式源码}HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY :=0;ZGDISPLAY:=0;MADISPLAY:=0;AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);QY:=BACKSET(AA,HIGHN+1);CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1); DRAWICON(CC,H*1.02,2);DDD:=BARSLAST(CC);GDTS:=IF(CC,CURRBARSCOUNT,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);MM:=IF(CURRBARSCOUNT>GDCS2,0,1);高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBAR SCOUNT=GDCS1,H,1) COLORGREEN,LINETHICK2; DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,R EF(H,GDCS2-1),1),COLOR0055FF,POINTDOT;相对高点:DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORYELLOW,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,CURRBARS COUNT=DDCS1,L,1) COLORRED,LINETHICK2; ZGSTAR:=(高点压力+低点支撑)/2;ZGEND:=CONST((高点压力+低点支撑)/2); STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);中轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,IS LASTBAR,ZGEND,1),COLORFF55BB,LINETHICK2; DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,R EF(L,DDCS1-1),1),COLORMAGENTA,POINTDOT,; DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,R EF(L,DDCS2-1),1),COLORCYAN,POINTDOT;{自动划线预警选股源码:}HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY :=0;ZGDISPLAY:=0;MADISPLAY:=0;AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);QY:=BACKSET(AA,HIGHN+1);CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1); DDD:=BARSLAST(CC);GDTS:=IF(CC,CURRBARSCOUNT,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);MM:=IF(CURRBARSCOUNT>GDCS2,0,1);高点压力:=DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBA RSCOUNT=GDCS1,H,1) COLORGREEN,LINETHICK2;压力线选股:CROSS(C,高点压力)>0.5;。
极致波浪理论主图指标通达信指标公式源码
极致波浪理论主图指标通达信指标公式源码一个波浪理论,手上的指标会在大家的建议之下慢慢的完善指标这东西就要一点点的精细改良,虽然不可能到达百分百的正确率但是综合几个起来看,准确率就有保障了对指标的编写一直没有放弃过,不管大盘怎么变,找到方法才能够赚钱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)。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
艾略特波浪划线主图:艾略特波浪理论的五浪划线,方便看盘和技术分析
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) AND
CURRBARSCOUNT<=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)AND
CURRBARSCOUNT<=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;。