特点:主力流人柱为紅,主力流出柱为緑。
{VOL,VOLSTICK;}
INPUT:M1(5,1,10),M2(10,5,30),M3(20,10,60);
成交量:VOL,PRECIS2,LINETHICK0;
成交额:AMOUNT/100000000,PRECIS2,LINETHICK0;
五日均量:MA(VOL,M1),PRECIS2,LINETHICK1;
十日均量:MA(VOL,M2),PRECIS2,LINETHICK1;
廿日均量:MA(VOL,M3),PRECIS2,LINETHICK1;
主净额:="各资金流.主力净额";
STICKLINE(主净额>0,成交量,0,7.5,0),ColorA200A2;{玫红柱1}
STICKLINE(主净额>0,成交量,0,7,0),ColorB700B7;{玫红柱2}
STICKLINE(主净额>0,成交量,0,6,0),ColorB700B7;{玫红柱2}
STICKLINE(主净额>0,成交量,0,5,0),ColorE800E8;{玫红柱4}
STICKLINE(主净额>0,成交量,0,4,0),ColorFF00FF;{玫红柱5}
STICKLINE(主净额>0,成交量,0,2,0),ColorFF60FF;{玫红柱6}
STICKLINE(主净额>0,成交量,0,0.5,0),ColorFFD2FF;{玫红柱7}
STICKLINE(主净额<=0,成交量,0,7.5,0),ColorCA6500;{蓝色柱主力的净卖}
STICKLINE(主净额<=0,成交量,0,7,0),ColorE17100;{蓝色框2}
STICKLINE(主净额<=0,成交量,0,6,0),ColorF27900;{蓝色框3}
STICKLINE(主净额<=0,成交量,0,5,0),ColorFF850B;{蓝色框4}
STICKLINE(主净额<=0,成交量,0,4,0),ColorFF9326;{蓝色框5}
STICKLINE(主净额<=0,成交量,0,2,0),ColorFFA042;{蓝色框6}
STICKLINE(主净额<=0,成交量,0,0.5,0),colorFFFF00;{蓝色框7}
今天成交额:=AMOUNT/10000;
昨天成交额:=REF(今天成交额,1);
{显示文字}
DRAWTEXTABS(0,0,'昨天金额:'+NUMTOSTRN(昨天成交额/10000,2)+'亿'),ColorF5FF00,LINETHICK1;
DRAWTEXTABS(0,14,'今天金额'+':'+NUMTOSTRN(今天成交额/10000,2)+'亿'),ColorF5FF00,LINETHICK1;