forge.sessions

Forge API 1

Named trading sessions, for ``fg.Filter.session`` and ``fg.Exit.session_close``.

The forex presets are the same hours the chart's session boxes and killzones use: one source, the tables ``forge_indicators.SESSION_DEFAULTS`` and ``KILLZONE_DEFAULTS``. Each preset keeps its own time zone, so a change of clocks in that city moves the window and never the hours written here. Exchange instruments trade in their own venue's hours, which ``venue()`` names and Forge reads for each symbol. The session's own high and low are ``fg.ta.session_range``. This module is imported by a strategy, so it never imports ``btpro``.

NameKindSummary
ASIAconstant
ASIA_KILLZONEconstant
LONDONconstant
LONDON_CLOSE_KILLZONEconstant
LONDON_KILLZONEconstant
NYconstant
NY_KILLZONEconstant
PRESETSconstant
SessionPresetclassA named window of hours in a time zone, or a symbol's own venue session.
getfunctionThe preset called ``name``, in any case.
venuefunctionThe symbol's own market hours.