Click or drag to resize

Portfolio Methods

The Portfolio type exposes the following members.

Methods
  NameDescription
Public methodClone
Create a copy of Portfolio.
Public methodCopyTo(Portfolio)
To copy the current portfolio fields to the destination.
Public methodCopyTo(Position)
To copy fields of the current position to destination.
(Inherited from Position.)
Public methodStatic memberCreateSimulator
Create virtual portfolio for simulation.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodNotifyChanged (Inherited from NotifiableObject.)
Protected methodNotifyChanging (Inherited from NotifiableObject.)
Public methodNotifyPropertyChanged (Inherited from NotifiableObject.)
Public methodToString
Returns a string that represents the current object.
(Overrides PositionToString.)
Top
Extension Methods
  NameDescription
Public Extension MethodApplyChanges(PositionChangeMessage)Overloaded.
Apply changes to the position object.
(Defined by TraderHelper.)
Public Extension MethodApplyChanges(PositionChangeMessage, IExchangeInfoProvider)Overloaded.
Apply changes to the portfolio object.
(Defined by TraderHelper.)
Public Extension MethodChanged
To create a rule for the position change event.
(Defined by MarketRuleHelper.)
Public Extension MethodGetDirection
To get the order direction for the position.
(Defined by TraderHelper.)
Public Extension MethodGetPnL
To calculate profit-loss based on the portfolio.
(Defined by TraderHelper.)
Public Extension MethodGetUniqueId
Get portfolio identifier.
(Defined by TraderHelper.)
Public Extension MethodIsSame
Determines the specified portfolio is required.
(Defined by TraderHelper.)
Public Extension MethodToChangeMessageOverloaded.
To convert the portfolio into message.
(Defined by MessageConverterHelper.)
Public Extension MethodToChangeMessage(Int64)Overloaded.
To convert the position into message.
(Defined by MessageConverterHelper.)
Public Extension MethodToLookupCriteria
Convert Portfolio to PortfolioLookupMessage value.
(Defined by MessageConverterHelper.)
Public Extension MethodToMessage
To convert the portfolio into message.
(Defined by MessageConverterHelper.)
Public Extension MethodToPositionManager
Convert the position object to the type IPositionManager.
(Defined by TraderHelper.)
Public Extension MethodWhenChanged
To create a rule for the event of change portfolio .
(Defined by MarketRuleHelper.)
Public Extension MethodWhenLess
To create a rule for the event of position decrease below the specific level.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenMoneyLess
To create a rule for the event of money decrease in portfolio below the specific level.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenMoneyMore
To create a rule for the event of money increase in portfolio above the specific level.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenMore
To create a rule for the event of position increase above the specific level.
(Defined by MarketRuleHelper.)
Top
See Also