From: Pete S. <edg...@ya...> - 2009-04-12 16:35:34
|
Hello, I was trying to do the same thing and found your post. I found that you need to rescale the XAxis once you plug in the tradingtime ranges. It's probably not the right way, but I just used the previous XAxis WorldMin and WorldMax values for the new Xaxis. It then works exactly as we want. -pete Hi, I have a intraday stock data. The quotations are between 09:30 and 16:30 so i have gap on the chart (from 16:30 to 9:30 next day). I saw StartTradinTime and EndTradingTime properties (btw great idea) but i must do something wrong because when i set that properties the chart is empty :( TradingDateTimeAxis TimeAxis = new TradingDateTimeAxis(plotsurface.XAxis1); TimeAxis.StartTradingTime = new TimeSpan(09, 30, 00); TimeAxis.EndTradingTime = new TimeSpan(16, 30, 00); plotsurface.XAxis1 = TimeAxis; In that case chart is empty, but after i comment TimeAxis.StartTradingTime and TimeAxis.EndTradingTime chart is plot but with gap... Thank you for help and best regards Jack |