【量化】
日線鎖定:=(PERIOD==4);
ZBSLPG:=22;
{//01.四海騰龍}
LTSHPG:=100-100*(HHV(H,40)-C)/(HHV(H,40)-LLV(L,40));
ZB01:=LTSHPG>=50;
{//02.MACD }
DIFPG:=EMA(C,12)-EMA(C,26);
DEAPG:=EMA(DIFPG,9);
ZB02:=DIFPG>DEAPG;
【03~05.趨勢(shì)頂?shù)住?/p>
APG:=MA((-100)*(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34)),19);
BPG:=(-100)*(HHV(H,14)-C)/(HHV(H,14)-LLV(L,14));
DPG:=EMA((-100)*(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34)),4);
QSDDLONG:=APG+100;
QSDDSHORT:=BPG+100;
QSDDMID:=DPG+100;
ZB03:=QSDDSHORT>QSDDMID;
ZB04:=QSDDSHORT>QSDDLONG;
ZB05:=QSDDMID>QSDDLONG;
{//06.KDJ}
RSVPG:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
KPG:=SMA(RSVPG,3,1);
DPG2:=SMA(KPG,3,1);
ZB06:=KPG>DPG2;
{//07~09.RSI}
LCPG:=REF(CLOSE,1);
RPG1:=SMA(MAX(C-LCPG,0),6,1)/SMA(ABS(C-LCPG),6,1)*100;
RPG2:=SMA(MAX(C-LCPG,0),12,1)/SMA(ABS(C-LCPG),12,1)*100;
RPG3:=SMA(MAX(C-LCPG,0),24,1)/SMA(ABS(C-LCPG),24,1)*100;
ZB07:=RPG1>RPG2;
ZB08:=RPG1>RPG3;
ZB09:=RPG2>RPG3;
{//10~12.MA}
ZB10:=MA(C,5)>MA(C,10);
ZB11:=MA(C,5)>MA(C,20);
ZB12:=MA(C,10)>MA(C,20);
{//13.主力進(jìn)出}
MAVPG:=(C*2+H+L)/4;
SKPG:=EMA(MAVPG,13)-EMA(MAVPG,34);
SDPG:=EMA(SKPG,5);
ZB13:=(2*(SKPG-SDPG))>((-2)*(SKPG-SDPG));
【//14~16.多空線】
MIDPGX:=(3*C+O+L+H)/6;
DKXPG1:=WMA(MIDPGX,5);
DKXPG2:=WMA(MIDPGX,10);
DKXPG3:=WMA(MIDPGX,20);
ZB14:=DKXPG1>REF(DKXPG1,1);
ZB15:=DKXPG2>REF(DKXPG2,1);
ZB16:=DKXPG3>REF(DKXPG3,1);
{//17.G08}
G08PG:=EMA(C,34);
ZB17:=G08PG>REF(G08PG,1);
{//18.B08}
B08PG:=(C-LLV(L,60))/(HHV(H,60)-LLV(L,60))*80;
BPG1:=SMA(B08PG,7,1);
BPG2:=SMA(BPG1,3,1);
ZB18:=BPG1>BPG2;
{//19.BBI}
BBIPG:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4;
ZB19:=C>BBIPG;
{//20~21.速率表}
MIDSLB:=(3*C+L+O+H)/6;
E1:=EMA(10000*(WMA(MIDSLB,30)-REF(WMA(MIDSLB,30),1))/REF(WMA(MIDSLB,30),1),10);
E2:=EMA(E1,2);
E3:=EMA(E2,2);
E4:=EMA(E3,2);
E5:=EMA(E4,2);
E6:=EMA(E5,2);
E7:=EMA(E6,2);
ZB20:=E2>E3 AND E3>E4 AND E4>E5 AND E5>E6 AND E6>E7;
ZB21:=E2>REF(E2,1) AND E3>REF(E3,1) AND E4>REF(E4,1) AND E5>REF(E5,1) AND E6>REF(E6,1) AND E7>REF(E7,1);
{//22.趨勢(shì)向量}
TRPG1:=MAX(MAX((H-L),ABS(H-REF(C,1))),ABS(REF(C,1)-L));
ATRPG1:=EMA(TRPG1,14);
HDPG:=H-REF(H,1);
LDPG:=REF(L,1)-L;
PDMPG:=EMA(IFF(HDPG>0 AND HDPG>LDPG,HDPG,0),14);
MDMPG:=EMA(IFF(LDPG>0 AND LDPG>HDPG,LDPG,0),14);
PDIPG:=PDMPG/ATRPG1;
MDIPG:=MDMPG/ATRPG1;
XLPG:=(PDIPG-MDIPG)/(PDIPG+MDIPG);
ZB22:=XLPG>0;
量化指標(biāo):(ZB01+ZB02+ZB03+ZB04+ZB05+ZB06+ZB07+ZB08+ZB09+ZB10+
ZB11+ZB12+ZB13+ZB14+ZB15+ZB16+ZB17+ZB18+ZB19+ZB20+ZB21+ZB22)*(100/ZBSLPG)NODRAW,COLORRED;
▲35線:35,COLORGREEN;
▲50線:50,COLORYELLOW;
▲80線:80,COLORRED;
【//3D柱線形式】
STICKLINE(量化指標(biāo)>=REF(量化指標(biāo),1),0,量化指標(biāo),3,0),COLORRED;
STICKLINE(量化指標(biāo)>=REF(量化指標(biāo),1),0,量化指標(biāo),3,0),COLOR0000FF;
STICKLINE(量化指標(biāo)>=REF(量化指標(biāo),1),0,量化指標(biāo),2.7.5,0),COLOR001BFF;
STICKLINE(量化指標(biāo)>=REF(量化指標(biāo),1),0,量化指標(biāo),2.4,0),COLOR0035FF;
STICKLINE(量化指標(biāo)>=REF(量化指標(biāo),1),0,量化指標(biāo),2.1,0),COLOR0050FF;
STICKLINE(量化指標(biāo)>=REF(量化指標(biāo),1),0,量化指標(biāo),1.8,0),COLOR0062FF;
STICKLINE(量化指標(biāo)>=REF(量化指標(biāo),1),0,量化指標(biāo),1.5,0),COLOR007AFF;
STICKLINE(量化指標(biāo)>=REF(量化指標(biāo),1),0,量化指標(biāo),1.2,0),COLOR0089FF;
STICKLINE(量化指標(biāo)>=REF(量化指標(biāo),1),0,量化指標(biāo),0.9,0),COLOR009CFF;
STICKLINE(量化指標(biāo)>=REF(量化指標(biāo),1),0,量化指標(biāo),0.6,0),COLOR00C0FF;
STICKLINE(量化指標(biāo)>=REF(量化指標(biāo),1),0,量化指標(biāo),0.3,0),COLOR00EAFF;
源碼中顯示的主要是量線的走勢(shì)變化,能夠反映股票成交速率大小以及實(shí)戰(zhàn)中的柱線的變化形式,通過多空線和趨勢(shì)向量的形態(tài)進(jìn)行表述,希望投資者能夠掌握其中的源碼編譯與實(shí)戰(zhàn)操作技巧。
以上就是本文講解的五行量化指標(biāo)的基礎(chǔ)源碼指標(biāo)公式,如果您還想要了解更多的技術(shù)指標(biāo),請(qǐng)點(diǎn)擊obv指標(biāo)的妙用。
上一篇:【股票公式】換手率量柱與柱
服務(wù)中心:鄭州市金水區(qū)農(nóng)業(yè)路經(jīng)三路
郵編:450002 網(wǎng)址:s5l8a2.cn
銷售熱線:0371-65350319
技術(shù)支持:13333833889