Topview@RL2:主动买,主动卖配合MACD做波段更好(副图,源码,附图)介绍
Topview@RL2:主动买,主动卖配合MACD做波段更好(副图,源码,附图)
{逐笔资金}
input: M(10,1,100,1);0;
DRAWGBK(C,Strip(RGB(0,0,80),RGB(0,20,0),0));
DRAWTEXTREL(200,10,'【Topview@RL2:主动买,主动卖(总逐笔买卖成交量)】'),COLORYELLOW,LINETHICK4;
主动买:"Topview@RL2"(2,10)/10000,Linethick0;
主动卖:"Topview@RL2"(2,20)/10000,Linethick0;
主动买M:WMA(主动买,M),Precis2,ColorRed,LAYER0;
主动卖M:WMA(主动卖,M),Precis2,ColorGreen,Linethick1,LAYER0;
FILLRGN(主动买M,主动卖M,(主动买M-主动卖M)>0,RGB(100,0,0),(主动买M-主动卖M)<0,RGB(0,100,0));
净买:(主动买-主动卖),Color00FFFF,Linethick0;
DDZB:=净买;
STICKLINE(ddZB>0,ddZB,0,8,0),Color000011;
STICKLINE(ddZB>0,ddZB,0,7,0),Color000033;
STICKLINE(ddZB>0,ddZB,0,6,0),Color000055;
STICKLINE(ddZB>0,ddZB,0,5,0),Color000077;
STICKLINE(ddZB>0,ddZB,0,4,0),Color000099;
STICKLINE(ddZB>0,ddZB,0,3,0),Color0000BB;
STICKLINE(ddZB>0,ddZB,0,2,0),Color0000DD;
STICKLINE(ddZB>0,ddZB,0,1,0),Color0000FF;
STICKLINE(ddZB<0,ddZB,0,8,0),Color001100;
STICKLINE(ddZB<0,ddZB,0,7,0),Color003300;
STICKLINE(ddZB<0,ddZB,0,6,0),Color005500;
STICKLINE(ddZB<0,ddZB,0,5,0),Color007700;
STICKLINE(ddZB<0,ddZB,0,4,0),Color009900;
STICKLINE(ddZB<0,ddZB,0,3,0),Color00BB00;
STICKLINE(ddZB<0,ddZB,0,2,0),Color00DD00;
STICKLINE(ddZB<0,ddZB,0,1,0),Color00FF00;
DIFF :EMA( EMA(CLOSE,12) - EMA(CLOSE,26),3),COLOR0000FF,LINETHICK0;
DEA : EMA(DIFF,9),COLOR00FF00,LINETHICK0;
MACD : 2*(DIFF-DEA),LINETHICK0;
DRAWGBK(DIFF>DEA,STRIP(RGB(0,0,255),RGB(140,0,80),0)),LAYER0;
VERTLINE(CROSS(主动卖M,主动买M) AND MACD>0 ,2),LAYER0,COLOR00FFff; {加一条线}
gd17345