Table of Contents

Class FractalAdaptiveMovingAverage

Namespace
FinanceSharp.Indicators
Assembly
FinanceSharp.dll

The Fractal Adaptive Moving Average (FRAMA) by John Ehlers

public class FractalAdaptiveMovingAverage : BarIndicator, IIndicator, IUpdatable
Inheritance
FractalAdaptiveMovingAverage
Implements
Inherited Members
Extension Methods

Constructors

FractalAdaptiveMovingAverage(int)

Initializes a new instance of the average class

public FractalAdaptiveMovingAverage(int n)

Parameters

n int

The window period (must be even). Example value: 16

FractalAdaptiveMovingAverage(int, int)

Initializes a new instance of the average class

public FractalAdaptiveMovingAverage(int n, int longPeriod)

Parameters

n int

The window period (must be even). Example value: 16

longPeriod int

The average period. Example value: 198

FractalAdaptiveMovingAverage(string, int, int)

Initializes a new instance of the average class

public FractalAdaptiveMovingAverage(string name, int n, int longPeriod)

Parameters

name string

The name of the indicator instance

n int

The window period (must be even). Example value: 16

longPeriod int

The average period. Example value: 198

Properties

IsReady

Returns whether the indicator will return valid results

public override bool IsReady { get; }

Property Value

bool

WarmUpPeriod

Required period, in data points, for the indicator to be ready and fully initialized.

public override int WarmUpPeriod { get; }

Property Value

int

Methods

Forward(long, DoubleArray)

Computes the average value

protected override DoubleArray Forward(long time, DoubleArray input)

Parameters

time long
input DoubleArray

The data for the calculation

Returns

DoubleArray

The average value

Reset()

Resets the average to its initial state

public override void Reset()