C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- oo:=IF(CAPITAL=0,5000000,CAPITAL);
- 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));
- 主动买盘:SUM(买盘,1)/oo*100,LINETHICK0,COLORRED;
- 主动卖盘:SUM(卖盘,1)/oo*100,LINETHICK0,COLORGREEN;
- STICKLINE(主动买盘>0,0,主动买盘,3,0),COLORRED;
- STICKLINE(主动卖盘<0,0,主动卖盘,3,0),COLORGREEN;