Calculates modified position statistics after a new bar.

Namespace:  RightEdge.Common
Assembly:  Common (in Common.dll) Version: 2010.1.0.0 (2010.1.0.0)

Syntax

C#
public void UpdateStats(
	BarStatistic stats,
	DateTime dateTime,
	Dictionary<Symbol, double> prices,
	IEnumerable<PositionInfo> openPositions,
	IAccountInfo accountInfo
)
Visual Basic (Declaration)
Public Sub UpdateStats ( _
	stats As BarStatistic, _
	dateTime As DateTime, _
	prices As Dictionary(Of Symbol, Double), _
	openPositions As IEnumerable(Of PositionInfo), _
	accountInfo As IAccountInfo _
)
Visual C++
public:
void UpdateStats(
	BarStatistic^ stats, 
	DateTime dateTime, 
	Dictionary<Symbol^, double>^ prices, 
	IEnumerable<PositionInfo^>^ openPositions, 
	IAccountInfo^ accountInfo
)

Parameters

stats
Type: RightEdge.Common..::.BarStatistic
The BarStatistic object.
dateTime
Type: System..::.DateTime
The date and time of this statistic update.
prices
Type: System.Collections.Generic..::.Dictionary<(Of <(Symbol, Double>)>)
The current prices for each symbol.
openPositions
Type: System.Collections.Generic..::.IEnumerable<(Of <(PositionInfo>)>)
The currently open positions.
accountInfo
Type: RightEdge.Common..::.IAccountInfo
The IAccountInfo object associated with this update.

See Also