Table of Contents

Class FilterExtensions

Namespace
ATAS.Indicators
Assembly
ATAS.Indicators.dll

Provides extension methods for working with filters.

public static class FilterExtensions
Inheritance
object
FilterExtensions

Methods

Apply<TFilter>(TFilter, TFilter?)

Applies the settings from the specified source filter to the target filter.

Added in ATAS 8.0.15.

public static TFilter Apply<TFilter>(this TFilter filter, TFilter? source) where TFilter : IFilterValue

Parameters

filter TFilter

The target filter to apply the settings to.

source TFilter

The source filter whose settings will be applied to the target filter.

Returns

TFilter

The target filter after applying the settings from the source filter.

Type Parameters

TFilter

The type of the filter to apply the settings to.

SetEnabled(IFilter?, bool)

Sets the Enabled property of the filter to the specified value.

public static void SetEnabled(this IFilter? filter, bool enabled)

Parameters

filter IFilter

The filter whose Enabled property will be set.

enabled bool

true to enable the filter; false to disable it.