M2: 2 1000 30
M1: 2 1000 5
M3: 2 1000 30
M4: 2 1000 250
五日線:MA(CLOSE,M1);
月線:MA(CLOSE,M2);
半年線:MA(CLOSE,M3);
年線:MA(CLOSE,M4);
VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=IF(YEAR》=2099 AND MONTH》2,0,1);
VAR3:=LLV(LOW,5);
VAR4:=HHV(HIGH,4);
散戶:=EMA((VAR1-VAR3)/(VAR4-VAR3)*100,4)*VAR2;
莊家:=EMA(0.667*REF(散戶,1)+0.333*散戶,2)*VAR2;
DRAWTEXT(CROSS(散戶,莊家) AND 散戶《47,L-0.05,‘←低吸’),COLORLIRED;
DRAWTEXT(CROSS(莊家,散戶) AND 散戶》60,H+0.05,‘←高拋’),COLOR80FF00;
DRAWICON(CROSS(散戶,莊家) AND 散戶《47,L-0.05,1);
DRAWICON(CROSS(莊家,散戶) AND 散戶》60,H+0.05,2);
市場成本:DMA(AMOUNT/V/100,V/CAPITAL),NODRAW;
操盤成本:(MA(C,30)+MA(C,72))/2,COLORRED;
市盈率:DYNAINFO(39),COLORFF00FF,NODRAW;
TJ:=VOL》=REF(V,1)*1.91 AND C》REF(C,1)*1.01;
STICKLINE(TJ,OPEN,CLOSE,1.5,0),COLORFF00FF;
量_價(jià):=1;CTKG:=1;
W:=量_價(jià);
EPSL:=0.0001;
ZZ:=(C+H+L)/3;
TJA:=ZZ》=MAX(C,O) AND CTKG=1;{倒錘頭};
TJB:=ZZ《=MIN(C,O) AND CTKG=1;{正錘頭};
ZF:=IF(TJA,1,IF(TJB,-1,0));{正負(fù)數(shù)};
TJ0:=TJA OR TJB;
TJ1:=H=L AND C》REF(C,1);{一字漲停};
TJ2:=H=L AND C《REF(C,1);{一字跌停};
TJ3:=H=L AND C=REF(C,1);{連續(xù)一字漲、跌停};
量_價(jià):=IF(W=1,VOL,AMOUNT),STICK,COLOREEFFEE;{平盤量,白色}
EE:=IF(TJ1,EPSL,IF(TJ2,-EPSL,0));
ZL:=2*(H-L)+ABS(C-O)+3*IF(TJ3,EPSL,ABS(EE));
JGL_DX:=(IF(TJ0,2/3*(2*C-H-L)+ZF*ABS(C-O),(C-O))+EE)/ZL;
差:=(JGL_DX*量_價(jià))/20000,COLOR13AADD,NODRAW;
DX:=JGL_DX*100,NODRAW;
買:=量_價(jià)*(1+JGL_DX)/20000,COLOR1133AA,NODRAW;
賣:=量_價(jià)*(1-JGL_DX)/20000,COLORFFFF00,NODRAW;
量差:=買-賣,NODRAW,COLORYELLOW;
STICKLINE(量差《=0,CLOSE,OPEN,3,0),COLOR009900;
STICKLINE(量差《=0,2dayisday1.comCLOSE,OPEN,2.2,0),COLOR00BB00;
STICKLINE(量差《=0,CLOSE,OPEN,1.5,0),COLOR00DD00;
STICKLINE(量差《=0,CLOSE,OPEN,0.5,0),COLOR00FF00;
STICKLINE(量差》=0,CLOSE,OPEN,3,0),COLOR000099;
STICKLINE(量差》=0,CLOSE,OPEN,2.2,0),COLOR0000CC;
STICKLINE(量差》=0,CLOSE,OPEN,1.5,0),COLOR0000FF;
STICKLINE(量差》=0,CLOSE,OPEN,0.5,0),COLORCC66FF;
V2V:=V/REF(V,1)》=1.9 AND C》REF(C,1);
STICKLINE(V2V,OPEN,CLOSE,0.5,0),COLORYELLOW;
ZT:=C/REF(C,1)》1.097;
STICKLINE(ZT,OPEN,CLOSE,0.5,0),COLORYELLOW;
V3V:=V/REF(V,1)》=1.9 AND C《REF(C,1);
STICKLINE(V3V,OPEN,CLOSE,0.5,0),COLORBLUE;
D:=MA(CLOSE,80)-MA(CLOSE,10)/3;
DRAWTEXT(IF(CLOSE2dayisday1.com《D AND VOL/240》MA(VOL,5)/240 AND CLOSE》REF(CLOSE,1)*1.08
AND CLOSE《MA(CLOSE,13)*1.3,1,0),LOW,‘↖抄底’),COLORRED;
(南方財(cái)富網(wǎng)SOUTHMONEY.COM)