Intent:
To filter series based on trade size. Series associated with this data is Points and I have associated a GetPointerStyle to it.
X axis shows datetime
Y axis with trade sizes
On the chart I have 1 fastLine and 1 Volume series.
So whenever I receive the GetPointerStyle event, the data associated with "series" parameter is not my Points series data.
void pointStyle_GetPointerStyle(CustomPoint series, GetPointerStyleEventArgs e)
{
if (e.ValueIndex >= 0 && series.YValues.Count > e.ValueIndex)
{
if (series.YValues[e.ValueIndex] < 25) // Do not show traders less than 25
e.Style = PointerStyles.Nothing;
else
Console.WriteLine("Skipping trade Trade Size {0} Min. Trade Size {1}", series.YValues[e.ValueIndex], showTradesWithSize.Value);
}
}
Please advise.
Regards,
Vish
Issues with GetPointerStyle event
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Issues with GetPointerStyle event
Hi Vish,
Most likely the problem is that your series don't fire this event as they don't have visible Pointers. Neither FastLine nor Volume series have Pointer property. To use that you should use Points, Line or any other series style that has Pointer property and it should be set to visible:
If the problem persists please attach a simple example project we can run "as-is" to reproduce the problem here.
Thanks in advance.
Most likely the problem is that your series don't fire this event as they don't have visible Pointers. Neither FastLine nor Volume series have Pointer property. To use that you should use Points, Line or any other series style that has Pointer property and it should be set to visible:
Code: Select all
Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
line1.Pointer.Visible = true;
line1.FillSampleValues();
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |