Table of Contents

Class FilterRangeBase<TValue, TFilter>

Namespace
ATAS.Indicators
Assembly
ATAS.Indicators.dll

Represents an abstract base class for filters that represent a range of values with custom JSON serialization/deserialization.

public abstract class FilterRangeBase<TValue, TFilter> : Filter<FilterRangeValue<TValue>, TFilter>, IFilterValue, IFilter where TFilter : FilterBase, IFilterValue

Type Parameters

TValue

The type of values in the range.

TFilter

The derived filter class that implements the IFilterValue interface.

Inheritance
object
Filter<FilterRangeValue<TValue>, TFilter>
FilterRangeBase<TValue, TFilter>
Implements
Derived
Inherited Members
Extension Methods

Constructors

FilterRangeBase()

Initializes a new instance of the FilterRangeBase<TValue, TFilter> class with default settings.

protected FilterRangeBase()

FilterRangeBase(bool, bool)

Initializes a new instance of the FilterRangeBase<TValue, TFilter> class with the specified settings.

protected FilterRangeBase(bool enabledVisible, bool asScale = false)

Parameters

enabledVisible bool

A value indicating whether the filter's Enabled property is visible.

asScale bool

A value indicating whether the filter represents a scalar value.

Methods

ValueOnChanging(FilterRangeValue<TValue>?, FilterRangeValue<TValue>?)

Invoked when the value of the filter is changing.

protected override FilterRangeValue<TValue> ValueOnChanging(FilterRangeValue<TValue>? oldValue, FilterRangeValue<TValue>? newValue)

Parameters

oldValue FilterRangeValue<TValue>

The old value of the filter.

newValue FilterRangeValue<TValue>

The new value of the filter.

Returns

FilterRangeValue<TValue>

The new value to be set for the filter.