---------------------------------------------------諧波周期---------------------------------------------------------
量價(jià)時(shí)空,K線的周期變化是最容易發(fā)現(xiàn)時(shí)價(jià)共振的,但是在趨勢(shì)研判過程中,可以使用諧波周期指標(biāo)公式進(jìn)行分析,其具體的源碼如下:
GG:=(H+C+L+O)/4/C;
A:=(SUM(SIN(2*GG-1),2)/(2*GG-1))*50;
D:=(SIN(GG)+((1/4)*SIN(GG)*4))/2*100;
AA:MA(A,9);
DD:MA(D,4);
EE:(AA+DD)/2;
85,DOTLINE;
84,DOTLINE;
83,DOTLINE;
從圖中能夠發(fā)現(xiàn),其指標(biāo)波中的走勢(shì)是隨著股價(jià)變化運(yùn)行的,清晰的表現(xiàn)了股價(jià)上漲下跌的趨勢(shì)變化,當(dāng)時(shí)間與價(jià)格形成共振的時(shí)候,就是投資者需要關(guān)注的要點(diǎn)位置之一。
---------------------十格圖主圖指標(biāo)公式-------------------------------------
十格圖類似K線四方形的走勢(shì),但是其沖頂信號(hào)、觸底信號(hào)等等都是通過指標(biāo)線畫出的,具體的源碼公式如下:
DRAWTEXT_FIX(1,0.65,0.9,1,'■---------------------------------------');
DRAWTEXT_FIX(1,0.87,0.9,1,'----------------------------------------■');
DRAWTEXT_FIX(1,0.87,0.1.5,1,'----------------------------------------■');
DRAWTEXT_FIX(1,0.65,0.1.5,1,'■---------------------------------------');
DRAWTEXT_FIX(1,0.97,0.30,1,'︱');
DRAWTEXT_FIX(1,0.97,0.32,1,'︱');
DRAWTEXT_FIX(1,0.97,0.34,1,'︱');
DRAWTEXT_FIX(1,0.97,0.36,1,'︱');
DRAWTEXT_FIX(1,0.97,0.38,1,'︱');
DRAWTEXT_FIX(1,0.97,0.40,1,'︱');
DRAWTEXT_FIX(1,0.97,0.42,1,'︱');
DRAWTEXT_FIX(1,0.97,0.44,1,'︱');
DRAWTEXT_FIX(1,0.97,0.46,1,'︱');
DRAWTEXT_FIX(1,0.97,0.48,1,'︱');
DRAWTEXT_FIX(1,0.97,0.50,1,'︱');
DRAWTEXT_FIX(1,0.97,0.52,1,'︱');
DRAWTEXT_FIX(1,0.97,0.54,1,'︱');
DRAWTEXT_FIX(1,0.97,0.56,1,'︱');
DRAWTEXT_FIX(1,0.97,0.58,1,'︱');
DRAWTEXT_FIX(1,0.97,0.60,1,'︱');
DRAWTEXT_FIX(1,0.97,0.62,1,'︱');
DRAWTEXT_FIX(1,0.97,0.64,1,'︱');
DRAWTEXT_FIX(1,0.97,0.66,1,'︱');
DRAWTEXT_FIX(1,0.97,0.67,1,'︱');
DRAWTEXT_FIX(1,0.39,0.30,1,'︱');
DRAWTEXT_FIX(1,0.39,0.32,1,'︱');
DRAWTEXT_FIX(1,0.39,0.34,1,'︱');
DRAWTEXT_FIX(1,0.39,0.36,1,'︱');
DRAWTEXT_FIX(1,0.39,0.38,1,'︱');
DRAWTEXT_FIX(1,0.39,0.40,1,'︱');
DRAWTEXT_FIX(1,0.39,0.42,1,'︱');
DRAWTEXT_FIX(1,0.39,0.44,1,'︱');
DRAWTEXT_FIX(1,0.39,0.46,1,'︱');
DRAWTEXT_FIX(1,0.39,0.48,1,'︱');
DRAWTEXT_FIX(1,0.39,0.50,1,'︱');
DRAWTEXT_FIX(1,0.39,0.52,1,'︱');
DRAWTEXT_FIX(1,0.39,0.54,1,'︱');
DRAWTEXT_FIX(1,0.39,0.56,1,'︱');
DRAWTEXT_FIX(1,0.39,0.58,1,'︱');
DRAWTEXT_FIX(1,0.39,0.60,1,'︱');
DRAWTEXT_FIX(1,0.39,0.62,1,'︱');
DRAWTEXT_FIX(1,0.39,0.64,1,'︱');
DRAWTEXT_FIX(1,0.39,0.66,1,'︱');
DRAWTEXT_FIX(1,0.39,0.67,1,'︱');
DRAWRECTREL(198,500,1200,501,200);
DRAWRECTREL(198,700,1200,701,200);
DRAWRECTREL(198,300,1200,301,200);
DRAWRECTREL(675,100,676,990,200);
DRAWRECTREL(485,100,486,990,200);
DRAWRECTREL(865,100,866,990,200);
DRAWTEXT_FIX(1,0.71,0.95,1,'觸底信號(hào)'),COLORYELLOW;
DRAWTEXT_FIX(1,0.96,0.88,1,'買進(jìn)信號(hào)'),COLORYELLOW;
DRAWTEXT_FIX(1,0.93,0.48,1,'加倉'),COLORYELLOW;
DRAWTEXT_FIX(1,0.96,0.20,1,'高拋'),COLORYELLOW;
DRAWTEXT_FIX(1,0.71,0.08,1,'沖頂信號(hào)'),COLORYELLOW;
DRAWTEXT_FIX(1,0.44,0.10,1,'減磅信號(hào)'),COLORYELLOW;
DRAWTEXT_FIX(1,0.43,0.48,1,'清倉'),COLORYELLOW;
DRAWTEXT_FIX(1,0.43,0.88,1,'低吸'),COLORYELLOW;
DRAWTEXT_FIX(1,0.39,0.27,1,'■');
DRAWTEXT_FIX(1,0.39,0.70,1,'■');
DRAWTEXT_FIX(1,0.97,0.27,1,'■');
DRAWTEXT_FIX(1,0.97,0.70,1,'■');
價(jià)漲幅1:=(C-REF(C,1))/REF(C,1);
量漲幅1:=(V-REF(V,1))/REF(V,1);
價(jià)漲幅:=SUM(價(jià)漲幅1,0);
量漲幅:=SUM(量漲幅1,0);
量漲幅2:=MA(量漲幅,50)/MA(價(jià)漲幅,20);
量漲幅線:=量漲幅/量漲幅2;
A1:=CROSS(價(jià)漲幅,0) OR CROSS(價(jià)漲幅,量漲幅);
A2:=V>MA(V,20);
A3:=C/REF(C,1)*100-100>-1 AND C/REF(C,1)*100-100<3.5;
A4:=CURRBARSCOUNT=1;
買入信號(hào):=A1+A2+A3+A4;
DRAWNUMBER_FIX(買入信號(hào)=4,0.96,0.85,1,C),COLORLIRED;
A5:=V/MA(V,20)>2;
加倉:=買入信號(hào)+A5;
DRAWNUMBER_FIX(加倉=5,0.91,0.45,1,C),COLORLIRED;
觀望1:=C>REF(C,1) AND V>REF(V,1);
DRAWNUMBER_FIX(觀望1=1 AND A4,0.96,0.16,1,C),COLORLIRED;
警戒:=C>REF(C,1) AND V
DRAWNUMBER_FIX(警戒=1 AND A4,0.78,0.08,1,C),COLORLIRED;
DRAWNUMBER_FIX(賣出=1 AND A4,0.48,0.10,1,C),COLORCYAN;
清倉:=CREF(V,1) AND C
DRAWNUMBER_FIX(清倉=1 AND A4,0.48,0.48,1,C),COLORCYAN;
陽轉(zhuǎn):=C
DRAWNUMBER_FIX(陽轉(zhuǎn)=1 AND A4,0.76,0.95,1,C),COLORLIRED;
DRAWKLINE(H,O,L,C);
其中需要投資者注意的地方就是,量線的漲幅變化,以及買入信號(hào)、加倉信號(hào)、清倉信號(hào)的提示點(diǎn)位,及時(shí)的把握操作機(jī)會(huì)能夠獲得豐厚的盈利,同時(shí)規(guī)避資金損失。
以上就是本文講解的關(guān)于趨勢(shì)判斷的兩個(gè)指標(biāo)公式源碼,如果您還想要了解更加專業(yè)的技術(shù)分析知識(shí),請(qǐng)點(diǎn)擊boll,是一種通道型的趨勢(shì)研判指標(biāo)工具,希望能夠幫助投資者不斷的盈利。
服務(wù)中心:鄭州市金水區(qū)農(nóng)業(yè)路經(jīng)三路
郵編:450002 網(wǎng)址:m.hbzcqc.cn
銷售熱線:0371-65350319
技術(shù)支持:13333833889