{十面埋伏}
N=5,N1=10,N2=20;
10,POINTDOT,COLORLIGRAY;
0,POINTDOT,COLORLIGRAY;
{MACD}
DIFF:=EMA(CLOSE,6)-EMA(CLOSE,30);
DEA:=EMA(DIFF,9);
DRAWICON(DIFF>DEA,1,1);
DRAWICON(DIFF<DEA,1,2);
DRAWTEXT(ISLASTBAR=1,0.7,' MACD'),COLORFFFFFF;
{SKDJ}
LOWV:=LLV(LOW,34);
HIGHV:=HHV(HIGH,34);
RSV1:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,5);
K:=EMA(RSV1,5);
D:=MA(K,5);
DRAWICON(K>D,2,1);
DRAWICON(K<D,2,2);
DRAWTEXT(ISLASTBAR=1,1.7,' SKDJ'),COLORFFFFFF;
{OBV}
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0),NODRAW;
MAOBV:MA(OBV,21),NODRAW;
DRAWICON(OBV>MAOBV,3,1);
DRAWICON(OBV<MAOBV,3,2);
DRAWTEXT(ISLASTBAR=1,2.7,' OBV'),COLORFFFFFF;
{LWR}
RSV:=-(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))*100;
LWR1:=SMA(RSV,5,1);
LWR2:=SMA(LWR1,3,1);
DRAWICON(LWR1>LWR2,4,1);
DRAWICON(LWR1<LWR2,4,2);
DRAWTEXT(ISLASTBAR=1,3.7,' LWR'),COLORFFFFFF;
{BBI}
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
DRAWICON(CLOSE>BBI,5,1);
DRAWICON(CLOSE<BBI,5,2);
DRAWTEXT(ISLASTBAR=1,4.7,' BBI'),COLORFFFFFF;
{MTM}
MTM:=CLOSE-REF(CLOSE,1);
MMS:=100*EMA(EMA(MTM,5),3)/EMA(EMA(ABS(MTM),5),3);
MMM:=100*EMA(EMA(MTM,13),8)/EMA(EMA(ABS(MTM),13),8);
DRAWICON(MMS>MMM,6,1);
DRAWICON(MMS<MMM,6,2);
DRAWTEXT(ISLASTBAR=1,5.7,' MTM'),COLORFFFFFF;
{MA}
M5:=MA(CLOSE,N),COLORRED;
M10:=MA(CLOSE,N1),COLORRED;
M20:=MA(CLOSE,N2),COLORRED;
X1:=BARSLAST(REF(CROSS(C,MA(C,120)),1)) AND CROSS(MA(C,20),MA
(C,120));
STICKLINE(M3>=M13 AND M34>=REF(M34,1),9.5,10,2,1 ),COLORRED;
STICKLINE(M3<M13 AND M34>=REF(M34,1),9.5,10,2,1 ),COLORYELLOW;
STICKLINE(M3<M13 AND M34<REF(M34,1),9.5,10,2,1 ),COLORGREEN;
STICKLINE(M3>=M13 AND M34<REF(M34,1),9.5,10,2,1
),COLORMAGENTA;
DRAWTEXT(ISLASTBAR=1,IF(V>=0,9.7.7,1),' 三線譜'),COLORWHITE;
機(jī)構(gòu)量A:=SUM((CLOSE-OPEN)/(HIGH-LOW)*VOL,24)/10000;
機(jī)構(gòu)量B:=SUM((CLOSE-OPEN)/(HIGH-LOW)
*VOL,24)/100,NODRAW,COLORCYAN;
CCTV1:STICKLINE(機(jī)構(gòu)量A>=0,7.5,8,2,1),COLOR0000AA;
CCTV2:STICKLINE(機(jī)構(gòu)量A<0,7.5,8,2,1),COLOR008800;
DRAWTEXT(ISLASTBAR=1,IF(V>=0,7.7,1),' 機(jī)構(gòu)量'),COLORWHITE;
RAW:=((HIGH+LOW)/2-(REF(HIGH,1)+REF(LOW,1))/2)/(AMO/(HIGH-
LOW));
主力量A:EMA(RAW,27)*100000*1000,NODRAW,COLORGREEN;
主力量B:主力量A*10,NODRAW,COLORGREEN;
CCTV3:STICKLINE(主力量A>=0,8.5,9,2,1),COLOR0000AA;
CCTV4:STICKLINE(主力量A<0,8.5,9,2,1),COLOR008800;
DRAWTEXT(ISLASTBAR=1,IF(V>=0,8.7,1),' 主力量'),COLORWHITE;
RAW1:=(AMO/MA(AMO,30)-1)*100-(CLOSE/MA(CLOSE,30)-1)*100;
RAW2:=MA(RAW1,30);
游資量A:(RAW2*30-REF(RAW1,30)+REF(RAW1,29))/30,NODRAW;
游資量B:=EMA(游資量A,6);
CCTV5:STICKLINE(游資量A>=游資量B,6.5,7,2,1),COLOR0000AA;
CCTV6:STICKLINE(游資量A<游資量B,6.5,7,2,1),COLOR008800;
DRAWTEXT(ISLASTBAR=1,IF(V>=0,6.7,1),' 游資量'),COLORWHITE;
風(fēng)險(xiǎn)提示:本指標(biāo)公式僅作為知識(shí)分享,不構(gòu)成任何投資建議,投資有風(fēng)險(xiǎn),交易需謹(jǐn)慎。
聯(lián)系客服