自用副圖簡(jiǎn)化版
G-DDX
M1:=5;M2:=5;
量:VOL/10000,COLOR33FF33,NODRAW;
預(yù)量:IF(CURRBARSCOUNT=1
AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL)/10000,COLORRED;
買(mǎi)比:BUYVOL/VOL*100,COLORFFFFFF,NODRAW;
WJ:=(H+L+C)/3;
V1:=IF(H=L,1,H-MAX(O,C));
V2:=IF(H=L,1,MAX(C,O)-WJ);
V3:=IF(H=L,1,MIN(O,C)-L);
V4:=IF(H=L,1,WJ-MIN(C,O));
V5:=VOL/IF(H=L,4,H-L);
V6:=(V1*V5);
V7:=(V2*V5);
V8:=(V3*V5);
V9:=(V4*V5);
主買(mǎi)盤(pán):=(V9+V8);
主賣盤(pán):=(V6+V7);
買(mǎi)盤(pán):=主買(mǎi)盤(pán)/10000;
賣盤(pán):= 主賣盤(pán)/10000;
買(mǎi)賣差:=買(mǎi)盤(pán)-賣盤(pán);
DDX:=買(mǎi)賣差;
N:=5;
M:=13;
N日內(nèi)凈流入:=SUM(DDX,N);
走牛:BARSLASTCOUNT(N日內(nèi)凈流入>0),COLOR00FF00,NODRAW;
十三紅:COUNT(DDX>0,13),COLORRED,NODRAW;
STICKLINE(買(mǎi)盤(pán)>0,0,買(mǎi)盤(pán),2,0),COLOR0000AA;
STICKLINE(CLOSE>=O, 量,買(mǎi)盤(pán),2,1),COLORRED;
STICKLINE(CLOSE<O, 量,買(mǎi)盤(pán),2,1),COLORCYAN;
M5:=MA(買(mǎi)盤(pán),5),COLORFFFFFF,LINETHICK1;
MM5:=MA(賣盤(pán),5),COLOR33FF33,LINETHICK1;
M%:ABS(M5/MM5),NODRAW,COLORFFFFFF;
量能:(AMOUNT/CLOSE)/HHV((AMOUNT/CLOSE),26)*100,COLOR00FF00,NODRAW;
STICKLINE(量能>=100,買(mǎi)盤(pán),0,2,0),COLORFF33FF;
量比:V/MA(V,5),COLORRED,POINTDOT,NODRAW;
VT:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1),NODRAW,COLORRED;
STICKLINE(VT>=1,0,買(mǎi)盤(pán),2,0),COLORYELLOW;
HS:=FLOOR(SUM(V/CAPITAL,0));
DRAWTEXT(HS>REF(HS,1),量*1.1,'*') COLORFFFFFF;
MA1:MA(量,5),COLORFFFFFF;
MA2:MA(量,135),COLOR00FF00;
var1:=(high+low)/2;
ao:(ma(var1,5)-ma(var1,35))/ma(var1,35)*100,color33ff33,linethick1;
q:if(ao>ref(ao,1),ao,drawnull),colorred,linethick1;
ao5:ma(ao,5),colorffffff,nodraw;
ac:2*(ao-ao5),color33ff33,nodraw;
stickline(ac>=ref(ac,1),0,ac,0,0),colorred;
stickline(ac< ref(ac,1),0,ac,0,0),color33ff33;
漲家數(shù):indexadv,colorred,nodraw;
跌家數(shù):indexdec,colorffffff,nodraw;
n2:=3;
aa:=ref(ao,n2)=hhv(ao,2*n2+1);
bb:=backset(aa,n2+1);
cc:=fil
a1:=barslast(ref(cc,1));
頂背離:=ref(close,a1+1)<close and ref(ao,a1+1)>ao and cc;
stickline(頂背離,0,ac*1.3,2,0),color00ff00;
aa2:=ref(ao,n2)=llv(ao,2*n2+1);
bb2:=backset(aa2,n2+1);
cc2:=fil
a2:=barslast(ref(cc2,1));
底背離:=ref(close,a2+1)>close and ref(ao,a2+1)<ao and cc2;
stickline(底背離,0,ac*1.3,2,0),coloryellow;
g-rsi(1)
LC:=REF(C,1);
RSI:SMA(MAX(C-LC,0),14,1)/SMA(ABS(C-LC),14,1)*100,COLORFFFFFF,LINETHICK1;
N:=3;
TY:=RSI;
A1:=REF(TY,N)=HHV(TY,2*N+1);
B1:=FIL
C1:=BACKSET(B1,N+1);
D1:=FIL
A2:=REF(TY,N)=LLV(TY,2*N+1);
B2:=FIL
C2:=BACKSET(B2,N+1);
D2:=FIL
上:=REF(RSI,BARSLAST(D1)),COLORFFFFFF,NODRAW;
下:=REF(RSI,BARSLAST(D2)),COLOR00FF00,NODRAW;
R11:=BACKSET(ISLASTBAR,BARSLAST(D1)+1);
S11:=R11>REF(R11,1);
X1:DRAWLINE(D1,RSI,S11,RSI,1),COLORYELLOW;
T11:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);
U11:=T11>REF(T11,1);
X2:DRAWLINE(D2,RSI,U11,RSI,1),COLOR00FF00;
壓:IF(C>0, 上,DRAWNULL),
POINTDOT,LINETHICK3,COLORMAGENTA;
支:IF(C>0,下,DRAWNULL),
POINTDOT,LINETHICK3,COLORYELLOW;
A3:=D1 AND RSI=HHV(RSI,N+1);
B3:=BARSLAST(REF(A3,1));
頂背離:=REF(CLOSE,B3+1)<CLOSE AND REF(RSI,B3+1)>RSI AND A3;
賣:IF(頂背離,84,80),COLORFF00FF;
A4:=D2 AND RSI=LLV(RSI,N+1);
B4:=BARSLAST(REF(A4,1));
底背離:=REF(CLOSE,B4+1)>CLOSE AND REF(RSI,B4+1)<RSI AND A4;
KDJ_K:='KDJ.K'(9,3,3);
KDJ_D:='KDJ.D'(9,3,3);
KDJ_J:='KDJ.J'(9,3,3);
買(mǎi)1:=CROSS(KDJ_J,0) OR (CROSS(KDJ_J,KDJ_K) AND KDJ_D<26);
買(mǎi)2:=CROSS('RSI.RSI1'(6,12,24),20)
OR CROSS('RSI.RSI1'(6,12,24),'RSI.RSI2'(6,12,24));
買(mǎi)3:=CROSS('MACD.DIF','MACD.DEA') OR CROSS('MACD.MACD',0);
買(mǎi)0:=買(mǎi)1+買(mǎi)2+買(mǎi)3;
買(mǎi):=IF(買(mǎi)0>1,買(mǎi)0,0);
E1:=RSI>65;
S1:=RSI<35;
STICKLINE(E1,80,82,1,1),COLOR00FF00;
STICKLINE(S1,80,82,1,1),COLORRED;
TR:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14,1);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
DMP:=SMA(IF(HD>0 AND HD>LD,HD,0),14,1);
DMM:=SMA(IF(LD>0 AND LD>HD,LD,0),14,1);
PDI:=DMP*100/TR,COLORRED;
MDI:=DMM*100/TR,COLORGREEN;
ADX:SMA(ABS(MDI-PDI)/(MDI+PDI)*100,14,1),NODRAW,COLORFFFFFF;
A5:=PDI>=MDI;
B5:=MDI>PDI;
STICKLINE(A5,16,18,1,1)COLORRED;
STICKLINE(B5,16,18,1,1)COLORGREEN;
STICKLINE(底背離 OR 買(mǎi),80,84,2,0),COLORYELLOW;
TR1:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
ATR:MA(TR1,14) ,NODRAW,COLORYELLOW;
尋底
LC:=REF(CLOSE,1);
RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);
TTR:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
HD:=(HIGH - REF(HIGH,1));
LD:=(REF(LOW,1) - LOW);
DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);
DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);
PDI:=((DMP * 100) / TTR);
MDI:=((DMM * 100) / TTR);
ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
AV:=(RSI5 + ADX);
DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
0,COLORFF00FF;
WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
NEWVOL:=(RSI5 - WR10);
階段底部:=(AV + NEWVOL);
STICKLINE((階段底部 >= 0),0,階段底部,0.3,1),LINETHICK2,COLORCC6600;
STICKLINE((階段底部 < 0),0,階段底部,0.8,1),LINETHICK6,COLORRED;
趨勢(shì)線:=LLV(階段底部,1),COLORFFFFFF;
STICKLINE((趨勢(shì)線 >230 ),250,趨勢(shì)線,0.8,1),LINETHICK6,COLORGREEN;
AA:=REF(CLOSE,1);
BBB:=SMA(MAX(CLOSE-AA,0),21,1)/SMA(ABS(CLOSE-AA),21,1)*1000;
HHH:=BBB-LLV(BBB,27);
CCC:=LLV(BBB,27)-BBB;
QQ:(MA(HHH,2)*3+HHH*13)/16,COLORFF00FF,LINETHICK2;
SS:=(MA(CCC,2)*3+CCC*13)/16;
GG:MA(HHH,5),LINETHICK1,COLORFFFFFF;
MM:=MA(CCC,5);
WW:=IF(QQ<GG ,SS,MM);
EE:=IF(SS<MM ,GG,QQ);
買(mǎi):IF(EE-WW<5.6,200,0),COLORYELLOW;
動(dòng)力
M:=3;N:=10;
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
MA3:=MA(OBV,M);
MA10:=MA(OBV,N);
OBVV:MA3-MA10,NODRAW;
STICKLINE(OBVV>REF(OBVV,1),0,OBVV,0.1,0),COLORRED;
STICKLINE(OBVV<REF(OBVV,1),0,OBVV,0.1,0),COLORCCCC00;
g-rsi(2)
lc:=ref(c,1);
rsi1:=sma(max(c-lc,0),9,1)/sma(abs(c-lc),9,1)*100,colorffffff,linethick1;
rsi:sma(rsi1,8,1),color00ff00;
q:if(rsi>ref(rsi,1),rsi,drawnull),colorred;
n:=3;
ty:=rsi;
a1:=ref(ty,n)=hhv(ty,2*n+1);
b1:=fil
c1:=backset(b1,n+1);
d1:=fil
a2:=ref(ty,n)=llv(ty,2*n+1);
b2:=fil
c2:=backset(b2,n+1);
d2:=fil
上:=ref(rsi,barslast(d1)),colorffffff,nodraw;
下:=ref(rsi,barslast(d2)),color00ff00,nodraw;
r11:=backset(islastbar,barslast(d1)+1);
s11:=r11>ref(r11,1);
x1:drawline(d1,rsi,s11,rsi,1),coloryellow,nodraw;
t11:=backset(islastbar,barslast(d2)+1);
u11:=t11>ref(t11,1);
x2:drawline(d2,rsi,u11,rsi,1),color00ff00,nodraw;
壓:if(c>0, 上,drawnull),
pointdot,linethick3,colormagenta;
支:if(c>0,下,drawnull),
pointdot,linethick3,coloryellow;
a3:=d1 and rsi=hhv(rsi,n+1);
b3:=barslast(ref(a3,1));
頂背離:=ref(close,b3+1)<close and ref(rsi,b3+1)>rsi and a3;
a4:=d2 and rsi=llv(rsi,n+1);
b4:=barslast(ref(a4,1));
底背離:=ref(close,b4+1)>close and ref(rsi,b4+1)<rsi and a4;
kdj_k:='kdj.k'(9,3,3);
kdj_d:='kdj.d'(9,3,3);
kdj_j:='kdj.j'(9,3,3);
買(mǎi)1:=cross(kdj_j,0) or (cross(kdj_j,kdj_k) and kdj_d<26);
買(mǎi)2:=cross('rsi.rsi1'(6,12,24),20)
or cross('rsi.rsi1'(6,12,24),'rsi.rsi2'(6,12,24));
買(mǎi)3:=cross('macd.dif','macd.dea') or cross('macd.macd',0);
買(mǎi)0:=買(mǎi)1+買(mǎi)2+買(mǎi)3;
買(mǎi):=if(買(mǎi)0>1,買(mǎi)0,0);
var1:=rsi>65;
var2:=rsi<35;
stickline(var1,80,82,1,1)color00ff00;
stickline(var2,80,82,1,1)colorred;
stickline(底背離 or 買(mǎi),80,84,2,0),coloryellow;
stickline(頂背離,80,84,2,0),color00ff00;
tr:=expmema(max(max(high-low,abs(high-ref(close,1))),abs(ref(close,1)-low)),14);
hd :=high-ref(high,1);
ld :=ref(low,1)-low;
dmp:=expmema(if(hd>0&&hd>ld,hd,0),14);
dmm:=expmema(if(ld>0&&ld>hd,ld,0),14);
mdi:=dmm*100/tr;
pdi:=dmp*100/tr;
adx: expmema(abs(mdi-pdi)/(mdi+pdi)*100,6),colorred,nodraw;
a5:=pdi>=mdi;
b5:=mdi>pdi;
stickline(a5,16,18,1,1)colorred;
stickline(b5,16,18,1,1)colorgreen;
tr1:=max(max((high-low),abs(ref(close,1)-high)),abs(ref(close,1)-low));
atr:ma(tr,14) ,nodraw,colorffffff;
g-kd
n:=5;m:=3;
LOWV:=LLV(LOW,N);
HIGHV:=HHV(HIGH,N);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,M);
K:EMA(RSV,M),COLOR33FF33;
QK:IF(K>REF(K,1),K,DRAWNULL),COLORRED,LINETHICK1;
D:MA(K,M),COLORFFFFFF,LINETHICK1;
VAR13:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
K1:=SMA(VAR13,3,1),COLORFFFFFF;
D1:=SMA(K1,3,1),COLORFFFFFF,LINETHICK2;
VAR21:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
K2:=SMA(VAR21,3,1),COLOR0000FF;
D2:=SMA(K2,3,1),COLOR0000FF,LINETHICK2;
VAR34:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
K3:=SMA(VAR34,3,1),COLORFF8800;
D3:=SMA(K3,3,1),COLORFF8800,LINETHICK2;
VAR55:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
K55:=SMA(VAR55,3,1),COLOR00FF00;
D55:=SMA(K55,3,1),COLOR008000;
DIBU:= K1<20 AND D1<20 AND K2<20 AND D2<20 AND K3<20 AND D3<20 AND D55<20;
STICKLINE(DIBU,20,25,1,0),COLORRED;
DIBV:=CROSS(K2,D2) AND D3<18;
STICKLINE(DIBV,20,25,2,0),COLOR0088FF;
DIAU:=K1>80 AND D1>80 AND K2>80 AND D2>80 AND K3>80 AND K3>80 AND D55>80;
STICKLINE(DIAU,80,85,1,0),COLOR00FF00;
DIAV:=CROSS(D2,K2) AND D3>82;
STICKLINE(DIAV,80,85,2,0),COLORBROWN;
MFI:=(H-L)*100000/V,NODRAW,COLOR33FF33;
成交:=VOL,COLORFFFFFF,POINTDOT,NODRAW;
A1:=MFI>=REF(MFI,1)*1.1 AND V>=REF(V,1)*1.1;
A2:=MFI<=REF(MFI,1)*0.9 AND V<=REF(V,1)*0.9;
A3:=MFI>=REF(MFI,1)*1.1 AND V<=REF(V,1)*0.9;
A4:=MFI<=REF(MFI,1)*0.9 AND V>=REF(V,1)*1.1;
綠窗:IF(A1=1,0.1,0),COLORGREEN,NODRAW;
衰退:IF(A2=1,0.1,0),COLOR0000FF,NODRAW;
偽裝:IF(A3=1,0.1,0),COLORCYAN,NODRAW;
蟄伏:IF(A4=1,0.1,0),COLOR00AAFF,NODRAW;
B1:=C>REF(C,1) AND V>REF(V,1);
B2:=C<REF(C,1) AND V<REF(V,1);
多空:COUNT(B1+B2,13)/13,NODRAW,COLORFFFFFF;
kd1
rsv:=(close-llv(low,55))/(hhv(high,55)-llv(low,55))*100;
k:=sma(rsv,21,1),colorwhite;
d:=sma(k,21,1);
j:3*k-2*d,color00ff00,pointdot,nodraw;
rsv2:=(close-llv(low,21))/(hhv(high,21)-llv(low,21))*100;
k2:=sma(rsv2,13,1),colorred;
d2:=sma(k2,13,1);
j2:3*k2-2*d2,color0011cc;
rsv3:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
k3:=sma(rsv3,5,1);
d3:=sma(k3,5,1);
j3:3*k3-2*d3,colorffffff;
b1:ema((0.667*ref(j3,1)+0.333*j3),2),color00aa00;
qrd
n:=21;n1:=******;n2:=250;
個(gè)股:=(close-ref(close,n))/ref(close,n)*100;
大盤(pán):=(indexc-ref(indexc,n))/ref(indexc,n)*100;
as:ema(個(gè)股-大盤(pán),2),color00ff00;
個(gè)股1:=(close-ref(close,n1))/ref(close,n1)*100;
大盤(pán)1:=(indexc-ref(indexc,n1))/ref(indexc,n1)*100;
as1:ema(個(gè)股1-大盤(pán)1,2),colorff00ff,linethick1;
個(gè)股2:=(close-ref(close,n2))/ref(close,n2)*100;
大盤(pán)2:=(indexc-ref(indexc,n2))/ref(indexc,n2)*100;
as2:ema(個(gè)股2-大盤(pán)2,2),colorffffff,linethick2;
彩量
n:=5;n1:=10;n2:=100;
成交:VOL/10000,COLOR33FF33,POINTDOT;
A1:=SUMBARS(V,CAPITAL);
CMA:=IF(CAPITAL>0,SUM(AMOUNT,A1)/SUM(VOL,A1)/100,EMA(CLOSE,120));
百分百換手價(jià):CMA,NODRAW,COLORRED,NODRAW;{100%換手平均成本價(jià)};
換手率:=100*VOL/(FINANCE(7)/100);
五日:100*SUM(VOL,N)/CAPITAL,COLORFFFFFF,NODRAW;
十日:100*SUM(VOL,N1)/CAPITAL,COLOR00FF00,NODRAW;
百日:100*SUM(VOL,N2)/CAPITAL,COLORRED,NODRAW;
量比:成交/MA(成交,C),COLORFFFFFF,NODRAW;
STICKLINE(成交>0,成交,0,2,0),COLORFF9088;
STICKLINE(換手率>=3 AND 換手率<7, 成交,0,2,0),COLORYELLOW;
STICKLINE(換手率>=7,成交,0,2,0) ,COLORMAGENTA;
STICKLINE(換手率>=1 AND 換手率<3,成交,0,2,0) ,COLORCYAN;
STICKLINE(換手率>=10,成交,0,2,0) ,COLOR0000AA;
M1:MA(成交,5),COLORRED;
M2:MA(成交,10),COLORFFFFFF;
M3:MA(成交,135),COLOR33FF33;
黑馬起飛
roc:(c-ref(c,******))/ref(c,******)*100,colorffffcc;
乖離:(c-ma(c,250))/ma(c,250)*100,color00ff00,nodraw;
n1:=barslast(cross(c,ma(c,250)));
n2:=barslast(cross(ma(c,250),c));
長(zhǎng)線:if(n1<n2,n1+1,0),nodraw;
峰值乖離:hhv(乖離,長(zhǎng)線),nodraw;
長(zhǎng)漲幅:(c-ref(c,長(zhǎng)線))/ref(c,長(zhǎng)線)*100,nodraw;
n3:=barslast(cross(c,ma(c,20)));
n4:=barslast(cross(ma(c,20),c));
短線:if(n3<n4,n3+1,0),nodraw;
短漲幅:(c-ref(c,短線))/ref(c,短線)*100,nodraw;
換手:=vol/capital*100 linethick0;
百換:sum(換手,100) linethick0;
換手跟蹤:=sum(換手,0)-ref(sum(換手,0),短線),colorff937f linethick0;
跟蹤系數(shù):換手跟蹤/短漲幅,color00ff00,nodraw;
bs:=cross(c,ma(c,13)) and 長(zhǎng)線>10;
stickline(bs,0,10,3,0),colorff00ff;
0,colormagenta;
決策參考
var1:=close/ref(llv(low,35),5)< 1;
決策: if(var1,0.5,0), stick,color00ff00;
必賣: if(peakbars(3,15,1)=1,1.7,2),colorffffff,linethick1;
必買(mǎi): if(troughbars(3,15,1)=0 and high>low+0.01,-0.7,-1),
color00ff00 ,linethick1 ;
趨勢(shì): (ema(winner(close),7)-ema(winner(close),35))*5,
colorred,linethick1;
逃頂: ema(close/ref(hhv(close,7),50),1),colorff4242,linethick1 ;
aa:0,colorffffff;
drawicon(cross(趨勢(shì),aa),aa,1);
drawicon(cross(逃頂,趨勢(shì)),逃頂,2);
價(jià)量
ls3:=llv(high,240);
ls4:=100*(close-ls3)/ls3;
ls5:=ref(llv(close,480),1);
ls6:=ref(hhv(close,480),1);
ls7:=100*(close-ls5)/(ls6-ls5);
ls8:=(close-llv(close,981))/(hhv(close,981)-llv(close,981))*100;
ls9:=(close-llv(close,393))/(hhv(close,393)-llv(close,393))*100;
lsa:=(close-llv(low,981))/(hhv(high,981)-llv(low,981))*100;
lsb:=(close-llv(low,393))/(hhv(high,393)-llv(low,393))*100;
lsc1:=ema(100*(close-llv(low,100))/(hhv(high,100)-llv(low,100)),5);
lsc:=lsc1/4;
lsd:=if(lsc>23.6,lsc,0);
lse:=lsc<1;
lsf:=lsd;
ls10:=ls4<ls7 and ls4<0;
ls11:=1;
ls12:=(high+low+close*2)/4*ls11;
ls13:=ema(ls12,21);
ls14:=std(ls12,21);
ls15:=((ls12-ls13)/ls14*100+200)/4*ls11;
ls161:=ema(ls15,******);
ls16:=(ls161-25)*1.56*ls11;
ls171:=ema(ls16,5);
ls17:=ls171*1.22*ls11;
ls181:=ema(ls17,3);
ls18:=ls181*ls11;
ls19:=3*ls17-2*ls18*ls11;
ls1a:=if(cross(ls19,ls17)and cross(ls19,ls18)and cross(ls17,ls18),1,0);
ls1b:=if(cross(ls17,ls19)and cross(ls18,ls19)and cross(ls18,ls17),1,0);
ls1c:=ema(100*(close-llv(low,100))/(hhv(high,100)-llv(low,100)),13)/4;
ls1d1:=ema(close,2);
ls1d2:=ema(close,******);
ls1d:=ls1d1-ls1d2;
ls1e:=ema(ls1d,30);
ls1f:=(ls1d-ls1e)*20;
ls20:=pow(ls1f,3)*0.1+pow(ls1f,2);
ls21:=sqrt(sqrt(low*high*open*close));
ls22:=ema(ls21*0.97,3);
ls23:=(high+low+close)/3;
ls24:=(ls23-ma(ls23,14))/(0.015*avedev(ls23,14));
ls25:=if(ls1f>0.015,ls20,0)/45;
莊拉線:=ls25;
ls261:=ema(close,2);
ls262:=ema(close,150);
ls26:=ls261-ls262;
ls27:=ema(ls26,100);
ls28:=2*(ls26-ls27);
ls29:=pow(ls28,3)*0.1+pow(ls28,1);
ls2a:=sqrt(sqrt(low*high*open*close));
ls2b:=ema(ls2a*0.97,3);
ls2c:=(high+low+close)/3;
ls2d:=(ls2c-ma(ls2c,14))/(0.015*avedev(ls2c,14));
黑馬線:if(ls28>0.1,ls29,0)*5,linethick1,colorffffff;
量?jī)r(jià)線:(close-ma(close,21))/ma(close,21)*100,color00aaff,linethick1;
常數(shù)線:=0;
x1:=ls3,color33ff33,pointdot;
x2:=ls5,colorffffff,pointdot;
x3:=ls6,color00aaff,pointdot;
偏移:xma(h,10),color33ff33;
觀察:ma(h,10),colormagenta;
drawicon(longcross(偏移,觀察,1),l*0.9975,1) ;
drawicon(longcross(觀察,偏移,1),h*1.0025,2) ;
雙向量
VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,3,-1),COLOR00C0C0;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
成交:=VOL,POINTDOT;
主動(dòng)買(mǎi)盤(pán):=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT;
主動(dòng)賣盤(pán):=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLOR00FF00,POINTDOT;
主動(dòng)買(mǎi)萬(wàn):主動(dòng)買(mǎi)盤(pán)/10000,COLORRED,NODRAW;
主動(dòng)賣萬(wàn):主動(dòng)賣盤(pán)/10000,COLORGREEN,NODRAW;
地量:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,VOL)<LLV(IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,VOL),14)*1.001;
天量:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,VOL)/REF(V,1)>=2;
STICKLINE(主動(dòng)買(mǎi)盤(pán)>0,0,VOL,2,1),COLORWHITE;
STICKLINE(主動(dòng)買(mǎi)盤(pán)>V/2,0,V,2,1),COLOR3232FF;
STICKLINE(主動(dòng)買(mǎi)盤(pán)<=V/2,0,V,2,1),COLORFFFF54;
STICKLINE(主動(dòng)買(mǎi)盤(pán)>0,0,主動(dòng)買(mǎi)盤(pán),2,0),COLORRED;
STICKLINE(主動(dòng)賣盤(pán)<0,0,主動(dòng)賣盤(pán),2,0),COLORGREEN;
STICKLINE(天量,0,主動(dòng)買(mǎi)盤(pán),0.5,1),COLORMAGENTA;
STICKLINE(地量>0,0,主動(dòng)買(mǎi)盤(pán),0.5,1),COLORYELLOW;
聯(lián)系客服