大智慧买卖盘解副图指标
-
相关简介:大智慧买卖盘解副图指标 源码 AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 主动买盘:=IF(CLOSEOPEN,AA*(HIGH-LOW),IF(CLOSEOPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)); 主动卖盘:=IF(CLOSEOPEN,AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSEOPEN,AA*(HIGH-LOW),VOL/2)); 买卖比:=主动买盘/主动卖盘; WJ:=(HIGH+L
-
文章来源:股海网作者:股海网发布时间:2016-05-20浏览次数:
大智慧买卖盘解副图指标
源码
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买盘:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
主动卖盘:=IF(CLOSE>OPEN,AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,AA*(HIGH-LOW),VOL/2));
买卖比:=主动买盘/主动卖盘;
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));
DRAWTEXTABS(20,1,'【买卖盘解量(手)】');
DRAWTEXTABS(-3,20,'┃当日买卖量='+VOL),ColorFF00FF;
DRAWTEXTABS(-3,40,'┃当日主动买量='+主动买盘),Color00ff00;
DRAWTEXTABS(-3,60,'┃当日主动卖量='+主动卖盘),Coloryellow;
DRAWTEXTABS(-3,80,'┃当日买卖比='+买卖比),ColorFF00FF;
DRAWTEXTABS(-3,100,'┃买入资金累计万元: '+买入资金),Colorred,LINETHICK1;
DRAWTEXTABS(-3,120,'┃卖出资金累计万元: '+卖出资金),Color00ff00,LINETHICK1;
DRAWTEXTABS(-3,180,'┃资金进出万元: '+资金进出),Coloryellow,LINETHICK1;
DRAWTEXTABS(-3,200,'┃买卖资金比: '+买卖资金比),Coloryellow,LINETHICK1;
DRAWTEXTABS(-3,140,'┃当日挂单买盘: '+挂单买盘),Colorred,LINETHICK1;
DRAWTEXTABS(-3,160,'┃当日挂单卖盘: '+挂单卖盘),Color00ff00,LINETHICK1;
DRAWRECTREL(-10,0,230,1035,RGB(1,0,0));