炒股就是炒波浪,股票价格的涨跌就像大海中的波浪一样深不可测,在股市中有著名的波浪理论阐叙股市波浪的八浪循环,波浪理论的缺憾是一种非量化系统缺乏确定的操作指导,元通着眼于波浪的时间空间和速度三种量化数据来分析每一个波浪结构,为我们分析股市行情提供重要的参考,为我们的交易决策提供辅助。元通波浪分析指标公式波浪计算采用的是ZIG未来函数,因此存在信号动态飘移变化请谨慎对待,有选择性使用。元通波浪分析标注的是每一波的涨跌幅,持续时间,和涨跌快慢的速度(平均涨跌幅)。 元通波浪分析主图指标公式源码(通达信): DRAWKLINE(H,O,L,C); X:=(C+O+H+L)/4; N:=10; P:=60; 趋势:ZIG(3,N); ↑:=TROUGHBARS(3,N,1); ↓:=PEAKBARS(3,N,1); 低:IF(↑=0,C,IF(↓<↑,TROUGH(3,N,1),REF(TROUGH(3,N,1),1))),COLORGREEN,NODRAW; 涨%:IF(↑<↓,(C/低-1)*100,REF((C/低-1)*100,↓)),COLOR0000FF,NODRAW; 高:IF(↓=0,C,IF(↑<↓,PEAK(3,N,1),REF(PEAK(3,N,1),1))),COLORYELLOW,NODRAW; 跌%:IF(↓<↑,(C/高-1)*100,REF((C/高-1)*100,↑)),COLORFFFF00,NODRAW; 上:IF(趋势>REF(趋势,1),趋势,DRAWNULL),COLORMAGENTA,LINETHICK2; 下:IF(趋势<REF(趋势,1),趋势,DRAWNULL),COLORGREEN,LINETHICK2; 涨时:TROUGHBARS(3,N,1)-1 COLORRED NODRAW; 跌时:PEAKBARS(3,N,1)-1 COLORGREEN NODRAW; STICKLINE(↑=0,H*1.01,高,0,0),COLOR00FF00; STICKLINE(↓=0,L*0.99,低,0,0),COLORFF00FF; STICKLINE(BETWEEN(↑,0,7),低,低,50,-1),COLORGREEN; STICKLINE(BETWEEN(↓,0,7),高,高,50,-1),COLORYELLOW; STICKLINE(↑<↓,低,低,50,-1),COLORGREEN; STICKLINE(↓<↑,高,高,50,-1),COLORYELLOW; STICKLINE(↑<↓ AND ↑>0 AND 趋势<高,高,高,50,-1),COLORYELLOW; STICKLINE(↓<↑ AND ↓>0 AND 趋势>低,低,低,50,-1),COLORGREEN; Z1:=(高-低)/低*100; D1:=(高-低)/高*100; STICKLINE(CROSS(C,高),C,O,3,0)COLORYELLOW; DRAWICON(CROSS(C,高),L*0.99,23); STICKLINE(CROSS(低,C),C,O,3,0)COLORGREEN; DRAWTEXT(CROSS(低,C),H*1.01,'十')COLORGREEN; DRAWTEXT(趋势>REF(趋势,1) AND REF(趋势,1)<REF(趋势,2),L*0.96,VARCAT(VARCAT('跌:',VAR2STR(D1,2)),'%'))COLORGREEN; DRAWTEXT(趋势<REF(趋势,1) AND REF(趋势,1)>REF(趋势,2),H*1.04,VARCAT(VARCAT('涨:',VAR2STR(Z1,2)),'%'))COLORRED; DRAWTEXT(趋势<REF(趋势,1) AND REF(趋势,1)>REF(趋势,2),H*1.10,VARCAT(VAR2STR(涨时,0),'天')),COLORRED; DRAWTEXT(趋势>REF(趋势,1) AND REF(趋势,1)<REF(趋势,2),L*0.90,VARCAT(VAR2STR(跌时,0),'天')),COLORGREEN; DRAWTEXT(趋势>REF(趋势,1) AND REF(趋势,1)<REF(趋势,2),L*0.85,VARCAT(VARCAT('平均',VAR2STR(D1/跌时,2)),'%'))COLORGREEN; DRAWTEXT(趋势<REF(趋势,1) AND REF(趋势,1)>REF(趋势,2),H*1.15,VARCAT(VARCAT('平均',VAR2STR(Z1/涨时,2)),'%'))COLORRED; DRAWICON((ZIG(3,10)>REF(ZIG(3,10),1)) AND (REF(ZIG(3,10),1)<REF(ZIG(3,10),2))AND D1<38.2,L*0.99,1); DRAWICON((ZIG(3,10)<REF(ZIG(3,10),1)) AND (REF(ZIG(3,10),1)>REF(ZIG(3,10),2))AND Z1<38.2,H*1.01,2); DRAWICON((ZIG(3,10)>REF(ZIG(3,10),1)) AND (REF(ZIG(3,10),1)<REF(ZIG(3,10),2))AND D1>38.2 AND D1<61.8,L*0.99,38); DRAWICON((ZIG(3,10)<REF(ZIG(3,10),1)) AND (REF(ZIG(3,10),1)>REF(ZIG(3,10),2))AND Z1>38.2 AND Z1<61.8,H*1.01,39); DRAWICON((ZIG(3,10)>REF(ZIG(3,10),1)) AND (REF(ZIG(3,10),1)<REF(ZIG(3,10),2))AND D1>61.8,L*0.99,11); DRAWICON((ZIG(3,10)<REF(ZIG(3,10),1)) AND (REF(ZIG(3,10),1)>REF(ZIG(3,10),2))AND Z1>61.8,H*1.01,12); DRAWTEXT_FIX(1,0.00,0,0,'所属地区:')COLOR00FFFF; DRAWTEXT_FIX(1,0.07,0,0,DYBLOCK)COLOR00FFFF; DRAWTEXT_FIX(1,0.00,0.06,0,'所属行业:')COLORYELLOW; DRAWTEXT_FIX(1,0.07,0.06,0,HYBLOCK)COLORYELLOW; (1)波浪分析小跌选股公式源码(通达信): N:=10; P:=60; 趋势:=ZIG(3,N); ↑:=TROUGHBARS(3,N,1); ↓:=PEAKBARS(3,N,1); 低:=IF(↑=0,C,IF(↓<↑,TROUGH(3,N,1),REF(TROUGH(3,N,1),1))); 涨%:=IF(↑<↓,(C/低-1)*100,REF((C/低-1)*100,↓)); 高:=IF(↓=0,C,IF(↑<↓,PEAK(3,N,1),REF(PEAK(3,N,1),1))); 跌%:=IF(↓<↑,(C/高-1)*100,REF((C/高-1)*100,↑)); 上:=IF(趋势>REF(趋势,1),趋势,DRAWNULL),COLORMAGENTA,LINETHICK2; 下:=IF(趋势<REF(趋势,1),趋势,DRAWNULL),COLORGREEN,LINETHICK2; Z1:=(高-低)/低*100; D1:=(高-低)/高*100; 小跌:ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2) AND D1<38.2; (2)波浪分析中跌选股公式源码(通达信): N:=10; P:=60; 趋势:=ZIG(3,N); ↑:=TROUGHBARS(3,N,1); ↓:=PEAKBARS(3,N,1); 低:=IF(↑=0,C,IF(↓<↑,TROUGH(3,N,1),REF(TROUGH(3,N,1),1))); 涨%:=IF(↑<↓,(C/低-1)*100,REF((C/低-1)*100,↓)); 高:=IF(↓=0,C,IF(↑<↓,PEAK(3,N,1),REF(PEAK(3,N,1),1))); 跌%:=IF(↓<↑,(C/高-1)*100,REF((C/高-1)*100,↑)); 上:=IF(趋势>REF(趋势,1),趋势,DRAWNULL),COLORMAGENTA,LINETHICK2; 下:=IF(趋势<REF(趋势,1),趋势,DRAWNULL),COLORGREEN,LINETHICK2; Z1:=(高-低)/低*100; D1:=(高-低)/高*100; 中跌:ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2) AND D1>38.2 AND D1<61.8; (3)波浪分析大跌选股公式源码(通达信): N:=10; P:=60; 趋势:=ZIG(3,N); ↑:=TROUGHBARS(3,N,1); ↓:=PEAKBARS(3,N,1); 低:=IF(↑=0,C,IF(↓<↑,TROUGH(3,N,1),REF(TROUGH(3,N,1),1))); 涨%:=IF(↑<↓,(C/低-1)*100,REF((C/低-1)*100,↓)); 高:=IF(↓=0,C,IF(↑<↓,PEAK(3,N,1),REF(PEAK(3,N,1),1))); 跌%:=IF(↓<↑,(C/高-1)*100,REF((C/高-1)*100,↑)); 上:=IF(趋势>REF(趋势,1),趋势,DRAWNULL),COLORMAGENTA,LINETHICK2; 下:=IF(趋势<REF(趋势,1),趋势,DRAWNULL),COLORGREEN,LINETHICK2; Z1:=(高-低)/低*100; D1:=(高-低)/高*100; 大跌:ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2) AND D1>61.8; (4)波浪分析短期选股公式源码(通达信): N:=10; P:=60; 趋势:=ZIG(3,N); ↑:=TROUGHBARS(3,N,1); ↓:=PEAKBARS(3,N,1); 低:=IF(↑=0,C,IF(↓<↑,TROUGH(3,N,1),REF(TROUGH(3,N,1),1))); 涨%:=IF(↑<↓,(C/低-1)*100,REF((C/低-1)*100,↓)); 高:=IF(↓=0,C,IF(↑<↓,PEAK(3,N,1),REF(PEAK(3,N,1),1))); 跌%:=IF(↓<↑,(C/高-1)*100,REF((C/高-1)*100,↑)); 上:=IF(趋势>REF(趋势,1),趋势,DRAWNULL),COLORMAGENTA,LINETHICK2; 下:=IF(趋势<REF(趋势,1),趋势,DRAWNULL),COLORGREEN,LINETHICK2; 跌时:=PEAKBARS(3,N,1)-1; Z1:=(高-低)/低*100; D1:=(高-低)/高*100; 短期:ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2) AND 跌时<21; (5)波浪分析中期选股公式源码(通达信): N:=10; P:=60; 趋势:=ZIG(3,N); ↑:=TROUGHBARS(3,N,1); ↓:=PEAKBARS(3,N,1); 低:=IF(↑=0,C,IF(↓<↑,TROUGH(3,N,1),REF(TROUGH(3,N,1),1))); 涨%:=IF(↑<↓,(C/低-1)*100,REF((C/低-1)*100,↓)); 高:=IF(↓=0,C,IF(↑<↓,PEAK(3,N,1),REF(PEAK(3,N,1),1))); 跌%:=IF(↓<↑,(C/高-1)*100,REF((C/高-1)*100,↑)); 上:=IF(趋势>REF(趋势,1),趋势,DRAWNULL),COLORMAGENTA,LINETHICK2; 下:=IF(趋势<REF(趋势,1),趋势,DRAWNULL),COLORGREEN,LINETHICK2; 跌时:=PEAKBARS(3,N,1)-1; Z1:=(高-低)/低*100; D1:=(高-低)/高*100; 中期:ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2) AND 跌时>20 AND 跌时<61; (6)波浪分析长期选股公式源码(通达信): N:=10; P:=60; 趋势:=ZIG(3,N); ↑:=TROUGHBARS(3,N,1); ↓:=PEAKBARS(3,N,1); 低:=IF(↑=0,C,IF(↓<↑,TROUGH(3,N,1),REF(TROUGH(3,N,1),1))); 涨%:=IF(↑<↓,(C/低-1)*100,REF((C/低-1)*100,↓)); 高:=IF(↓=0,C,IF(↑<↓,PEAK(3,N,1),REF(PEAK(3,N,1),1))); 跌%:=IF(↓<↑,(C/高-1)*100,REF((C/高-1)*100,↑)); 上:=IF(趋势>REF(趋势,1),趋势,DRAWNULL),COLORMAGENTA,LINETHICK2; 下:=IF(趋势<REF(趋势,1),趋势,DRAWNULL),COLORGREEN,LINETHICK2; 跌时:=PEAKBARS(3,N,1)-1; Z1:=(高-低)/低*100; D1:=(高-低)/高*100; 长期:ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2) AND 跌时>61; (7)波浪分析慢跌选股公式源码(通达信): N:=10; P:=60; 趋势:=ZIG(3,N); ↑:=TROUGHBARS(3,N,1); ↓:=PEAKBARS(3,N,1); 低:=IF(↑=0,C,IF(↓<↑,TROUGH(3,N,1),REF(TROUGH(3,N,1),1))); 涨%:=IF(↑<↓,(C/低-1)*100,REF((C/低-1)*100,↓)); 高:=IF(↓=0,C,IF(↑<↓,PEAK(3,N,1),REF(PEAK(3,N,1),1))); 跌%:=IF(↓<↑,(C/高-1)*100,REF((C/高-1)*100,↑)); 上:=IF(趋势>REF(趋势,1),趋势,DRAWNULL),COLORMAGENTA,LINETHICK2; 下:=IF(趋势<REF(趋势,1),趋势,DRAWNULL),COLORGREEN,LINETHICK2; 跌时:=PEAKBARS(3,N,1)-1; Z1:=(高-低)/低*100; D1:=(高-低)/高*100; 慢跌:ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2) AND D1/跌时<3.82; (8)波浪分析快跌选股公式源码(通达信): N:=10; P:=60; 趋势:=ZIG(3,N); ↑:=TROUGHBARS(3,N,1); ↓:=PEAKBARS(3,N,1); 低:=IF(↑=0,C,IF(↓<↑,TROUGH(3,N,1),REF(TROUGH(3,N,1),1))); 涨%:=IF(↑<↓,(C/低-1)*100,REF((C/低-1)*100,↓)); 高:=IF(↓=0,C,IF(↑<↓,PEAK(3,N,1),REF(PEAK(3,N,1),1))); 跌%:=IF(↓<↑,(C/高-1)*100,REF((C/高-1)*100,↑)); 上:=IF(趋势>REF(趋势,1),趋势,DRAWNULL),COLORMAGENTA,LINETHICK2; 下:=IF(趋势<REF(趋势,1),趋势,DRAWNULL),COLORGREEN,LINETHICK2; 跌时:=PEAKBARS(3,N,1)-1; Z1:=(高-低)/低*100; D1:=(高-低)/高*100; 快跌:ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2) AND D1/跌时>3.82; (9)波浪分析突破选股公式源码(通达信): N:=10; P:=60; 趋势:=ZIG(3,N); ↑:=TROUGHBARS(3,N,1); ↓:=PEAKBARS(3,N,1); 低:=IF(↑=0,C,IF(↓<↑,TROUGH(3,N,1),REF(TROUGH(3,N,1),1))); 涨%:=IF(↑<↓,(C/低-1)*100,REF((C/低-1)*100,↓)); 高:=IF(↓=0,C,IF(↑<↓,PEAK(3,N,1),REF(PEAK(3,N,1),1))); 跌%:=IF(↓<↑,(C/高-1)*100,REF((C/高-1)*100,↑)); 上:=IF(趋势>REF(趋势,1),趋势,DRAWNULL),COLORMAGENTA,LINETHICK2; 下:=IF(趋势<REF(趋势,1),趋势,DRAWNULL),COLORGREEN,LINETHICK2; 跌时:=PEAKBARS(3,N,1)-1; Z1:=(高-低)/低*100; D1:=(高-低)/高*100; 突破:CROSS(C,高); |
|