QuaScript DocumentationLanguage guide, engine API, 601 builtins and the preset library · v3.0.0-phase1 sessionGenerated from the engine catalog by tools/gen-docs.mjs; do not edit.ConstantsNameValueMeaningsession.corecoreThe exchange's main trading hours.session.fullfullEvery hour the asset trades, including pre/post market.session.end_timescript.qssession.end_time(spec = , tz = asset.timezone) -> numSession end of the bar's day (UTC seconds).ArgumentKindDefaultNotesspectext""tztextasset.timezoneKeeps state per call site.session.in_rangescript.qssession.in_range(spec = , tz = asset.timezone) -> boolTrue when the bar is inside the time range.ArgumentKindDefaultNotesspectext""tztextasset.timezoneKeeps state per call site.session.is_closing_barscript.qssession.is_closing_bar(spec = , tz = asset.timezone) -> boolTrue on the last bar of the session.ArgumentKindDefaultNotesspectext""tztextasset.timezoneKeeps state per call site.session.is_openscript.qssession.is_open(spec = , tz = asset.timezone) -> boolTrue while the session is open.ArgumentKindDefaultNotesspectext""tztextasset.timezoneKeeps state per call site.session.is_opening_barscript.qssession.is_opening_bar(spec = , tz = asset.timezone) -> boolTrue on the first bar of the session.ArgumentKindDefaultNotesspectext""tztextasset.timezoneKeeps state per call site.session.start_timescript.qssession.start_time(spec = , tz = asset.timezone) -> numSession start of the bar's day (UTC seconds).ArgumentKindDefaultNotesspectext""tztextasset.timezoneKeeps state per call site.← timefeed: other intervals →All 81 chaptersGuideGetting startedScript headersLanguage basicsFunctionsStructs, enums and traitsLibrariesParametersRenderingColorsDrawingsCollectionsTime, sessions and dataStrategiesBotsExecution modelBuilding complex analysesAdvancedChart styles by exampleEngineEngine APIPerformanceDiagnosticsReferenceta: technical analysisstat: statisticsmathcolorrender: outputsdraw: drawing objectsarraylistmapgridtablestr: textparam: settingsbarassetintervaltimesessionfeed: other intervalsalertorderexitpositionportfolioriskbook: order book (host data)orderbook (host data)derivative (host data)financial (host data)option pricinganchorshapestyleraysidepanechartaccounthftPresetsEvery chartGalleryLanguage showcasesbookFundamentals and flowsWebGPU StudioMicrostructureTrendlines and levelsMoving averagesMomentumMultiple intervalsLayoutsMarket structureStatisticsTrendVolatilityVolumeVertical panesBotsChart stylesLibrariesStrategies