Pre loader

What is BarTimeFrame?

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

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
    Yuriy Many 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 again Paul
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies