Click or drag to resize

BaseBarPortfolioIndicatorTAdd Method (Double, Double, Double, Double, Double, DateTime)

Add multiple bar data (OHLCV for all 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(
	double[] opens,
	double[] highs,
	double[] lows,
	double[] closes,
	double[] volumes,
	DateTime time
)

Parameters

opens
Type: SystemDouble
Open prices of the current bars for all series.
highs
Type: SystemDouble
Highest prices of the current bars for all series.
lows
Type: SystemDouble
Lowest prices of the current bars for all series.
closes
Type: SystemDouble
Close prices of the current bars for all series.
volumes
Type: SystemDouble
Market volumes on current bars for all series.
time
Type: SystemDateTime
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