C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 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,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2));
- 买卖比:=主动买盘/主动卖盘;
- 卖盘:=VOL-主动买盘;{买卖盘>60%以上信号}
- 卖盘大:=(卖盘-主动买盘)/卖盘>0.6;
- 买盘大:=(主动买盘-卖盘)/主动买盘>0.6;
- 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);
- 卖量:=VOL-买入量;{买卖盘>60%以上信号}
- 卖量大:=(卖量-买入量)/卖量>0.4;
- 买量大:=(买入量-卖量)/买入量>0.4;
- 买入资金:=买入量*CLOSE/100;
- 卖出资金:=卖出量*CLOSE/100;
- 资金进出:=买入资金-卖出资金;
- 买卖资金比:=买入资金/卖出资金;
- DRAWTEXT(SYSPARAM(2)=BARPOS,CLOSE,
- '■当日买卖量:'+ NUMTOSTR(VOL,2)+'\n'
- +'■当日买量:'+NUMTOSTR(买入量,2 )+'\n'
- +'■当日卖量:'+ NUMTOSTR(卖出量,2)+'\n'
- +'■当日买卖比:'+NUMTOSTR(买卖比,2)+'\n'
- +'■买入资金累计万元:'+NUMTOSTR(买入资金,2)+'\n'
- +'■卖出资金累计万元:'+NUMTOSTR(卖出资金,2)+'\n'
- +'■资金进出万元:'+NUMTOSTR(资金进出,2)+'\n'
- +'■买卖资金比:'+NUMTOSTR(买卖资金比,2)+'\n'
- ),COLORccffcc,ALIGN4;