← Atrás

Unable to calculate WilderMovingAverage

Hi,

I`m trying to calculate ATR using Wilder Moving Average. Here is my code:


var atr = new WilderMovingAverage()
{
	Length = 2,
};

foreach (var candle in candles.Take(10))
{
	atr.Process(candle);
}

var result = atr.GetValue(0);

The result is always 0, no matter what index I will select.

¿Le resultó útil este tema?

Compartir tema

Comentarios (0)

Iniciar sesión o Crear cuenta, Inicie sesión o regístrese para dejar un comentario

Aún no hay comentarios. ¡Sea el primero!