SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy

We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

0
0

Hi,

Quick question regarding stock charts. I am maintaining the Ohlc data series and appending values when the timeframe threshold is reached.. what the BarTimeFrame property is used for in StockChart?

Thanks

Paul

  • You must to post comments
0
0

Hi Paul,

As BarTimeFrame documentation states, this is the time in seconds for each bar on the CategoryDateTimeAxis.
Actually, it allows you to specify the time for 1-bar (or one point) on the chart in seconds, e.g. CategoryDateTimeAxis.BarTimeFrame=900 means each point on the chart represents 15 minutes. This is used for financial charting to assist the range and zoom calculations in the X-axis. It is set to “-1” by default, which means that time frame is calculated by CategoryDateTimeAxis automatically, you can set it to any value greater than zero.

Please, take a look at our SciTrader example and play around with different time frames on the left top corner to see it in action.

Best regards,
Yuriy

  • murfinp
    YuriyMany thanks for the clarification .... a useful addition to the ohloc dataseries would be an append(datetime,value) that would automatically determine whether update h/l/c or add a new bar based based on the values passed in, the current bar time/values and the barTimeFrame property.Thanks againPaul
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.