大智慧买卖解盘指标公式

量5:MA(vol,5),colorred;

量10:MA(VOL,10);

VAR1:=VOL/((HIGH-LOW)*2-Abs(CLOSE-OPEN));

成交:VOL,ColorCD52FF,linethick0;

主动买盘:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),Color0000FF,stICK;

主动卖盘:IF(CLOSE>OPEN,VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,VAR1*(HIGH-LOW),VOL/2)),Color00E521,STICK;

买卖比:主动买盘/主动卖盘;

WJ:=(HIGH+LOW+CLOSE)/3;

VD1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));

VD2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-WJ);

VD3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);

VD4:=IF(HIGH=LOW,1,WJ-MIN(CLOSE,OPEN));

VD5:=VOL/IF(HIGH=LOW,4,HIGH-LOW);

VD6:=(VD1*VD5);

VD7:=(VD2*VD5);

VD8:=(VD3*VD5);

VD9:=(VD4*VD5);

买入量:=(VD9+VD8);

卖出量:=(VD6+VD7);

买入资金:=买入量*close/100;

卖出资金:=卖出量*close/100;

资金进出:=买入资金-卖出资金;

买卖资金比:=买入资金/卖出资金;

挂单买盘:=MA(主动买盘,3);

挂单卖盘:=(MA(主动卖盘,3));

STICKLINE((主动买盘 > 0),0,主动买盘,8,0),color0000FF;

STICKLINE((主动买盘 > 0),0,主动买盘,7.8,0),color0018FF;

STICKLINE((主动买盘 > 0),0,主动买盘,7.5,0),color001BFF;

STICKLINE((主动买盘 > 0),0,主动买盘,7.3,0),color0022FF;

STICKLINE((主动买盘 > 0),0,主动买盘,7,0),color0035FF;

STICKLINE((主动买盘 > 0),0,主动买盘,6.8,0),color0041FF;

STICKLINE((主动买盘 > 0),0,主动买盘,6.5,0),color0050FF;

STICKLINE((主动买盘> 0),0,主动买盘,6.3,0),color0059FF;

STICKLINE((主动买盘 > 0),0,主动买盘,6,0),color0062FF;

STICKLINE((主动买盘 > 0),0,主动买盘,5.7,0),color006CFF;

STICKLINE((主动买盘> 0),0,主动买盘,5.5,0),color007AFF;

STICKLINE((主动买盘 > 0),0,主动买盘,5.3,0),color0080FF;

STICKLINE((主动买盘 > 0),0,主动买盘,5,0),color0089FF;

STICKLINE((主动买盘 > 0),0,主动买盘,4.5,0),color0095FF;

STICKLINE((主动买盘 > 0),0,主动买盘,3.5,0),color009CFF;

STICKLINE((主动买盘 > 0),0,主动买盘,3,0),color00ABFF;

STICKLINE((主动买盘> 0),0,主动买盘,2.5,0),color00C0FF;

STICKLINE((主动买盘 > 0),0,主动买盘,1.5,0),color00D1FF;

STICKLINE((主动买盘> 0),0,主动买盘,1,0),color00EAFF;

STICKLINE((主动买盘 > 0),0,主动买盘,0.7,0),color00FFFF;

STICKLINE((主动卖盘 > 0),0,主动卖盘,8,0),color006800;

STICKLINE((主动卖盘 > 0),0,主动卖盘,7.8,0),color007F00;

STICKLINE((主动卖盘 > 0),0,主动卖盘,7,5),color008B00;

STICKLINE((主动卖盘 > 0),0,主动卖盘,7,3),color008B00;

STICKLINE((主动卖盘> 0),0,主动卖盘,7,0),color009000;

STICKLINE((主动卖盘 > 0),0,主动卖盘,6.8,0),color009500;

STICKLINE((主动卖盘> 0),0,主动卖盘,6.5,0),color009C00;

STICKLINE((主动卖盘> 0),0,主动卖盘,6.3,0),color00A300;

STICKLINE((主动卖盘 > 0),0,主动卖盘,6,0),color00AB00;

STICKLINE((主动卖盘 > 0),0,主动卖盘,5.7,0),color00AF00;

STICKLINE((主动卖盘 > 0),0,主动卖盘,5.5,0),color00B900;

STICKLINE((主动卖盘 > 0),0,主动卖盘,5.3,0),color00C000;

STICKLINE((主动卖盘 > 0),0,主动卖盘,5,0),color00C100;

STICKLINE((主动卖盘 > 0),0,主动卖盘,4.5,0),color00CA00;

STICKLINE((主动卖盘> 0),0,主动卖盘,3.5,0),color00D300;

STICKLINE((主动卖盘> 0),0,主动卖盘,3,0),color00DB00;

STICKLINE((主动卖盘> 0),0,主动卖盘,2.5,0),color00EA00;

STICKLINE((主动卖盘> 0),0,主动卖盘,1.5,0),color00FF00;

DRAWTEXTABS(1,1,'【买卖盘解量(手)】');

DRAWTEXTABS(1,30,'┃当日买卖量='+NUMTOSTR(VOL)),ColorFF00FF;

DRAWTEXTABS(1,60,'┃当日主动买量='+NUMTOSTR(主动买盘)),Color00ff00;

DRAWTEXTABS(1,90,'┃当日主动卖量='+NUMTOSTR(主动卖盘)),Coloryellow;

DRAWTEXTABS(1,120,'┃当日买卖比='+NUMTOSTR(买卖比)),ColorFF00FF;

DRAWTEXTABS(250,30,'┃买入资金累计万元: '+NUMTOSTR(买入资金)),Colorred,LINETHICK1;

DRAWTEXTABS(250,60,'┃卖出资金累计万元: '+NUMTOSTR(卖出资金)),Color00ff00,LINETHICK1;

DRAWTEXTABS(250,90,'┃资金进出万元: '+NUMTOSTR(资金进出)),Coloryellow,LINETHICK1;

DRAWTEXTABS(250,120,'┃买卖资金比: '+NUMTOSTR(买卖资金比)),Coloryellow,LINETHICK1;

DRAWTEXTABS(1,150,'┃当日挂单买盘: '+NUMTOSTR(挂单买盘)),Colorred,LINETHICK1;

DRAWTEXTABS(250,500,'┃当日挂单卖盘: '+NUMTOSTR(挂单卖盘)),Color00ff00,LINETHICK1;