[Quantproject-developers] QuantProject/b4_Business/a1_Financial/a2_Accounting/Commissions IBCommis
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2008-01-13 23:30:21
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/Commissions In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv27421 Modified Files: IBCommission.cs Log Message: Fixed bug in IBCommission: commission fees have been updated. Index: IBCommission.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/Commissions/IBCommission.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** IBCommission.cs 15 Feb 2005 19:09:01 -0000 1.3 --- IBCommission.cs 13 Jan 2008 23:30:14 -0000 1.4 *************** *** 41,46 **** else { ! returnValue = this.transaction.Quantity * 0.01; ! returnValue = Math.Max( returnValue , 1.0 ); } return returnValue; --- 41,49 ---- else { ! returnValue = this.transaction.Quantity * 0.005; ! //USD 0.005 per share ! returnValue = Math.Min( Math.Max( returnValue , 1.0 ), ! 0.005 * this.transaction.Amount); ! //0.5% of trade value plus exchange, ECN, and specialist fees } return returnValue; |