QuaScript DocumentationLanguage guide, engine API, 601 builtins and the preset library · v3.0.0-phase1 accountGenerated from the engine catalog by tools/gen-docs.mjs; do not edit.account.availablescript.qsaccount.availableMargin / cash available for new orders.account.avg_pricescript.qsaccount.avg_priceAverage price of the broker position.account.equityscript.qsaccount.equityAccount equity.account.is_connectedscript.qsaccount.is_connectedTrue when a live executor reports the broker account.account.positionscript.qsaccount.positionBroker position of the bot's instrument (simulated position without an executor).account.realized_pnlscript.qsaccount.realized_pnlRealized profit of the day.← charthft →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