量:=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;
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;
今天成交额:=AMOUNT/10000;{股票公式www.fxjgsw.com}
昨天成交额:=REF(今天成交额,1);
图长度像素:=180*0.4;
昨天图长度:=180+图长度像素;
交易分钟数:=if(CURRENTTIME>93000 and CURRENTTIME<150000 and DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,
if(CURRENTTIME<113000,(TIMETOT0(CURRENTTIME)-34200)/60,
if(CURRENTTIME>130000,(TIMETOT0(CURRENTTIME)-39600)/60,120)),240);
预测今天:=今天成交额/交易分钟数*240;
今天图长度:=(预测今天/昨天成交额)*图长度像素+180;
目前成交量:=(今天成交额/昨天成交额)*图长度像素+180;
DRAWTEXTABS(5,20,'昨天金額:'+昨天成交额/1000+'亿'),Color00FFFF,LINETHICK1;
DRAWRECTABS(120,25,昨天图长度,30 ,RGB(0,255,0) ),Color6699FF;
DRAWRECTABS(120,35,目前成交量, 40 ,RGB(200,60,0) ),ColorFFFFFF;
DRAWTEXTABS(5,32,'预计今天:'+预测今天/1000+'亿'),Color2F73FF,LINETHICK1;
DRAWRECTABS(120,35,今天图长度,40 ,0 ),Colorffffff; |