QuaScript DocumentationLanguage guide, engine API, 601 builtins and the preset library · v3.0.0-phase1 alertGenerated from the engine catalog by tools/gen-docs.mjs; do not edit.ConstantsNameValueMeaningalert.bar_close0Send once the bar is confirmed.alert.every_update1Send on every execution, including forming updates.alert.once2Send only the first time.alert.rulescript.qsalert.rule(when, title, message = )Declares an alert rule that fires when when turns true on a confirmed bar.ArgumentKindDefaultNoteswhenboolrequiredtitletextrequiredmessagetext""alert.sendscript.qsalert.send(message, every = alert.bar_close)Sends an alert when executed (on confirmed bars by default).ArgumentKindDefaultNotesmessagetextrequiredeverynumalert.bar_close← feed: other intervalsorder →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