Skip to content

FractalAdaptiveMovingAverage

interface cAlgo.API.Indicators

DesktopCLICloud

The FRAMA (Fractal Adaptive Moving Average) indicator is a type of moving average that adjusts its sensitivity to price movements based on market volatility

Definition

public interface FractalAdaptiveMovingAverage

Namespace: cAlgo.API.Indicators · Group: Indicators · Implements: MovingAverage, StandardIndicator

Examples

private FractalAdaptiveMovingAverage _frama;

protected override void OnStart()
{
    _frama = Indicators.FractalAdaptiveMovingAverage(16);
}

protected override void OnBar()
{
    if (Bars.ClosePrices.Last(1) > _frama.Result.Last(1))
        Print("Close is above FRAMA: {0}", _frama.Result.Last(1));
}
def on_start(self):
    self.frama = api.Indicators.FractalAdaptiveMovingAverage(16)

def on_bar(self):
    if api.Bars.ClosePrices.Last(1) > self.frama.Result.Last(1):
        api.Print(f"Close is above FRAMA: {self.frama.Result.Last(1)}")

Inherited members

From MovingAverage: Result

From StandardIndicator: AddToChart, Symbol, TimeFrame, Bars