Click or drag to resize

BaseBarPortfolioIndicator<T>.Add Method (Int32, Double, Double, Double, Double, Double, DateTime)

Add single bar data (OHLCV for specific series and DateTime) to indicator. Note: Do Not use methods with and without DateTime for same instance. Note: if you specify time = DefaultTime then method ignore this parameter and call add with out time. To determine do you need to specify DateTime, see IndicatorNeedDateTime flag.

Namespace:  FinAnalysis.Base
Assembly:  FinAnalysis.Base (in FinAnalysis.Base.dll) Version: 2.1.13-cc97e13414b71fde928e8f3a546ac1daf26f295f
Syntax
C#
public virtual bool Add(
	int index,
	double open,
	double high,
	double low,
	double close,
	double volume,
	DateTime time
)

Parameters

index
Type: System.Int32
Index of series for which data specified.
open
Type: System.Double
Open price of the current bar for specific series.
high
Type: System.Double
Highest price of the current bar for specific series.
low
Type: System.Double
Lowest price of the current bar for specific series.
close
Type: System.Double
Close price of the current bar for specific series.
volume
Type: System.Double
Market volume on current bar for specific series.
time
Type: System.DateTime
Current date time.

Return Value

Type: Boolean
Returns true if and only if the indicator updated its value.
Exceptions
ExceptionCondition
InvalidOperationExceptionThrown when you don't have to specify DateTime. Please be careful, do not use methods with and without DateTime for same instance.
See Also