Skip to content

IIndicatorsAccessor.FractalAdaptiveMovingAverage

method · IIndicatorsAccessor · cAlgo.API.Internals

DesktopCLICloud

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

Overloads

FractalAdaptiveMovingAverage(int periods)

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

FractalAdaptiveMovingAverage FractalAdaptiveMovingAverage(int periods)
api.Indicators.FractalAdaptiveMovingAverage(periods: int) -> FractalAdaptiveMovingAverage

Parameters

Name C# type Python type Description
periods int int The periods used for the calculation. Must be an even number.

Returns FractalAdaptiveMovingAverage — The FRAMA indicator instance.

Examples

var frama = Indicators.FractalAdaptiveMovingAverage(16);
Print("FRAMA(16): {0}", frama.Result.LastValue);
frama = api.Indicators.FractalAdaptiveMovingAverage(16)
api.Print(f"FRAMA(16): {frama.Result.LastValue}")

FractalAdaptiveMovingAverage(Bars bars, int periods)

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

FractalAdaptiveMovingAverage FractalAdaptiveMovingAverage(Bars bars, int periods)
api.Indicators.FractalAdaptiveMovingAverage(bars: Bars, periods: int) -> FractalAdaptiveMovingAverage

Parameters

Name C# type Python type Description
bars Bars Bars The Bars that will be used by indicator, you can pass another timeframe/symbol bars
periods int int The periods used for the calculation. Must be an even number.

Returns FractalAdaptiveMovingAverage — The FRAMA indicator instance.

Examples

var dailyBars = MarketData.GetBars(TimeFrame.Daily);
var dailyFrama = Indicators.FractalAdaptiveMovingAverage(dailyBars, 16);
Print("Daily FRAMA(16): {0}", dailyFrama.Result.LastValue);
dailyBars = api.MarketData.GetBars(TimeFrame.Daily)
dailyFrama = api.Indicators.FractalAdaptiveMovingAverage(dailyBars, 16)
api.Print(f"Daily FRAMA(16): {dailyFrama.Result.LastValue}")