millionchart
فارسی

Sessions reference

The 6 functions and 0 values of session: signature, effects, phase, cost and tested examples.

A session is two times of day and a zone, declared with session NAME = 08:00 .. 16:30 @ "Zone". Its members, written NAME.active, NAME.start and so on, tell where the bar stands in it.

Functions#

NAME.active#

NAME.active

True while the bar is inside the session.

NAME.end#

NAME.end

True on the first bar after the session.

NAME.high#

NAME.high

The highest price of the current session so far.

NAME.index#

NAME.index

The number of the current session.

  • Effects: none: the result depends on the arguments only.
  • Phase: every bar.
  • Cost: a fixed number of operations.
  • Examples: Session range boxes.

NAME.low#

NAME.low

The lowest price of the current session so far.

NAME.start#

NAME.start

True on the first bar of the session.