Any idea about SetPointLabel method ?
Posted: Thu May 31, 2007 5:55 am
Hi all...
My project is basically making trading software so I need to remove
weekend data (as also somebody said in this forum) by using SetPointLabel method.
I can now handle all weekend data to be removed using SetPointLabel method.
The first problem was there was always some spaces (gaps) on the left.
After the first drawing, the first label on the left was appeared some spaces away from the left axis.
I worked out this by using the following methods.
//m_Chart.GetAxis().GetBottom().SetAutomatic(TRUE);
m_Chart.GetAxis().GetBottom().SetAutomaticMinimum(TRUE);
//m_Chart.GetAxis().GetBottom().SetAutomaticMaximum(TRUE);
Fortunately, the left spaces (gaps) are now gone but when a chart is being scrolled,
a gap between two adjacent items (candlesticks) is getting bigger or
sometimes smaller, which is another problem and implies the methods
above may not be sufficient for this case.
So it doesn't look good and is not consistent in terms of date range
between two candlestick items.
I guess before the above methods are called, the automatic mode is turned off.
I may have coded that...That's why I first got some spaces on the left.
The main thing left is how to make it look very similar to one as if I
didn't need to use SetPointLabel method to remove weekend data.
It should look very similar to what I got before I didn't use
SetPointLabel method.
Basically, I want two things to be worked out.
1. No additional big space between the left axis and the first label (the first data being displayed)
As I said above, this can be solved by SetPointLabel method.
but another big proglem ocurred.
2. As long as SetPointLabel method is used for removing and handling weekend data,
when a chart is being scrolled horizontally,
a gap between two adjacent items (candlesticks) must not be getting bigger or smaller.
Any help and comment would be great.
Thanks a lot in advance.
My project is basically making trading software so I need to remove
weekend data (as also somebody said in this forum) by using SetPointLabel method.
I can now handle all weekend data to be removed using SetPointLabel method.
The first problem was there was always some spaces (gaps) on the left.
After the first drawing, the first label on the left was appeared some spaces away from the left axis.
I worked out this by using the following methods.
//m_Chart.GetAxis().GetBottom().SetAutomatic(TRUE);
m_Chart.GetAxis().GetBottom().SetAutomaticMinimum(TRUE);
//m_Chart.GetAxis().GetBottom().SetAutomaticMaximum(TRUE);
Fortunately, the left spaces (gaps) are now gone but when a chart is being scrolled,
a gap between two adjacent items (candlesticks) is getting bigger or
sometimes smaller, which is another problem and implies the methods
above may not be sufficient for this case.
So it doesn't look good and is not consistent in terms of date range
between two candlestick items.
I guess before the above methods are called, the automatic mode is turned off.
I may have coded that...That's why I first got some spaces on the left.
The main thing left is how to make it look very similar to one as if I
didn't need to use SetPointLabel method to remove weekend data.
It should look very similar to what I got before I didn't use
SetPointLabel method.
Basically, I want two things to be worked out.
1. No additional big space between the left axis and the first label (the first data being displayed)
As I said above, this can be solved by SetPointLabel method.
but another big proglem ocurred.
2. As long as SetPointLabel method is used for removing and handling weekend data,
when a chart is being scrolled horizontally,
a gap between two adjacent items (candlesticks) must not be getting bigger or smaller.
Any help and comment would be great.
Thanks a lot in advance.