UID82987
积分166
学分
推广 个
预报后涨停 支
阅读权限20
在线时间 小时
注册时间2010-9-26
最后登录1970-1-1
|
大智慧成交量源码
{DRAWGBKLAST(DATE>900101,STRIP(RGB(5,5,95),RGB(0,35,0),0));}
量:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买量:=IF(CLOSE>OPEN,量*(HIGH-LOW),IF(CLOSE<OPEN,量*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
卖量:=(IF(CLOSE>OPEN,0-量*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-量*(HIGH-LOW),0-VOL/2)))*-1;
总量:买量+卖量,LINETHICK0;
净量:买量-卖量,LINETHICK0;
五日净量:SUM(净量,5),LINETHICK0;
十日净量:SUM(净量,10),LINETHICK0;
二十日净量:SUM(净量,20),LINETHICK0;
五十日净量:SUM(净量,50),LINETHICK0;
MA5:MA(VOL,5);
MA10:MA(VOL,10);
MA20:MA(VOL,20);
MAA:=MA( CLOSE ,2) ;
STICKLINE(c>MAA,总量,1,9,1 ),COLOR00ffff;
STICKLINE(c<MAA,总量,1,9,1 ),COLORff00ff;
STICKLINE(净量<0,1,总量,9,1),COLORffff00;
STICKLINE(c<MAA and 净量>0,净量,1,9,1 ),COLOR0000ff;
STICKLINE(V>=2*REF(V,1),1,总量,9,1),COLOR0000ff;
STICKLINE(总量>1,总量,0,6,0),COLORff3300;
STICKLINE(总量>1,总量,0,4,0),COLORff7700;
STICKLINE(总量>1,总量,0,2,0),COLORffaa00;
STICKLINE(总量>1,总量,0,1,0),COLORffff00;
STICKLINE(买量>0,0,买量,6,0),COLOR000099;
STICKLINE(买量>0,0,买量,4,0),COLOR0000aa;
STICKLINE(买量>0,0,买量,2,0),COLOR0000ff;
STICKLINE(买量>0,0,买量,1,0),COLORcc00ff;
STICKLINE(净量>0,0,净量,6,0),COLOR0033ff;
STICKLINE(净量>0,0,净量,4,0),COLOR0077ff;
STICKLINE(净量>0,0,净量,2,0),COLOR00bbff;
STICKLINE(净量>0,0,净量,1,0),COLOR00ffff;
STICKLINE(净量<0,1,净量,9,1),COLORffff00;
STICKLINE(净量<0,0,净量,7,0),COLOR005500;
STICKLINE(净量<0,0,净量,5,0),COLOR009900;
STICKLINE(净量<0,0,净量,3,0),COLOR00bb00;
STICKLINE(净量<0,0,净量,1,0),COLOR00ff00;
STICKLINE(c<MAA and 净量>0,净量,0,7,0 ),COLOR777777;
STICKLINE(c<MAA and 净量>0,净量,0,5,0 ),COLOR999999;
STICKLINE(c<MAA and 净量>0,净量,0,3,0 ),COLORbbbbbb;
STICKLINE(c<MAA and 净量>0,净量,0,1,0 ),COLORffffff; |
|