QuaScript DocumentationLanguage guide, engine API, 601 builtins and the preset library · v3.0.0-phase1 barGenerated from the engine catalog by tools/gen-docs.mjs; do not edit.bar.averagescript.qsbar.average(open + high + low + close) / 4.bar.bodyscript.qsbar.bodyclose - open.bar.buy_volumescript.qsbar.buy_volumeOrder-flow column supplied by the host.Needs host data (order flow).bar.close_timescript.qsbar.close_timeClose time of the bar (open time + interval).bar.deltascript.qsbar.deltaOrder-flow column supplied by the host.Needs host data (order flow).bar.indexscript.qsbar.indexIndex of the bar (0 = first bar).bar.is_confirmedscript.qsbar.is_confirmedFalse only while the forming bar is updating.bar.is_firstscript.qsbar.is_firstTrue on the first bar.bar.is_lastscript.qsbar.is_lastTrue on the last bar.bar.is_livescript.qsbar.is_liveTrue for bars that arrived after the script started (live, not history).bar.is_newscript.qsbar.is_newTrue on the first execution of a bar.bar.lower_wickscript.qsbar.lower_wickmin(open, close) - low.bar.midscript.qsbar.mid(high + low) / 2.bar.rangescript.qsbar.rangehigh - low.bar.sell_volumescript.qsbar.sell_volumeOrder-flow column supplied by the host.Needs host data (order flow).bar.tick_countscript.qsbar.tick_countOrder-flow column supplied by the host.Needs host data (order flow).bar.typicalscript.qsbar.typical(high + low + close) / 3.bar.upper_wickscript.qsbar.upper_wickhigh - max(open, close).bar.weightedscript.qsbar.weighted(high + low + 2 * close) / 4.← param: settingsasset →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