Profile Picture

StockSeries Candle Width

Posted By Enjoyear Guo 12 Years Ago
Author
Message
Enjoyear Guo
Posted 12 Years Ago
View Quick Profile
Forum Member

Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 30, Visits: 1
The following is my configuration for the stock series.
_stockSeries.CandleStyle = CandleStyle.Bar;
_stockSeries.DataLabelStyle.Visible = false;
_stockSeries.UpStrokeStyle.Width = new NLength(1, NGraphicsUnit.Point);
_stockSeries.UpStrokeStyle.Color = Color.Black;
_stockSeries.DownStrokeStyle.Width = new NLength(1, NGraphicsUnit.Point);
_stockSeries.DownStrokeStyle.Color = Color.Crimson;
_stockSeries.CandleWidth = new NLength(2, NGraphicsUnit.Point);
_stockSeries.UseXValues = true;
_stockSeries.InflateMargins = false;

I am wondering is it possible to make the CandleWidth changable automatically with respect to the space between two adjacent bars.

The Chart1.png in the attachments is a nice chart. But if I zoom in, as shown in Chart2.png, or zoom out, as shown in Chart3.png, the width of the bar stays the same( == 2 NGraphicsUnit.Points). Is it possible to make the candle width equal to, let's say, 1/4 of the space between adjacent bars.
Please tell me if I don't make myself clear.
Thank you very much.

Attachments
Chart1.png (63 views, 19.00 KB)
Chart2.png (63 views, 16.00 KB)
Chart3.png (69 views, 25.00 KB)


Similar Topics


Reading This Topic