炒股就是炒波浪,股票價格的漲跌就像大海中的波浪一樣深不可測,在股市中有著名的波浪理論闡敘股市波浪的八浪循環(huán),波浪理論的缺憾是一種非量化系統(tǒng)缺乏確定的操作指導(dǎo),元通著眼于波浪的時間空間和速度三種量化數(shù)據(jù)來分析每一個波浪結(jié)構(gòu),為我們分析股市行情提供重要的參考,為我們的交易決策提供輔助。元通波浪分析指標(biāo)公式波浪計算采用的是ZIG未來函數(shù),因此存在信號動態(tài)飄移變化請謹(jǐn)慎對待,有選擇性使用。元通波浪分析標(biāo)注的是每一波的漲跌幅,持續(xù)時間,和漲跌快慢的速度(平均漲跌幅)。 元通波浪分析主圖指標(biāo)公式源碼(通達(dá)信): 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,'所屬地區(qū):')COLOR00FFFF; DRAWTEXT_FIX(1,0.07,0,0,DYBLOCK)COLOR00FFFF; DRAWTEXT_FIX(1,0.00,0.06,0,'所屬行業(yè):')COLORYELLOW; DRAWTEXT_FIX(1,0.07,0.06,0,HYBLOCK)COLORYELLOW; (1)波浪分析小跌選股公式源碼(通達(dá)信): 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)波浪分析中跌選股公式源碼(通達(dá)信): 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)波浪分析大跌選股公式源碼(通達(dá)信): 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)波浪分析短期選股公式源碼(通達(dá)信): 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)波浪分析中期選股公式源碼(通達(dá)信): 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)波浪分析長期選股公式源碼(通達(dá)信): 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)波浪分析慢跌選股公式源碼(通達(dá)信): 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)波浪分析快跌選股公式源碼(通達(dá)信): 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)波浪分析突破選股公式源碼(通達(dá)信): 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,高); |
|
來自: 7sky > 《通達(dá)信公式》