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``.
| Name | Kind | Summary |
|---|---|---|
| ASIA | constant | |
| ASIA_KILLZONE | constant | |
| LONDON | constant | |
| LONDON_CLOSE_KILLZONE | constant | |
| LONDON_KILLZONE | constant | |
| NY | constant | |
| NY_KILLZONE | constant | |
| PRESETS | constant | |
| SessionPreset | class | A named window of hours in a time zone, or a symbol's own venue session. |
| get | function | The preset called ``name``, in any case. |
| venue | function | The symbol's own market hours. |