//KDJ浪柱指標(biāo)公式
R:=(C-LLV(L,19))/(HHV(H,19)-LLV(L,19))*10;
R1:=(R-0.5)/2.5*EMA(C,15)/2;
R2:=MA(CLOSE,5);
R3:=MA(CLOSE,10);
R4:=MA(CLOSE,20);
R5:=MA(CLOSE,30);
R6:=(R2+R3+R4+R5)/(4);
R7:=((R6-REF(R6,15))/(REF(R6,15)))*(100);
R9:=EMA(R7,8);
R10:=SMA(R1,3,1);
R11:=SMA(R10,3,1);
R12:=R10*3-R11*2;
K:R10+EMA(C,10),color0000FF;
D:R11+EMA(C,10),color00FF00;
J:R12+EMA(C,10),color00FFFF;
STICKLINE(R7>1*REF(R7, 1), R7, R9, 5, 0), colorred;
STICKLINE(R7<1*REF(R7, 1), R7, R9, 5, 1), colorgreen;
買(mǎi)進(jìn): IF(CROSS(J,D),8,-5),color00FFFF;
買(mǎi)入:IF((TROUGHBARS(3,15,1)=0) AND (HIGH>LOW+0.01),10,(-5)), colorred;
從公式源碼中分析,可以看出里面包含了買(mǎi)進(jìn)或者說(shuō)是買(mǎi)入的操作信號(hào),指出了浪柱的走勢(shì)形態(tài)的表達(dá)含義,將其導(dǎo)入到軟件中的走勢(shì)形態(tài)如下:
此外,不僅僅是有浪柱公式可以表現(xiàn)買(mǎi)入的操作信號(hào),還有一種公式是躺底指標(biāo)公式,其中能夠表現(xiàn)指標(biāo)的金叉和死叉走勢(shì),具體的源碼公式如下:
//躺底公式
N:=5;
M1:=3;
M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1),LINETHICK1;
D:SMA(K,M2,1),LINETHICK1;
J:3*K-2*D,COLORFF00FF,LINETHICK1;
IF(J<0,J,DRAWNULL),colorgreen,LINETHICK2;
IF(K>90,K,DRAWNULL),COLOR0000FF,LINETHICK2;
IF(D>85,D,DRAWNULL),COLORFFFF11,LINETHICK2;
DRAWICON(CROSS(J,1),J,1);
DRAWICON(K>80 AND D>80 AND CROSS(D,K),D,2);
將該指標(biāo)源碼導(dǎo)入到基本的軟件中進(jìn)行分析,所表現(xiàn)出的走勢(shì)如下:
當(dāng)然對(duì)于該指標(biāo)介紹:可以運(yùn)用KDJ紅線在低位時(shí)買(mǎi)入,在高位時(shí)賣(mài)出;短買(mǎi)可供參考; KDJ技術(shù)位置也可供參考,其指標(biāo)如下:
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
DRAWTEXT(REF(J,1)0,50,'短買(mǎi)'),colorred;
短線:STICKLINE(REF(J,1)0,60,0,2,0),colorred;
DRAWICON(REF(K,1)<50 AND CROSS(K,REF(K, 1)), K, 'buy1');
DRAWICON((K<21 OR REF(K,1)<21) AND CROSS(K,REF(K, 1)), K, 'buy');
DRAWICON(REF(K,1)>60 AND CROSS(REF(K,1),K), K, 'sell');
目前位置:K,linethick2,colorred;
技術(shù)低位:20, colorgreen;
技術(shù)中位:50,POINTDOT,coloryellow;
技術(shù)高位:80,colorblue;
TOP:110,colorwhite;
BOTTOM:0,colorwhite;
同理將該指標(biāo)源碼導(dǎo)入到軟件中,得到的指標(biāo)走勢(shì)如下:
以上就是本文主要講解的KDJ指標(biāo)中的浪柱公式的基本應(yīng)用以及躺底公式源碼的介紹,如果您還想要了解更多的股票公式,請(qǐng)關(guān)注贏家財(cái)富網(wǎng),我們會(huì)為您提供更加專(zhuān)業(yè)的源碼解析和圖例介紹。
服務(wù)中心:鄭州市金水區(qū)農(nóng)業(yè)路經(jīng)三路
郵編:450002 網(wǎng)址:datuav.com
銷(xiāo)售熱線:0371-65350319
技術(shù)支持:13333833889