C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- {通吃率}
- INPUT:N(5,1,100);
- 买入:=BIGORDER(1,2)*AMOUNT;
- 卖出:=BIGORDER(2,2)*AMOUNT;
- 净额:=买入-卖出;
- Ν日通吃率:SUM(净额,N)/SUM(amount,N)*100;
- 一日通吃率:净额/amount*100;
- 三日通吃率:SUM(净额,3)/SUM(amount,3)*100;
- 五日通吃率:SUM(净额,5)/SUM(amount,5)*100;
- 十日通吃率:SUM(净额,10)/SUM(amount,10)*100;
- 二十日通吃率:SUM(净额,20)/SUM(amount,20)*100;
- 六十日通吃率:SUM(净额,60)/SUM(amount,60)*100;