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.
评论 (0)
登录 或 创建账户, 登录或注册以发表评论
暂无评论,成为第一个评论者!