BaseTwoSetsPortfolioIndicatorTAdd Method (Double, Double) |
Add multiple values 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 public virtual bool Add(
double[] values1,
double[] values2
)
Parameters
- values1
- Type: SystemDouble
Values of first series set to add to indicator. - values2
- Type: SystemDouble
Values of second series set to add to indicator.
Return Value
Type:
Boolean Returns true if and only if the indicator updated its value.
Exceptions Exception | Condition |
---|
InvalidOperationException | Thrown 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