N:=5; M:=13; N日內(nèi)凈流入:SUM(DDX,N)*3; 萬手:=VOL/10000,LINETHICK0; AA:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL); 預(yù)測:=AA/10000; BB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 主動買:=IF(CLOSE>OPEN,BB*(HIGH-LOW),IF(CLOSE<OPEN,BB*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)); 主買:主動買/10000,COLORRED; 主動賣:=IF(CLOSE>OPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-BB*(HIGH-LOW),0-VOL/2)); 主賣:-主動賣/10000,COLORGREEN; 差額:=(主動買+主動賣)/10000;
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); 買盤:=(V9+V8); 賣盤:=(V6+V7); 買賣差:=買盤-賣盤; DDX:=買賣差; DX:=MA(買賣差,5)*20; DDX1:=SMA(DX,3,1),COLORFFFFFF; DDX2:=SMA(DDX1,3,1),COLOR00FFFF; DDX3:=(5*DDX2+4*REF(DDX2,1)+3*REF(DDX2,2)+2*REF(DDX2,3)+REF(DDX2,4))/15; 預(yù)警:DDX>0 AND MA(V,5)>MA(MA(V,5),5) AND CROSS(DDX1,DDX2),LINETHICK; 天:=COUNT(DDX>0,5),COLORRED; 五日:=MA(V,5)COLORLIGRAY,LINETHICK2; 十日:=MA(V,10)COLORCYAN,LINETHICK2; 二十日:=MA(V,20),COLORRED,LINETHICK2; {三十日:MA(V,30)*1.2,COLORLIBLUE;} {50_DDX} 流入:=IF(N日內(nèi)凈流入>REF(N日內(nèi)凈流入,1),N日內(nèi)凈流入,DRAWNULL); DRAWBAND(N日內(nèi)凈流入,RGB(100,100,100),0,RGB(0,100,150)); {波段轉(zhuǎn)向}{5天3%} DLX1:=SMA(DX,3,1),LINETHICK,COLORWHITE; RSV:=((C-LLV(L,6))/(HHV(H,6)-LLV(L,6)))*100; K:=POW(SMA(RSV,2,1),5)/POW(10,8); D:=POW(SMA(RSV,2,1),5)/POW(10,10); J:=(K+ D)/2;
RSI1:=N日內(nèi)凈流入; AAZ:=REF(RSI1,N)=HHV(RSI1,2*N+1);
{STICKLINE(DDX<0,0,DDX,4,0),COLOR006600;} STICKLINE(DDX<0,0,DDX,3,0),COLOR009900; STICKLINE(DDX<0,0,DDX,1.5,0),COLOR00CC00; STICKLINE(DDX<0,0,DDX,0,0),COLOR66CCFF; STICKLINE(DDX>0,0,DDX,3,0),{COLOR0000CC}COLORYELLOW; STICKLINE(DDX>0,0,DDX,1.5,0),COLORYELLOW;{COLOR0000FF}; STICKLINE(DDX>0,0,DDX,0,0),COLORCC66FF;
N8:=3;
K1:=主動買/10000,COLORRED;
K2:=-主動賣/10000,COLORGREEN;
DT:=VOL*K1/(K1+K2); KT:=(VOL-DT); 買量:=SUM(DT,N8),COLOR0000FF; 賣量:=-SUM(KT,N8),COLORFFFF00; 進(jìn)出量:=買量+賣量,POINTDOT,COLOR00FFFF; D3:=100*SUM(DT,3)/CAPITAL; K3:=100*SUM(KT,3)/CAPITAL; J3:=D3-K3; D6:=100*SUM(DT,6)/CAPITAL; K6:=100*SUM(KT,6)/CAPITAL; J6:=D6-K6; D9:=100*SUM(DT,9)/CAPITAL; K9:=100*SUM(KT,9)/CAPITAL; J9:=D9-K9; 畫:=CONST(FINDLOW(賣量,0,8,1)); DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,66,44),ABS(畫),DRAWNULL), RGB(50,50,50),畫,DRAWNULL); BL3:=ABS(畫)/CONST(FINDHIGH(MAX(D3,K3),0,65,1)); BL6:=ABS(畫)/CONST(FINDHIGH(MAX(D6,K6),0,65,1)); BL9:=ABS(畫)/CONST(FINDHIGH(MAX(D9,K9),0,65,1)); D3B:=(D3*BL3); K3B:=(K3*BL3); J3B:=(ABS(J3)*BL3); D6B:=(D6*BL6); K6B:=(K6*BL6); J6B:=(ABS(J6)*BL6); D9B:=(D9*BL9); K9B:=(K9*BL9); J9B:=(ABS(J9)*BL9);
{畫直方圖}
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,63,62),CONST(D3B),DRAWNULL),RGB(150,0,0),0,DRAWNULL); DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,62,61),CONST(K3B),DRAWNULL),RGB(0,150,150),0,DRAWNULL); DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,61,60),CONST(J3B),DRAWNULL),RGB(150,150,0),0,DRAWNULL); DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,56,55),CONST(D6B),DRAWNULL),RGB(150,0,0),0,DRAWNULL); DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,55,54),CONST(K6B),DRAWNULL),RGB(0,150,150),0,DRAWNULL); DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,54,53),CONST(J6B),DRAWNULL),RGB(150,150,0),0,DRAWNULL); DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,49,48),CONST(D9B),DRAWNULL),RGB(150,0,0),0,DRAWNULL); DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,48,47),CONST(K9B),DRAWNULL),RGB(0,150,150),0,DRAWNULL); DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,47,46),CONST(J9B),DRAWNULL),RGB(150,150,0),0,DRAWNULL);
DRAWTEXT(CURRBARSCOUNT=60,0,'買量'), COLORDDFFFF; DRAWTEXT(CURRBARSCOUNT=55,0,'賣量'), COLORDDFFFF; DRAWTEXT(CURRBARSCOUNT=50,0,'進(jìn)出量'), COLORDDFFFF;
|