Click or drag to resize

BaseBarMultipleValueIndicator<T>.Add Method (Double, Double, Double, Double, Double)

Add bar data (OHLCV) to indicator. Note: Do Not use methods with and without DateTime for same instance. Also do not call this method for indicators which need datetime for calculation it's value. 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 open,
	double high,
	double low,
	double close,
	double volume
)

Parameters

open
Type: System.Double
Open price of the current bar.
high
Type: System.Double
Highest price of the current bar.
low
Type: System.Double
Lowest price of the current bar.
close
Type: System.Double
Close price of the current bar.
volume
Type: System.Double
Market volume on current bar.

Return Value

Type: Boolean
Returns true if and only if the indicator updated its value.

Implements

IBarTradeSignal.Add(Double, Double, Double, Double, Double)
Exceptions
ExceptionCondition
InvalidOperationExceptionThrown when you have to specify DateTime. Please be careful, do not use methods with and without DateTime for same instance. Also this particular indicator, created with this particular parameters may need DateTime for calculation.
See Also