【融軌】
首先通過(guò)融軌的通道走勢(shì)運(yùn)行,研判個(gè)股的趨勢(shì)發(fā)展,具體的源碼如下:
c1:=C;
N:=10;
LB:=COST(1);
HB:=COST(99);
W:=(HB-LB)/10;
N0:=LB;
N1:=LB+W;
N2:=LB+2*W;
N3:=LB+3*W;
N4:=LB+4*W;
N5:=LB+5*W;
N6:=LB+6*W;
N7:=LB+7*W;
N8:=LB+8*W;
N9:=LB+9*W;
N10:=HB;
A0:=WINNER(N1)*100-WINNER(N0)*100;
A1:=WINNER(N2)*100-WINNER(N1)*100;
A2:=WINNER(N3)*100-WINNER(N2)*100;
A3:=WINNER(N4)*100-WINNER(N3)*100;
A4:=WINNER(N5)*100-WINNER(N4)*100;
A5:=WINNER(N6)*100-WINNER(N5)*100;
A6:=WINNER(N7)*100-WINNER(N6)*100;
A7:=WINNER(N8)*100-WINNER(N7)*100;
A8:=WINNER(N9)*100-WINNER(N8)*100;
A9:=WINNER(N10)*100-WINNER(N9)*100;
xa0:DRAWSL(BARSTATUS=2 and A0>0,(N1+N0)/2,0,N*A0,1),Color262626,LINETHICK4;
xa1:DRAWSL(BARSTATUS=2 and A1>0,(N2+N1)/2,0,N*A1,1),Color262626,LINETHICK4;
xa2:DRAWSL(BARSTATUS=2 and A2>0,(N3+N2)/2,0,N*A2,1),Color262626,LINETHICK4;
xa3:DRAWSL(BARSTATUS=2 and A3>0,(N4+N3)/2,0,N*A3,1),Color262626,LINETHICK4;
xa4:DRawsl(BARSTATUS=2 and A4>0,(N5+N4)/2,0,N*A4,1),Color262626,LINETHICK4;
xa5:DRAWSL(BARSTATUS=2 and A5>0,(N6+N5)/2,0,N*A5,1),Color262626,LINETHICK4;
xa6:DRAWSL(BARSTATUS=2 and A6>0,(N7+N6)/2,0,N*A6,1),Color262626,LINETHICK4;
xa7:DRAWSL(BARSTATUS=2 and A7>0,(N8+N7)/2,0,N*A7,1),Color262626,LINETHICK4;
xa8:DRAWSL(BARSTATUS=2 and A8>0,(N9+N8)/2,0,N*A8,1),Color262626,LINETHICK4;
xa9:DRAWSL(BARSTATUS=2 and A9>0,(N10+N9)/2,0,N*A9,1),Color262626,LINETHICK4;
{K線顏色}
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0),Color0088FF;
STICKLINE(CLOSE
{融勝軌道}
AA:=MA((2*CLOSE+HIGH+LOW)/4,5);
通1:=AA*102/100;
通2:=AA*(200-102)/100;
ZZ:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,ZZ);
上:=(1+7/100)*DD;
下:=(1-7/100)*DD;
中:=(上+下)/2;
頂:=(1+14/100)*DD;
底:=(1-14/100)*DD;
軌道角度1:=(ATAN((MA(底,5)/REF(MA(底,5),1)-1)*100)*180/3.14115926),LINETHICK0;
五日角度1:=(ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926),LINETHICK0;
DRAWTEXT(SYSPARAM(1)=BARPOS and C>頂,L,'頂 '+NUMTOSTR(頂[SYSPARAM(1)],2)),pxdn27,Color0088FF;
DRAWTEXT(SYSPARAM(1)=BARPOS and C<頂,L,'頂 '+NUMTOSTR(頂[SYSPARAM(1)],2)),pxdn27,COLOR666600;
DRAWTEXT(SYSPARAM(1)=BARPOS and C>上,L,'上 '+NUMTOSTR(上[SYSPARAM(1)],2)),pxdn52,Color0088FF;
DRAWTEXT(SYSPARAM(1)=BARPOS and C<上,L,'上 '+NUMTOSTR(上[SYSPARAM(1)],2)),pxdn52,COLOR666600;
DRAWTEXT(SYSPARAM(1)=BARPOS and C>中,L,'中 '+NUMTOSTR(中[SYSPARAM(1)],2)),pxdn77,Color0088FF;
DRAWTEXT(SYSPARAM(1)=BARPOS and C<中,L,'中 '+NUMTOSTR(中[SYSPARAM(1)],2)),pxdn77,COLOR666600;
DRAWTEXT(SYSPARAM(1)=BARPOS and C>下,L,'下 '+NUMTOSTR(下[SYSPARAM(1)],2)),pxdn102,Color0088FF;
DRAWTEXT(SYSPARAM(1)=BARPOS and C<下,L,'下 '+NUMTOSTR(下[SYSPARAM(1)],2)),pxdn102,COLOR666600;
DRAWTEXT(SYSPARAM(1)=BARPOS and C>底,L,'底 '+NUMTOSTR(底[SYSPARAM(1)],2)),pxdn127,Color0088FF;
DRAWTEXT(SYSPARAM(1)=BARPOS and C<底,L,'底 '+NUMTOSTR(底[SYSPARAM(1)],2)),pxdn127,COLOR666600;
{DRAWTEXT(SYSPARAM(1)=BARPOS and 上,上,'上'+NUMTOSTR(上[SYSPARAM(1)],2)),pxup8,colorwhite;
DRAWTEXT(SYSPARAM(1)=BARPOS and 中,中,'中'+NUMTOSTR(中[SYSPARAM(1)],2)),pxup8,colorYellow;
DRAWTEXT(SYSPARAM(1)=BARPOS and 下,下,'下'+NUMTOSTR(下[SYSPARAM(1)],2)),pxup8,colorwhite;
DRAWTEXT(SYSPARAM(1)=BARPOS and 底,底,'底'+NUMTOSTR(底[SYSPARAM(1)],2)),pxup8,colorgreen;}
ZH:=HHV(H,22);ZHH:=H;
ZGF1:=ZHH/1.0809;ZGF2:=ZHH/1.1618;
ZGF3:=ZHH/1.0809/1.1618;ZGF4:=ZHH/1.1618/1.1618;
DRAWTEXTEX(c,1,10,650,'第一回調(diào)區(qū):'+NUMTOSTR(ZGF1[SYSPARAM(1)],2)+'--'+NUMTOSTR(ZGF2[SYSPARAM(1)],2)+''),Color00FF00;
DRAWTEXTEX(c,1,10,700,'第二回調(diào)區(qū):'+NUMTOSTR(ZGF3[SYSPARAM(1)],2)+'--'+NUMTOSTR(ZGF4[SYSPARAM(1)],2)+''),Color00FF00;
ZL:=LLV(L,22);ZLL:=L;
ZGFB1:=ZLL*1.0809;ZGFB2:=ZLL*1.1618;ZGFB3:=ZLL*1.0809*1.1618;ZGFB4:=ZLL*1.1618*1.1618;
DRAWTEXTEX(c,1,10,450,'第一壓力區(qū):'+NUMTOSTR(ZGFB1[SYSPARAM(1)],2)+''+'--'+NUMTOSTR(ZGFB2[SYSPARAM(1)],2)+''),Color00EEFF;
DRAWTEXTEX(c,1,10,500,'第二壓力區(qū):'+NUMTOSTR(ZGFB3[SYSPARAM(1)],2)+''+'--'+NUMTOSTR(ZGFB4[SYSPARAM(1)],2)+''),Color00EEFF;
DRAWTEXTEX(c,1,10,400,'本次起動(dòng)價(jià):'+NUMTOSTR(ZL[SYSPARAM(1)],2)+''),Color00EEFF;
DRAWTEXTEX(c,1,10,600,'預(yù)計(jì)回調(diào)價(jià):'+NUMTOSTR(ZH[SYSPARAM(1)],2)+''),color00DD00;
DRAWTEXTEX(c,1,10,50,'收 益: '+ NUMTOSTR(FINANCE(33),2)+' 元'),ColorFFB060;
DRAWTEXTEX(c,1,120,50,'凈資產(chǎn): '+NUMTOSTR(FINANCE(34),2 )+' 元'),ColorFFB060;
DRAWTEXTEX(c,1,10,100,'流通股:'+ NUMTOSTR(FINANCE(7)/10000,2)+' 億'),ColorFFB060;
DRAWTEXTEX(c,1,120,100,'占總股本:'+NUMTOSTR(FINANCE(7)/FINANCE(1)*100 ,2)+' %'),ColorFFB060;
DRAWTEXTEX(c,1,10,150,'負(fù)債率:'+ NUMTOSTR(FINANCE(11)/FINANCE(15),2)),ColorFFB060;
DRAWTEXTEX(c,1,120,150,'主營(yíng)收入:'+NUMTOSTR(FINANCE(20)/10000,1 )+''),ColorFFB060;
{DRAWTEXTEX(c,1,10,250,STRLEFT(BLKNAME,90)),Color00FFFF;}
DRAWTEXTEX(c,1,10,200,'主題投資:'+SELFSTRING('主題投資')),ColorFFB060;
DRAWTEXTEX(c,1,10,0,'善謀者,謀勢(shì);不善者,謀子'),Color0088FF;
通過(guò)上下中軌道對(duì)頂?shù)走M(jìn)行研判,確定主題投資的個(gè)股趨勢(shì)以及目標(biāo)股的變化。然后選擇一個(gè)波段進(jìn)行操作,具體的波段運(yùn)行趨勢(shì)源碼如下:
【波段主圖】
input:KG1(20,1,50);
input:F1(10,1,20);
input:P(10,1,20);
D3X3:ma(c,3),SHIFT3,COLORMAGENTA;
KG:=IF(DATATYPE<=1,1,IF(DATATYPE<=3,5,IF(DATATYPE<=5,10,KG1)));
F:=IF(DATATYPE<=3,1,IF(DATATYPE=4,3,IF(DATATYPE=5,5,F1)));
ZX:=ZIG(4,KG);
CCH:=PEAK(4,KG,1);
CCY:=TROUGH(4,KG,1);
W1:=CROSS(CCH-0.02,ZX);
W2:=CROSS(ZX,CCY+0.02);
FD:=F/100;
H1:REF(CC*(1-YS*1),BARSLAST(W)),LINETHICK0;
H2:REF(CC*(1-YS*2),BARSLAST(W)),LINETHICK0;
H3:REF(CC*(1-YS*3),BARSLAST(W)),LINETHICK0;
H4:REF(CC*(1-YS*4),BARSLAST(W)),LINETHICK0;
H5:REF(CC*(1-YS*5),BARSLAST(W)),LINETHICK0;
H6:REF(CC*(1-YS*6),BARSLAST(W)),LINETHICK0;
H7:REF(CC*(1-YS*7),BARSLAST(W)),LINETHICK0;
H8:REF(CC*(1-YS*8),BARSLAST(W)),LINETHICK0;
H9:REF(CC*(1-YS*9),BARSLAST(W)),LINETHICK0;
H10:REF(CC*(1-YS*10),BARSLAST(W)),LINETHICK0;
H11:REF(CC*(1-YS*11),BARSLAST(W)),LINETHICK0;
H12:REF(CC*(1-YS*12),BARSLAST(W)),LINETHICK0;
H13:REF(CC*(1-YS*13),BARSLAST(W)),LINETHICK0;
H14:REF(CC*(1-YS*14),BARSLAST(W)),LINETHICK0;
H15:REF(CC*(1-YS*15),BARSLAST(W)),LINETHICK0;
HHD:=SYSPARAM(4);
LLD:=SYSPARAM(5);
系數(shù):=IF(DATATYPE=2,1.00005,IF(DATATYPE<6,1.0005,1.002));
STICKLINE(CC>=LLD AND CC<=HHD,CC,CC*系數(shù),20,0),colorFF;
STICKLINE(CC>=LLD AND CC<=HHD,H1,H1,5,0),colorA0A0A0;
STICKLINE(H1>LLD AND H1
STICKLINE(H2>LLD AND H2
STICKLINE(H3>LLD AND H3
STICKLINE(H4>LLD AND H4
STICKLINE(H5>LLD AND H5
STICKLINE(H6>LLD AND H6
STICKLINE(H7>LLD AND H7
STICKLINE(H8>LLD AND H8
STICKLINE(H9>LLD AND H9
STICKLINE(H10>LLD AND H10
STICKLINE(H11>LLD AND H11
STICKLINE(H12>LLD AND H12
STICKLINE(H13>LLD AND H13
STICKLINE(H14>LLD AND H14
DRAWTEXT(W AND CC>=LLD AND CC<=HHD,H1,''+NUMTOSTR(F*1,0)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(W AND H1>LLD AND H1
DRAWTEXT(W AND H2>LLD AND H2
DRAWTEXT(W AND H3>LLD AND H3
DRAWTEXT(W AND H4>LLD AND H4
DRAWTEXT(W AND H5>LLD AND H5
DRAWTEXT(W AND H6>LLD AND H6
DRAWTEXT(W AND H7>LLD AND H7
DRAWTEXT(W AND H8>LLD AND H8
DRAWTEXT(W AND H9>LLD AND H9
DRAWTEXT(W AND H10>LLD AND H10
DRAWTEXT(W AND H11>LLD AND H11
DRAWTEXT(W AND H12>LLD AND H12
DRAWTEXT(W AND H13>LLD AND H13
DRAWTEXT(W AND H14>LLD AND H14
AK1:=BARSLAST(W1)+1;
BK1:=BARSLAST(W2)+1;
目前:=IF(BK1>AK1,AK1,BK1);
DRAWNUMBER(W1,CC,REF(目前,1),0),ALIGN2,PXUP30,colorFF00FF;
DRAWNUMBER(W2,CC,REF(目前,1),0),ALIGN2,PXDN10,colorFF00;
方向:=IF(CC=CCH,'下行 ','上升 ');
周期:=IF(DATATYPE=6,'天 ',IF(DATATYPE=7,'周 ',IF(DATATYPE=8,'月 ','單位')));
DRAWTEXTEX(CC=CCH,1,320,0,'目前波段'+方向+NUMTOSTR(目前,0)+周期),COLOR666600;
DRAWTEXTEX(CC<>CCH,1,320,0,'目前波段'+方向+NUMTOSTR(目前,0)+周期),Color0088FF;
DRAWTEXT(W1,CC,''+周期),PXUP30,colorFF00FF;
DRAWTEXT(W2,CC,''+周期),PXDN10,colorFF00;
{p:10,1,30}
X1:=TROUGH(4,P,1);
X8:=TROUGHBARS(4,P,1)=0;
X11:=TROUGHBARS(4,P,2);
X18:=TROUGHBARS(4,P,1);
X13:=TROUGHBARS(4,P,1);
X3:=PEAK(4,P,1);
X31:=PEAKBARS(4,P,2);
X38:=PEAKBARS(4,P,1);
X33:=PEAKBARS(4,P,1);
X5:=PEAKBARS(4,P,1)=0;
光標(biāo)位置:=SYSPARAM(1);
CLDIS:=X13[SYSPARAM(1)];
CHDIS:=X33[SYSPARAM(1)];
TCL:=光標(biāo)位置-CLDIS;
TCH:=光標(biāo)位置-CHDIS;
BLDIS:=X18[SYSPARAM(1)];
BHDIS:=X38[SYSPARAM(1)];
TBL:=光標(biāo)位置-BLDIS;
TBH:=光標(biāo)位置-BHDIS;
ALDIS:=X11[SYSPARAM(1)];
AHDIS:=X31[SYSPARAM(1)];
TAL:=光標(biāo)位置-ALDIS;
TAH:=光標(biāo)位置-AHDIS;
K一浪A:=IF(TCL>TCH,TAL,TAH);
K二浪B:=IF(TCL>TCH,TBH,TBL);
K三浪C:=IF(TCL>TCH,TCL,TCH);
PH:=HIGH;
PL:=LOW;
P一浪A:IF(TCL>TCH,PL[TAL+0],PH[TAH+0]),LINETHICK0;
P二浪B:IF(TCL>TCH,PH[TBH+0],PL[TBL+0]),LINETHICK0;
P三浪C:IF(TCL>TCH,PL[TCL+0],PH[TCH+0]),LINETHICK0;
DRAWLINE(BARPOS=K一浪A,P一浪A,BARPOS=K二浪B,P二浪B,0),LINEDOT,color77FFFF;
DRAWLINE(BARPOS=K二浪B,P二浪B,BARPOS=K三浪C,P三浪C,0),LINEDOT,color77FFFF;
一浪長(zhǎng):=P二浪B-P一浪A;
Y1:=一浪長(zhǎng);
P1:=P三浪C+Y1;
VERTLINE(BARPOS=K三浪C),LINEDOT,colorFFFF;
DRAWTEXT(BARPOS=K三浪C,SYSPARAM(4)*0.95,'轉(zhuǎn)\n \n\n折\n \n點(diǎn)'),colorFFFF;
Y0618:=一浪長(zhǎng)*0.618;
P0618:=P三浪C+Y0618;
PARTLINE(BARPOS>K三浪C,P0618),colorCCFF;
DRAWTEXT(BARPOS=K三浪C,P0618,' '+NUMTOSTR(P0618,3)+' cop'),colorCCFF;
Y1000:=一浪長(zhǎng)*1;
P1000:=P三浪C+Y1000;
PARTLINE(BARPOS>K三浪C,P1000),colorCCFF;
DRAWTEXT(BARPOS=K三浪C,P1000,' '+NUMTOSTR(P1000,3)+' op'),colorCCFF;
Y1618:=一浪長(zhǎng)*1.618;
P1618:=P三浪C+Y1618;
PARTLINE(BARPOS>K三浪C,P1618),colorCCFF;
DRAWTEXT(BARPOS=K三浪C,P1618,' '+NUMTOSTR(P1618,3)+' xop'),colorCCFF;
DK:=MA(CLOSE,7);
{STICKLINE(DK<=CLOSE AND CLOSE>=OPEN,HIGH,LOW,0.1,1),colorFF;
STICKLINE(DK<=CLOSE AND CLOSE>=OPEN,CLOSE,OPEN,8,1),colorFF;
STICKLINE(DK<=CLOSE AND CLOSE
STICKLINE(DK<=CLOSE AND CLOSE
STICKLINE(DK>CLOSE AND CLOSE>=OPEN,HIGH,LOW,0.1,1),colorFF00;
STICKLINE(DK>CLOSE AND CLOSE>=OPEN,CLOSE,OPEN,8,1),colorFF00;
STICKLINE(DK>CLOSE AND CLOSE
STICKLINE(DK>CLOSE AND CLOSE
當(dāng)前月:=FRACPART(ROUND(CURRENTDATE/100)/100)*100;
月:=MONTH;
日:=DAY;
DRAWTEXT(SYSPARAM(2)=BARPOS AND NUMTOSTR(當(dāng)前月,0)='1',CLOSE,NUMTOSTR(當(dāng)前月,0)+'月時(shí)間之窗:5(小寒)、6、15、20(大寒)、21、*25\n \n \n \n '),ALIGN5,colorFFFF;
DRAWTEXT(SYSPARAM(2)=BARPOS AND NUMTOSTR(當(dāng)前月,0)='2',CLOSE,NUMTOSTR(當(dāng)前月,0)+'月時(shí)間之窗:4(立春)、6、15、18(雨水)21\n \n \n \n \n \n '),ALIGN5,colorFFFF;
DRAWTEXT(SYSPARAM(2)=BARPOS AND NUMTOSTR(當(dāng)前月,0)='3',CLOSE,NUMTOSTR(當(dāng)前月,0)+'月時(shí)間之窗:5(驚蟄)、6、15、*20(春分)、21\n \n \n \n \n '),ALIGN5,colorFFFF;
DRAWTEXT(SYSPARAM(2)=BARPOS AND NUMTOSTR(當(dāng)前月,0)='4',CLOSE,NUMTOSTR(當(dāng)前月,0)+'月時(shí)間之窗:4(清明)、6、15、20(谷雨)21\n \n \n \n \n \n '),ALIGN5,colorFFFF;
DRAWTEXT(SYSPARAM(2)=BARPOS AND NUMTOSTR(當(dāng)前月,0)='5',CLOSE,NUMTOSTR(當(dāng)前月,0)+'月時(shí)間之窗:5(立夏)、6、*12、15、21(小滿)\n \n \n \n \n'),ALIGN5,colorFFFF;
DRAWTEXT(SYSPARAM(2)=BARPOS AND NUMTOSTR(當(dāng)前月,0)='6',CLOSE,NUMTOSTR(當(dāng)前月,0)+'月時(shí)間之窗:5(芒種)、6、*14、21(夏至)\n \n \n \n \n '),ALIGN5,colorFFFF;
DRAWTEXT(SYSPARAM(2)=BARPOS AND NUMTOSTR(當(dāng)前月,0)='7',CLOSE,NUMTOSTR(當(dāng)前月,0)+'月時(shí)間之窗:7(小暑)、8、15、*19、23(大暑)\n \n \n \n \n '),ALIGN5,colorFFFF;
DRAWTEXT(SYSPARAM(2)=BARPOS AND NUMTOSTR(當(dāng)前月,0)='8',CLOSE,NUMTOSTR(當(dāng)前月,0)+'月時(shí)間之窗:*6、7(立秋)、8、18、23(處暑)\n \n \n \n \n \n '),ALIGN5,colorFFFF;
DRAWTEXT(SYSPARAM(2)=BARPOS AND NUMTOSTR(當(dāng)前月,0)='9',CLOSE,NUMTOSTR(當(dāng)前月,0)+'月時(shí)間之窗:7(白露)、8、15、*18、23(秋分)\n \n \n \n \n '),ALIGN5,colorFFFF;
DRAWTEXT(SYSPARAM(2)=BARPOS AND NUMTOSTR(當(dāng)前月,0)='10',CLOSE,NUMTOSTR(當(dāng)前月,0)+'月時(shí)間之窗:8(寒露)、15、23(霜降)、*31\n \n \n \n \n '),ALIGN5,colorFFFF;
DRAWTEXT(SYSPARAM(2)=BARPOS AND NUMTOSTR(當(dāng)前月,0)='11',CLOSE,NUMTOSTR(當(dāng)前月,0)+'月時(shí)間之窗:7(立冬)、8、15、22(小雪)23、*28\n \n \n \n \n \n '),ALIGN5,colorFFFF;
DRAWTEXT(SYSPARAM(2)=BARPOS AND NUMTOSTR(當(dāng)前月,0)='12',CLOSE,NUMTOSTR(當(dāng)前月,0)+'月時(shí)間之窗:7(大雪)、8、15、22(冬至)23、*31\n \n \n \n \n \n '),ALIGN5,colorFFFF;
將波浪與時(shí)間窗的變化結(jié)合在一起進(jìn)行研究分析,具體的案例如圖平安銀行在2013年2月19日的走勢(shì)變化,其波段下行了6天,收益以及流通股,負(fù)債率等等都在圖中顯示,希望投資者能夠把握其中的回調(diào)價(jià)格與回調(diào)區(qū)域的變化,進(jìn)行買(mǎi)賣(mài)操作。
以上就是本文講解的關(guān)注股市中波段與籌碼趨勢(shì)運(yùn)行的形態(tài)分析以及源碼公式,如果您還想要了解更加專(zhuān)業(yè)的技術(shù)分析知識(shí),請(qǐng)點(diǎn)擊:ACD指標(biāo)公式源碼。
服務(wù)中心:鄭州市金水區(qū)農(nóng)業(yè)路經(jīng)三路
郵編:450002 網(wǎng)址:datuav.com
銷(xiāo)售熱線:0371-65350319
技術(shù)支持:13333833889