qdsmsl / 发布
论坛
统计多个持仓单的利润总和与实际有差距是什么情况
double pos_profit_total( string zhushi1, string zhushi2, string zhushi3) { double pos_yingli_zonghe= 0 ; double pos_profit1= 0 ,pos_profit2= 0 ,pos_profit3= 0 ; int total= PositionsTotal (); // 持仓数 //--- 重做所有持仓 for ( int i=total- 1 ; i>= 0 ; i--) { //--- 订单的参数 ulong