[Quantproject-developers] QuantProject/b4_Business/a1_Financial/a2_Accounting Account.cs,1.16,1.17
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2005-02-20 00:03:11
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3321/b4_Business/a1_Financial/a2_Accounting Modified Files: Account.cs Log Message: Fixed bug in the ClosePosition method (now ok for short orders) Index: Account.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/Account.cs,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** Account.cs 13 Feb 2005 21:12:21 -0000 1.16 --- Account.cs 20 Feb 2005 00:03:03 -0000 1.17 *************** *** 325,329 **** { OrderType orderType = closePosition_getOrderType( position ); ! Order order = new Order( orderType , position.Instrument , position.Quantity ); this.orderExecutor.Execute( order ); } --- 325,329 ---- { OrderType orderType = closePosition_getOrderType( position ); ! Order order = new Order( orderType , position.Instrument , Math.Abs( position.Quantity ) ); this.orderExecutor.Execute( order ); } |