//Индикаторы для отрисовки в Analyzer
        public override List <BaseAnalyzerIndicator> AnalyzerIndicators()
        {
            var indicators = HistoricalDataType == HistoricalDataType.Ticks ? TickIndicators() : CandlesIndicators();

            //Кастомный индикатор для вывода на график точек перестановки ордеров в процессе котирования
            indicators.Add(_quotingOrderChanged = new CustomAnalyzerIndicator("Quoting", 0)
            {
                Stroke      = Colors.Pink,
                Style       = IndicatorStyle.Point,
                Thickness   = 2,
                RadiusPoint = 15
            });

            return(indicators);
        }
예제 #2
0
        //Индикаторы для отрисовки в Analyzer
        public override List <BaseAnalyzerIndicator> AnalyzerIndicators()
        {
            var indicators = new List <BaseAnalyzerIndicator>
            {
                new AnalyzerIndicator(new BollingerBandsTop((int)Parameter(1), (int)Parameter(2)), AnalyzerValue.CandleClosePrice, 0)
                {
                    Name      = "Top",
                    Stroke    = Colors.Blue,
                    Thickness = 2
                },

                new AnalyzerIndicator(new BollingerBandsAverage((int)Parameter(1)), AnalyzerValue.CandleClosePrice, 0)
                {
                    Name      = "Average",
                    Stroke    = Colors.Red,
                    Thickness = 2
                },

                new AnalyzerIndicator(new BollingerBandsBottom((int)Parameter(1), (int)Parameter(2)), AnalyzerValue.CandleClosePrice, 0)
                {
                    Name      = "Bottom",
                    Stroke    = Colors.Blue,
                    Thickness = 2
                }
            };

            indicators.Add(_customValuesBuy = new CustomAnalyzerIndicator("BUY ORDER", 0)
            {
                Stroke      = Colors.PaleGreen,
                Style       = IndicatorStyle.Point,
                Thickness   = 2,
                RadiusPoint = 15
            });

            indicators.Add(_customValuesSell = new CustomAnalyzerIndicator("SELL ORDER", 0)
            {
                Stroke      = Colors.OrangeRed,
                Style       = IndicatorStyle.Point,
                Thickness   = 2,
                RadiusPoint = 15
            });

            return(indicators);
        }