Issues with GetPointerStyle event
Posted: Mon Jun 21, 2010 7:02 pm
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
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