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

Message ListMessage List     Post MessagePost Message

  Indicator clipping on zoom/scroll finance chart
Posted by Mark on Sep-11-2013 02:11
Attachments:
Hi Peter,
I am attempting to add an RSI indicator to my zoomable and scroll-able finance chart, as
shown below.

When I scroll to the right of the chart, however, the RSI portion of the chart gets cut
off
for a specified width. This is consistent with the initial part of the chart where there is
no
RSI to display, due to the fact that my int extraPoints = 0.

1. How do I ensure that the clipping of RSI does not mimic the behavior of the start of
the
chart?

Chart 1: Start of chart (initially no RSI)

Chart 2: Zoomed chart (without RSI values for corresponding data, where it should
otherwise be - if i scroll back to the left)

Code:
XYChart ind1;
            if ((ListItem)indicator1.SelectedItem != null)
            {
                ind1 = addIndicator(c, ((ListItem)indicator1.SelectedItem).Key, 70);
                ind1.setClipping();
            }
//c is my financechart

2. How do I remove the static legend from my indicator sub-chart to ensure that only
the
dynamic legend is displayed along with my track line?

Let me know,
Thanks,
Mark
chart1.png
chart2.png

  Re: Indicator clipping on zoom/scroll finance chart
Posted by Manisha on Jul-29-2015 17:37
There is an example in ChartDirector called "Finance Chart Track Line" that shows how to
remove the default legend. The code is like (in C#):

// Disable default legend box, as we are using dynamic legend
c.setLegendStyle("normal", 8, Chart.Transparent, Chart.Transparent);