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,
	Dictionary<string, double> positionValues
)
Visual Basic
Public Sub UpdateStats ( 
	stats As BarStatistic,
	dateTime As DateTime,
	prices As Dictionary(Of Symbol, Double),
	openPositions As IEnumerable(Of PositionInfo),
	accountInfo As IAccountInfo,
	positionValues As Dictionary(Of String, Double)
)
Visual C++
public:
void UpdateStats(
	BarStatistic^ stats, 
	DateTime dateTime, 
	Dictionary<Symbol^, double>^ prices, 
	IEnumerable<PositionInfo^>^ openPositions, 
	IAccountInfo^ accountInfo, 
	Dictionary<String^, double>^ positionValues
)
F#
member UpdateStats : 
        stats : BarStatistic * 
        dateTime : DateTime * 
        prices : Dictionary<Symbol, float> * 
        openPositions : IEnumerable<PositionInfo> * 
        accountInfo : IAccountInfo * 
        positionValues : Dictionary<string, float> -> unit 

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.
positionValues
Type: System.Collections.Generic..::..Dictionary<(Of <(<'String, Double>)>)>
Dictionary containing the current position values.

See Also