[Quantproject-developers] QuantProject/b4_Business/a2_Strategies AccountManager.cs, 1.2, 1.3
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2007-09-23 21:53:23
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a2_Strategies In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv30380/a2_Strategies Modified Files: AccountManager.cs Log Message: In OpenPositions method, some cash is added if the account has no cash and no transaction has been made Index: AccountManager.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a2_Strategies/AccountManager.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** AccountManager.cs 30 Aug 2007 13:34:27 -0000 1.2 --- AccountManager.cs 23 Sep 2007 21:53:20 -0000 1.3 *************** *** 89,93 **** Account account) { ! if(weightedPositions == null || account == null) throw new Exception("Both parameters have to be set to valid objects!"); orders.Clear(); --- 89,95 ---- Account account) { ! if(account.CashAmount == 0.0 && account.Transactions.Count == 0) ! account.AddCash(15000); ! if(weightedPositions == null || account == null) throw new Exception("Both parameters have to be set to valid objects!"); orders.Clear(); |