{NBH-指标一}
XZ:=1;
MA5:MA(VOL,5)*XZ,LINETHICK2;
MA20:MA(VOL,20)*XZ,LINETHICK2;
MA120:MA(VOL,120)*XZ,LINETHICK3;
MA60:MA(VOL,60)*XZ,LINETHICK1;
虚拟VOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL)*XZ,NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,虚拟VOL,0,-1,-1)*XZ,COLOR00C0C0;
VOLUME:VOL*XZ,VOLSTICK;
量能饱和:(AMOUNT/CLOSE)/HHV((AMOUNT/CLOSE),26)*100*XZ,NODRAW;
十日换手:SUM(V/CAPITAL*100,10)*XZ;
昨换手率:REF(DYNAINFO(37),1)*XZ,NODRAW COLORGRAY;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN))*XZ;
主动买盘:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2))*XZ;
主动卖盘:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2))*XZ;
买卖盘比:-(主动买盘/主动卖盘)*XZ,NODRAW,COLORYELLOW;
STICKLINE(主动买盘>0,0,主动买盘,1,0),COLORRED;
STICKLINE(主动卖盘<0,VOL,主动买盘,1,0),COLOR00FF00;
换手:=VOL/CAPITAL*100*XZ,NODRAW;
STICKLINE(换手>0 ,0, 主动买盘,0,0),COLORYELLOW;
STICKLINE(换手>0,VOL, 主动买盘, 0,0) ,COLORRED;
内外比:BUYVOL/SELLVOL*XZ;
成交额增幅:AMOUNT/REF(AMOUNT,1)*XZ,NODRAW;
N1:=5;N2:=10;N3:=600;
LC:=REF(CLOSE,1);
A0:=(2*C+H+L)/4;
A1:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*10;
VAR11:=C-REF(C,1);
VAR2:=100*EMA(EMA(VAR11,6),6)/EMA(EMA(ABS(VAR11),6),6);
MA5A:=EMA(C,5);
MA13A:=EMA(C,13);
UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13A,MA5A))+1),LLV(L,BARSLAST(CROSS
(MA13A,MA5A))+1),H=HHV(H,BARSLAST(CROSS(MA5A,MA13A))+1),HHV(H,BARSLAST(CROSS
(MA5A,MA13A))+1),0),COLOR0000FF;
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5A,MA13A))+1),HHV(H,BARSLAST(CROSS
(MA5A,MA13A))+1),L=LLV(L,BARSLAST(CROSS(MA13A,MA5A))+1),LLV(L,BARSLAST(CROSS
(MA13A,MA5A))+1),0),COLOR00FF00;
BT:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) AND CROSS(VAR2,MA(VAR2,2))) AND
REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);
N:=10;
DIFF:(EMA(DCLOSE,10)-EMA(DCLOSE,21))*N3,COLORCYAN,LINETHICK2;
DEA:EMA(DIFF,7),COLOR1474FF,LINETHICK3;
TJ1:EMA(DEA,3),COLORWHITE,LINETHICK3;
TJ2:EMA(DEA,5),COLORMAGENTA;
F:=CROSS(DIFF,DEA);
G:=CROSS(DEA,DIFF);
DRAWICON(F,DEA-2.6,13);
DRAWICON(G,DEA+1.1,6);
DIFFA := EMA(OSC,12) - EMA(OSC,25);
DEAA := EMA(DIFFA,8);
MACD := 2*(DIFFA-DEAA);
D1:=EMA(DIFF,3)-EMA(DIFF,8);
D2:=EMA(O,3)-EMA(O,8);
D3:=EMA(H,3)-EMA(H,8);
D4:=EMA(L,3)-EMA(L,8);
STICKLINE(DIFF>=DEA,DIFF,DEA,1,0),COLOR0055AA;
STICKLINE(DIFF<=DEA,DIFF,DEA,0.8,0),COLOR006600;
STICKLINE(DIFF>=DEA,DIFF,DEA,0.6,0),COLOR0077CC;
STICKLINE(DIFF>=DEA,DIFF,DEA,0.3,0),COLOR0099DD;
STICKLINE(DIFF>=DEA,D3,D4,0.1,0),COLOR00BBFF;
STICKLINE(DIFF<=DEA,DIFF,DEA,0.8,0),COLOR009900;
STICKLINE(DIFF<=DEA,DIFF,DEA,0.5,0),COLOR00BB00;
STICKLINE(DIFF<=DEA,DIFF,DEA,0.2,0),COLOR00EE00;
S1:=MACD<REF(MACD,1)AND MACD>0,COLORBLUE;
S2:=MACD<REF(MACD,1)/2 AND MACD<0;
STICKLINE(MACD>=0,MACD,0,4,1),COLORRED;
STICKLINE(S1,0,MACD,4,1),COLOR00FFFF;
B1:=(HHV(H,5)-C)/(HHV(H,5)-LLV(LOW,5))*100- 99;
B2:=SMA(B1,5,1)+100;
B3:=(C-LLV(L,5))/(HHV(H,5)- LLV(L,5))*100+1;
B4:=SMA(B3,3,1);
B5:=SMA(B4,3,1)+100;
B6:=B5-B2;
B7:IF(B6>55,B6-55,0);
持有:STICKLINE(REF(B7,1)<B7,B7,REF(B7,1),3,0),COLORMAGENTA;
A1N:0,POINTDOT,COLORMAGENTA,LINETHICK3;
DIF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA1:=EMA(DIF1,9);
{柱状线}
AAA1:=(DIF1-DEA1)*2*600;
AAA上:IF(AAA1>REF(AAA1,1),AAA1,DRAWNULL),
STICK,COLORRED,LINETHICK1;
AAA下:IF(AAA1<REF(AAA1,1),AAA1,DRAWNULL),STICK,COLORYELLOW,LINETHICK1;
VARA11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
VAR2AAA:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2);
果断买入:IF(VAR2AAA AND COUNT(VAR2AAA,3)=1,50.5,0),STICK,LINETHICK5,COLORRED;
组合买: (VAR11+VAR13+VAR15+VAR17), , COLORRED,NODRAW;
DRAWTEXT(VAR11+VAR13+VAR15+VAR17,40.3,'组买'),COLORYELLOW;
DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),50.4,'绝佳') ,LINETHICK2,COLORYELLOW;
VAR31:=MA(HHV(HIGH,488),18);
VAR32:=MA(HHV(HIGH,220),18);
VAR33:=MA(HHV(HIGH,98),18);
VAR34:=MA(LLV(LOW,488),18);
VAR35:=MA(LLV(LOW,220),18);
VAR36:=MA(LLV(LOW,98),18);
VAR37:=MA((((((((VAR34 * 0.96) + (VAR35 * 0.96)) + (VAR36 * 0.96)) + (VAR31 * 0.558)) + (VAR32 * 0.558)) + (VAR33 * 0.558)) / 6),18);
VAR38:=MA((((((((VAR34 * 1.25) + (VAR35 * 1.23)) + (VAR36 * 1.2)) + (VAR31 * 0.55)) + (VAR32 * 0.55)) + (VAR33 * 0.65)) / 6),18);
VAR39:=MA((((((((VAR34 * 1.3) + (VAR35 * 1.3)) + (VAR36 * 1.3)) + (VAR31 * 0.68)) + (VAR32 * 0.68)) + (VAR33 * 0.68)) / 6),18);
VAR40:=MA((((((VAR37 * 3) + (VAR38 * 2)) + VAR39) / 6) * 1.738),18);
VAR41:=VAR40;
VAR42:=LOW;
VAR43:=REF(LOW,1);
VAR44:=((SMA(ABS((VAR42 - VAR43)),3,1) / SMA(MAX((VAR42 - VAR43),0),3,1)) * 100);
VAR45:=MA(IF(((CLOSE * 1.35) <= VAR41),(VAR44 * 10),(VAR44 / 10)),3);
VAR46:=LLV(LOW,30);
VAR47:=HHV(VAR45,30);
VAR49:=IF((LOW <= VAR46),((VAR45 + (VAR47 * 2)) / 2),0);
提示:50*(MA((VAR49 AND (CLOSE < COST(1))),3)),COLORFFFF00,LINETHICK2;
A1J:=REF(CLOSE,2);
A2J:=SMA(MAX(CLOSE-A1J,0),7,1)/SMA(ABS(CLOSE-A1J),7,1)*100;
金矿门:IF(A2J<19,30,0)COLOR00FFFF,LINETHICK2.8;
{量能异动-指标二}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1),LINETHICK2,COLORWHITE;
D:SMA(K,3,1),LINETHICK2,COLOR00DDDD;
J:3*K-2*D,LINETHICK2,COLORRED;
DIF:EMA(CLOSE,12)-EMA(CLOSE,26),LINETHICK0,COLOR0099FF;
DEA :EMA(DIF,9),LINETHICK0,COLORD89837;
MACD:2*(DIF-DEA),COLORFF9999,LINETHICK0;
YLZC:=IF(CLOSE=INDEXC,(INDEXC+INDEXH+INDEXL+INDEXO)/4,AMOUNT/(VOL+0.01)/100);
阻价:=IF(CLOSE=INDEXC,YLZC+INDEXC-INDEXL,YLZC+(CLOSE-LOW));
支价:=IF(CLOSE=INDEXC,INDEXL+INDEXC-YLZC,LOW+(CLOSE-YLZC));
今压:REF(阻价,1),LINETHICK0,COLORAA11BB;
今撑:REF(支价,1),LINETHICK0,COLOR009900;
明压:阻价,LINETHICK0;
明撑:支价,LINETHICK0;
RSV1:=(HHV(H,9.8)-C)/(HHV(H,9.8)-LLV(L,9.8))*101;
KK:=SMA(RSV1,3,1);
DD:=SMA(KK,3,1);
JJ:=3*KK-2*DD;
买卖:=IF(JJ>=100,100,IF(JJ<=0,0,JJ));
明天买:IF(买卖=100,0-10,0),COLOR00CCCC;
明天卖:IF(买卖=0,90,100),COLOR00FF00;
KX:=250;
KH:=HHV(K,KX);
DH:=HHV(D,KX);
JH:=HHV(J,KX);
KL:=LLV(K,KX);
DL:=LLV(D,KX);
JL:=LLV(J,KX);
HKMAX:=MAX(KH,MAX(DH,JH));
LKMIN:=MIN(KL,MIN(DL,JL));
KHLB:=(HKMAX+LKMIN)/2;
KHLC:=HKMAX-LKMIN;
MHF:=HHV(DIF,KX);
MHD:=HHV(DEA,KX);
MHM:=HHV(MACD,KX);
MLF:=LLV(DIF,KX);
MLD:=LLV(DEA,KX);
MLM:=LLV(MACD,KX);
HMAX:=MAX(MHF,MAX(MHD,MHM));
LMIN:=MIN(MLF,MIN(MLD,MLM));
FHLB:=(HMAX-LMIN)/100; |