Module sessions

Source
Expand description

Provides utilities for determining Forex session times. Includes functions to convert UTC times to session local times and retrieve the next or previous session start/end.

All FX sessions run Monday to Friday local time:

  • Sydney Session 0700-1600 (Australia / Sydney)
  • Tokyo Session 0900-1800 (Asia / Tokyo)
  • London Session 0800-1600 (Europe / London)
  • New York Session 0800-1700 (America / New York)

Structs§

ForexSessionIter
An iterator over the variants of ForexSession

Enums§

ForexSession
Represents a major Forex market session based on trading hours.

Functions§

fx_local_from_utc
Converts a UTC timestamp to the local time for the given Forex session.
fx_next_end
Returns the next session end time in UTC.
fx_next_start
Returns the next session start time in UTC.
fx_prev_end
Returns the previous session end time in UTC.
fx_prev_start
Returns the previous session start time in UTC.