How to add a new panel to the chart? Without the use of an additional indicator. With code, function. Like on a picture.
I want to display the Delta there.
I tried this:
ChartControl.ChartPanels.Add (new ChartPanel (ChartControl));
It does not help me.
This code also does not add a second panel:
AddPlot (new Stroke (Brushes.Yellow, 5), PlotStyle.Bar, "MyPlot");
Only a separate indicator that works.
I need sample code.
---
I want to display Delta there. The difference between bid & ask.
Maybe by using Plot (PlotStyle.Bar) or SharpDX.Direct2D1.RenderTarget.FillRectangle();
Is it possible to add a plot by code? To the bottom panel.
Help me find at least some way. Create such a panel and fill it. Then, I want to turn it on-off by button.
Sorry for my bad english.
---
Я недавно начал программировать и пытаюсь собрать свой индикатор.
Как добавить новую панель на график? Без использования дополнительного индикатора. С помощью кода, функции. Вот как на картинке.
Я хочу там выводить Дельту.
Я пробовал это:
ChartControl.ChartPanels.Add(new ChartPanel(ChartControl));
Это мне не помогает.
Это код тоже не добавляет вторую панель:
AddPlot(new Stroke(Brushes.Yellow,5), PlotStyle.Bar, "MyPlot");
Только отдельным индикатором это работает.
Мне нужен пример кода.

Comment