标签:
杂谈 |
查看原文:http://www.125808047.com/?p=1966
该函数模块能够简洁的获取最后平仓的一个订单的手数、盈利及其它相关订单信息。
double histype,hisLots, hisProfit;
for(poshis=0; poshis<totalorders; poshis++)
{
chenggong = OrderSelect(poshis,SELECT_BY_POS,MODE_HISTORY);
if(OrderSymbol()==Symbol())
histype=OrderType();
hisProfit=OrderProfit();
hisLots=OrderLots();
}

加载中…