Skip to content
StatePath
Tool Atlastime.minutes_since_open

Tool

Minutes Since Session Open

time.minutes_since_open

MarketTime

Inputs

No typed inputs.

Outputs

Buffer (time series)

Minutes elapsed since the session/day open for the current bar. It starts at 0 at the open and increases as the session progresses, resetting at the next open.

Reports how many minutes have passed since the session (or day) opened, for the current bar. Traders use it to skip the volatile first minutes after the open.

Minutes Since Session Open overview diagramopen+30m+60m+120m

How it works

It compares the current bar's timestamp to the most recent session open and returns the elapsed minutes. The value grows through the session and resets at the next open; no price data is used.

Connects to

Feeds into

Examples

  • Filter: ignore signals in the first 15 minutes after the open by requiring minutes-since-open above 15 with condition.compare gt.
  • Use condition.compare (3-operand le) to act only inside a window such as 30 to 90 minutes after the open.

Common mistakes

  • Forgetting that the counter resets at each new session open, so a large value never carries across the open.
  • Mismatching the session definition with your broker's hours — the 'open' it measures from must match the session you actually trade.

See also