Click or drag to resize

Rsi Constructor (IAverager, IAverager, Boolean)

Creates a new instance of RSI indicator with given method of averaging.

Namespace:  FinAnalysis.TA
Assembly:  FinAnalysis (in FinAnalysis.dll) Version: 2.1.13-cc97e13414b71fde928e8f3a546ac1daf26f295f
Syntax
C#
public Rsi(
	IAverager upAverager,
	IAverager downAverager,
	bool unbiased = false
)

Parameters

upAverager
Type: FinAnalysis.BaseIAverager
Method of averaging for gain.
downAverager
Type: FinAnalysis.BaseIAverager
Method of averaging for loss.
unbiased (Optional)
Type: SystemBoolean
Use unbiased formula that requires one more point for indicator to become stable.
Exceptions
ExceptionCondition
ArgumentExceptionThrown when gainAverage or lossAverage is null.
See Also