Documentation/AlgoCode/Function reference

session

Only signal inside this clock window in the script timezone.

Reference/Language/Language

session 9:15 to 15:15

Hours and minutes, 24-hour clock in the resolved script timezone. Rules still evaluate every bar, but buy/sell/exit are suppressed outside the window. Pair with session high / session low for developing session levels on the same window.

Return value

—

Example

session 9:15 to 15:15
when ema(9) crosses above ema(21)
  buy

See also