ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Seperate Indicators into panels
Posted by Toni Solarin on Nov-06-2013 14:55
Hello, please is it possible to separate the technical indicators added at the bottom of a main chart into a panel that is both resizable and draggable.

  Re: Seperate Indicators into panels
Posted by Peter Kwan on Nov-06-2013 23:47
Hi Toni,

The following is how one of our customers achieve putting separate indicators into resizable panels:

(a) Create a window that contains multiple resizable panes. Please refer to the documentation of yoru GDI framework on how to do this. For example, in MFC, you may try CSplitterWnd. This part is not related to ChartDirector and does not need any charting code.

(b) Put a FinanceChart with just the main price chart to one of the panes. Put a FinanceChart with just an indicator chart in another pane. So you have a Window that contains a main price chart and an indicator chart and they are in two panes. The size of the charts should not be hard coded. It should be as large as the client area of the pane. You may configure the charts so that the top chart does not have a visible x-axis (eg. by modifying the plot area height so that the x-axis falls outside the pane and is not visible). So the entire Window contains only one visible x-axis at the bottom.

(c) When the pane is resized, in the resize event handler, please just the charting routine again to redraw the charts. Because the charts are designed to be as large as the client area of the panes, so redrawing the chart is equivalent to resizing the charts to the client area of the panes.

Hope this can help.

Regards
Peter Kwan