求每个订单的赢利点数如何求?

 

OrderProfit() 这个是 获利金额,

哪个函数是 点数的?

如果没的话,那么点数 = ?*?/ ?

???

 

大概是 OrderProfit()/ ( MarketInfo(Symbol(), MODE_TICKVALUE) * OrderLots() )

你试试吧

 
msn1315 写道 >>

OrderProfit() 这个是 获利金额,

哪个函数是 点数的?

如果没的话,那么点数 = ?*?/ ?

???

if( OrderType()==OP_BUY ) { ProfitPoint = OrderClosePrice()-OrderOpenPrice(); }
if( OrderType()==OP_SELL ) { ProfitPoint = OrderOpenPrice()-OrderClosePrice(); }

 
BBL 写道 >>

if( OrderType()==OP_BUY ) { ProfitPoint = OrderClosePrice()-OrderOpenPrice(); }
if( OrderType()==OP_SELL ) { ProfitPoint = OrderOpenPrice()-OrderClosePrice(); }

谢谢BBL,您这个是对的

原因: