大部分朋友在盤(pán)中找不準(zhǔn)買點(diǎn)和賣點(diǎn),分時(shí)買賣指標(biāo)就能給大家一個(gè)相對(duì)準(zhǔn)確的參考,當(dāng)然指標(biāo)不是絕對(duì)的,要理性對(duì)待和參考。 這個(gè)分時(shí)買賣指標(biāo)是分時(shí)主圖指標(biāo),是基于一段時(shí)間的數(shù)據(jù),不只是一天的分時(shí)數(shù)據(jù),所以使用時(shí)候一定要下載好數(shù)據(jù),否則顯示會(huì)錯(cuò)誤或者不顯示。 下面是指標(biāo)顯示效果圖,源碼在后面。 源碼:(本源碼包括分時(shí)買賣指標(biāo)源碼和調(diào)用指標(biāo)源碼,調(diào)用指標(biāo)的名稱必須命名為:SHBX,否則無(wú)法使用!) {分時(shí)買賣} TT2:=1000; JDFX:='SHBX.JX'; JXX:=IF(CLOSE>500,SUM(AMOUNT,0)/SUM(V,0),SUM(AMOUNT,0)/SUM(V,0)/100); ZB0:=(BARSLAST(((HOUR = 9) AND (MINUTE = 31))) + 1); ZB1:=JXX; ZB2:=(SUM((CLOSE * VOL),0) / SUM(VOL,0)); ZB3:=(((SETCODE = 0) OR (SETCODE = 1)) AND (CLOSE < 500)); HHH:=IF(((SETCODE < 2) AND (CONST(ZB0) < 241)),CONST(IF((TIME < TT2),HHV(CLOSE,0),SUM((IF((TIME = TT2),1,0) * HHV(CLOSE,0)),0))),DRAWNULL); LLL:=IF(((SETCODE < 2) AND (CONST(ZB0) < 241)),CONST(IF((TIME < TT2),LLV(CLOSE,0),SUM((IF((TIME = TT2),1,0) * LLV(CLOSE,0)),0))),DRAWNULL); ZB6:=IF(ZB3,ZB1,ZB2); ZB7BAK:='SHBX.MACS#DAY'; ZB7:='SHBX.SHBZF#DAY'; ZB8:=(ZB7 * 1.3); ZB9:=((CLOSE>REF(CLOSE,1)) AND ((CLOSE/ZB6)>(1+(ZB7/100)))); ZB10:=((CLOSE < REF(CLOSE,1)) AND ((CLOSE / ZB6) < (1 - (ZB7 / 100)))); DRAWTEXT_FIX(1,0,0,0,' 微信公眾號(hào)免費(fèi)分享:WUAIZHIBIAO'),COLOR00FFFF; HH1:((REF(SUM(ZB9,0),1) = 0) AND (SUM(ZB9,0) = 1)),NODRAW; DRAWTEXT_FIX(1,0.5,0,0,CON2STR(HH1,2)); LL1:((REF(SUM(ZB10,0),1) = 0) AND (SUM(ZB10,0) = 1)),NODRAW; ZB13:=(SUM(HH1,0) * CROSS(COUNT((CLOSE < REF(CLOSE,1)),BARSLAST(HH1)),0.5)); ZB14:=(SUM(LL1,0) * CROSS(COUNT((CLOSE > REF(CLOSE,1)),BARSLAST(LL1)),0.5)); CS1:CONST(SUM(IF(ZB13,REF(CLOSE,1),DRAWNULL),0)),LINETHICK2,COLORGREEN; CB1:CONST(SUM(IF(ZB14,REF(CLOSE,1),DRAWNULL),0)),LINETHICK2,COLORMAGENTA; HH2:=CROSS(SUM((ZB9 AND (CLOSE > (CS1 * (1 + (ZB8 / 100))))),0),0.5),NODRAW; LL2:=CROSS(SUM((ZB10 AND (CLOSE < (CB1 * (1 - (ZB8 / 100))))),0),0.5),NODRAW; ZB19:=(SUM(HH2,0) * CROSS(COUNT((CLOSE < REF(CLOSE,1)),BARSLAST(HH2)),0.5)); ZB20:=(SUM(LL2,0) * CROSS(COUNT((CLOSE > REF(CLOSE,1)),BARSLAST(LL2)),0.5)); CS2:CONST(SUM(IF(ZB19,REF(CLOSE,1),DRAWNULL),0)),COLORGREEN; CB2:CONST(SUM(IF(ZB20,REF(CLOSE,1),DRAWNULL),0)),COLORMAGENTA; DRAWTEXT((ZB13 OR ZB19),(REF(CLOSE,1) * 1.001),'賣'),COLORYELLOW; DRAWTEXT((ZB14 OR ZB20),(REF(CLOSE,1)*0.999),'買'),COLORYELLOW; ----------------------------------- {調(diào)用指標(biāo),名字必須設(shè)置為:SHBX} X_1:=16; X_2:=4; X_3:=3; X_4:=REF(CLOSE,1); X_5:=REF(MAX(HIGH,X_4),1); X_6:=REF(MIN(LOW,X_4),1); JX:IF(CLOSE>500,SUM(AMOUNT,0)/SUM(VOL,0),SUM(AMOUNT,0)/SUM(VOL,0)/100); MACS:MA((X_5-X_6)/REF(CLOSE,2)*100,5)/X_2; X_7:=REF(VOL,1)/REF(MA(VOL,5),1)<1.5; SHBZF:IF(X_7,100*MA((REF(HIGH,1)-REF(LOW,1))/REF(CLOSE,2),5),100*(REF(HIGH,1)-REF(LOW,1))/REF(CLOSE,2))/3; EMACS:EMA((X_5-X_6)/REF(CLOSE,2)*100,5)/4; NOTEXT前收盤(pán)價(jià):REF(CLOSE,1); NOTEXT上市周期:BARSSINCE(CLOSE); NOTEXTMA5:MA(CLOSE,5); NOTEXTMA10:MA(CLOSE,10); NOTEXTMA20:MA(CLOSE,20); NOTEXTMA60:MA(CLOSE,60); NOTEXTRMA5:REF(MA(CLOSE,5),1); NOTEXTRMA10:REF(MA(CLOSE,10),1); NOTEXTRMA20:REF(MA(CLOSE,20),1); NOTEXTRMA60:REF(MA(CLOSE,60),1); NOTEXT大盤(pán)價(jià)位:INDEXC; NOTEXT昨日大盤(pán):REF(INDEXC,1); X_8:=6.6; X_9:=95; GGS1:IF(REF(CLOSE,1)/REF(CLOSE,2)>1.04 OR REF(CLOSE,1)/REF(CLOSE,2)<0.97,X_9-3.2,X_9); GGB1:IF(REF(CLOSE,1)/REF(CLOSE,2)>1.04 OR REF(CLOSE,1)/REF(CLOSE,2)<0.97,X_8+3.2,X_8); X_10:=(CLOSE-LLV(LOW,89))/(HHV(HIGH,89)-LLV(LOW,89))*100; X_11:=SMA(X_10,14,1); X_12:=SMA(X_11,5,1); X_13:=3*X_11-2*X_12; K1:EMA(X_10,14); D1:EMA(X_12,5); J1:3*K1-2*D1; X_14:=EMA(EMA(EMA(CLOSE,X_1),X_1),X_1); X_15:=(X_14-REF(X_14,1))/REF(X_14,1)*100; VAR2:X_15<0; VAR3:X_15>0; X_16:=EMA(SMA((CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*100,8,1),3); VAR5:X_16<34; X_17:=COUNT(VAR5,10); X_18:=TIME2<133000; VAR8:X_17>0 AND VAR3>0 AND X_16>34 AND X_18>0; X_19:=5; X_20:=10; X_21:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1))))); X_22:=MOD(FROMOPEN,X_21); X_23:=IF(X_22<0.5,X_21,X_22); VVOL:IF(CURRBARSCOUNT=1 AND DYNAINFO(8)>1,VOL*X_21/X_23,DRAWNULL),NODRAW; XNL:VVOL/REF(VOL,1)>X_3; ZS:REF(CLOSE,1); |
|