millionchart
فارسی

Timeframes reference

The 3 functions and 9 values of tf: signature, effects, phase, cost and tested examples.

Convert timeframe texts and detect the start of a new period of a timeframe.

Functions#

tf.changed#

tf.changed([tf])

True on the first bar of each new period of the timeframe tf.

tf.from_seconds#

tf.from_seconds([seconds])

The timeframe text of a length in seconds.

tf.to_seconds#

tf.to_seconds([tf])

The length of a timeframe in seconds.

Values#

  • tf.id — The timeframe of the chart as text.
  • tf.is_daily — True when the chart is daily.
  • tf.is_daily_or_longer
  • tf.is_intraday — True when the chart is made of intraday bars.
  • tf.is_minutes
  • tf.is_monthly
  • tf.is_seconds
  • tf.is_weekly
  • tf.multiplier