[Quantproject-developers] QuantProject/b4_Business/a1_Financial/a2_Accounting Position.cs, 1.2, 1.
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2006-07-30 13:57:10
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv16245/b4_Business/a1_Financial/a2_Accounting Modified Files: Position.cs Log Message: - the IsLong property has been added - the IsShort propery has been added Index: Position.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/Position.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Position.cs 15 Oct 2005 18:19:22 -0000 1.2 --- Position.cs 30 Jul 2006 13:57:06 -0000 1.3 *************** *** 64,67 **** --- 64,75 ---- } } + public bool IsLong + { + get { return ( this.Quantity >= 0 ); } + } + public bool IsShort + { + get { return ( !this.IsLong ); } + } public Position( Instrument instrument , long quantity ) { |