В 4.1.13 добавилась возможность отрисовывать сложные индикаторы с помощью специальных рендереров. Рендерер задается с помощью свойства IndicatorPainter, стандартные рендереры находятся в пространстве имен StockSharp.Xaml.Charting.IndicatorPainters.
var el = new ChartIndicatorElement
{
Color = _colorPicker.SelectedColor,
IsLegend = true,
Indicator = new AverageDirectionalIndex(new DirectionalIndex { Length = len }, new WilderMovingAverage { Length = len }),
Title = "ADX ({0})".Put(len),
StrokeThickness = 1,
IndicatorPainter = new AverageDirectionalIndexPainter(),
};
We use cookies to ensure the best experience on our website. By continuing to use our site, you agree to the use of cookies.
Comments (1)
Login or Create account, Log in or register to leave a comment
В 4.1.13 добавилась возможность отрисовывать сложные индикаторы с помощью специальных рендереров. Рендерер задается с помощью свойства IndicatorPainter, стандартные рендереры находятся в пространстве имен StockSharp.Xaml.Charting.IndicatorPainters.