millionchart
فارسی

Periods reference

The 2 functions and 0 values of period: signature, effects, phase, cost and tested examples.

Read a field of the current or of an earlier day, week or month, written current(week).open or prior(day, 1).high.

Functions#

current#

current(period).field

A field of the current period so far.

  • Effects: none: the result depends on the arguments only.
  • Phase: every bar.
  • Cost: a fixed number of operations.
  • Examples: Earlier days and weeks.

prior#

prior(period [, n]).field

A field of the n-th finished period (day, week or month) before the current one.