Click or drag to resize

BaseTickIndicatorTAdd Method (Double, Double, DateTime)

Add data (trade price, volume 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 trade,
	double volume,
	DateTime time
)

Parameters

trade
Type: SystemDouble
Price of the current tick.
volume
Type: SystemDouble
Volume on the current tick.
time
Type: SystemDateTime
Current date time.

Return Value

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

Implements

ITickIndicatorAdd(Double, Double, DateTime)
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