# Tradequix Pine Script docs > How to write Pine Script v6 on Tradequix, a trading terminal on a live OTC feed. Scripts run on PineTS (an open-source Pine runtime) in the browser, or on the server for closed-source scripts. These docs say what works, what this feed cannot supply, and how to publish. Rules for writing Pine for Tradequix: - Start scripts with //@version=6 and indicator(...) or strategy(...). - Request timeframes as Pine strings: 5S 10S 15S 30S 1 2 3 5 10 15 30 60 240 D come from the feed; others are aggregated; under 5 seconds is refused. - At most 40 request.* contexts per script; each request.security call loads at most 3,600 candles. - Volume is a tick count, not traded size. - Fundamentals, earnings, dividends, economic data and order flow are not available; such requests return na with a warning. - Modified tickers (Heikin Ashi, Renko and similar) are refused; compute Heikin Ashi yourself. - import and libraries are not available. - plotshape/plotchar draw where the series is true or a non-zero number; na, false and 0 draw nothing. - The feed trades 24x7 on UTC; symbols look like EURUSD_otc. - A run must finish within 8 seconds; arrays, matrices and tables hold at most 100,000 elements. ## Start - [Introduction](/docs/introduction.md): What Pine Script on Tradequix is, where your code runs, and how to read these docs. - [Quickstart](/docs/quickstart.md): Write, run and save your first indicator, then turn it into something you would actually trade with. - [How a script runs](/docs/execution-model.md): Pine runs your whole script once per bar, oldest to newest. Series, history references, var and na all follow from that. ## Language - [Types and qualifiers](/docs/types-and-qualifiers.md): The types Pine values have, and the qualifiers (const, input, simple, series) that say when a value is known. Why some arguments refuse a series. - [Operators, conditionals and loops](/docs/control-flow.md): Arithmetic and logic operators, the ternary, if and switch as expressions, and for and while loops with their limits. - [Functions and methods](/docs/functions.md): Write your own functions with =>, return several values as a tuple, and call functions as methods. Libraries and import are not available. - [Objects and enums](/docs/objects.md): Define your own types with fields, create and change objects, and use enums for a fixed set of options. - [Arrays, matrices and maps](/docs/collections.md): Collections of values: rolling windows with arrays, grids with matrices, and lookups with maps. Up to 100,000 elements each. - [Strings and colours](/docs/strings-and-colors.md): Format numbers for labels and tables, build text, and make colours with transparency and gradients. - [Time and sessions](/docs/time-and-sessions.md): The OTC feed trades around the clock on UTC. Reading bar time, filtering by hour, and what session variables mean here. - [Bar states](/docs/bar-states.md): barstate.* tells the script where it is in the run: the first bar, the last, history or live, and whether the bar has closed. ## Write - [Plotting](/docs/plotting.md): Every way a script draws a series: plot styles, markers, reference lines, fills and colouring bars, on the price chart or in its own pane. - [Inputs](/docs/inputs.md): Turn hard-coded numbers into settings. Every input.* call becomes a field in the indicator's settings, saved per chart. - [Technical analysis](/docs/technical-analysis.md): The ta.* namespace: averages, oscillators, bands, crosses, pivots and multi-value studies, with working recipes. - [Drawings and tables](/docs/drawings.md): Labels, lines, boxes, polylines and tables: objects a script places at exact coordinates, and how they behave on Tradequix. - [Multiple timeframes](/docs/timeframes.md): Read another timeframe with request.security. Which timeframes the feed serves directly, which are built from others, and what is refused. - [Strategies](/docs/strategies.md): Turn signals into simulated trades with strategy(), read the backtest panel, and understand what each metric does and does not tell you. - [Alerts in scripts](/docs/script-alerts.md): What alert() and alertcondition() do on Tradequix today, and how they differ from the server price alerts that fire with the tab closed. - [Repainting](/docs/repainting.md): Why a signal can look perfect on history and never happen live, the four usual causes, and the patterns that prevent each. ## On Tradequix - [The Pine editor](/docs/pine-editor.md): Shortcuts, the console, editor settings, and what is still coming. Everything about the panel where you write scripts. - [Indicator settings](/docs/indicator-settings.md): The gear in an indicator's legend: change inputs, restyle plots, hide drawings, and choose which timeframes it shows on. - [Coming from TradingView](/docs/coming-from-tradingview.md): Bring an existing TradingView script to Tradequix: what runs unchanged, what to edit, and a checklist. Start with the checker. - [The data](/docs/data.md): What the live OTC feed gives a script, what it cannot, and how the editor tells you when a script asks for something missing. - [Publish and sell](/docs/publishing.md): Share a script open source, protect its code, or sell access to it. Visibility, the edit window, the published chart and paid spaces. - [Catalogue and community](/docs/catalogue-and-community.md): Finding scripts in the Indicators dialog, script pages, boosts and comments, asking for invite-only access, and talking to authors. - [Your dashboard and earnings](/docs/dashboard.md): Track reach, roll back versions, answer access requests and set up payouts for the scripts you publish. - [Errors and debugging](/docs/debugging.md): Read the editor console, recognise the common errors and their real causes, and find out why a script runs but draws nothing. - [Limits](/docs/limits.md): Every limit a script, a chart and a publication runs into on Tradequix, with the exact numbers and what happens when you hit one. ## Reference - [Coverage](/docs/coverage.md): Which parts of Pine Script v6 work on Tradequix, which are verified by our own tests, and which are not available. - [Built-in catalogue](/docs/built-ins.md): All 62 scripts that ship with Tradequix, by group. Each opens its own page, with the full open source to read or copy. - [Cookbook](/docs/cookbook.md): Complete, runnable recipes to copy and adapt: Heikin Ashi, a squeeze, a trailing stop, divergence, a ribbon, volume spikes and a breakout strategy. - [Write Pine with AI](/docs/pine-with-ai.md): Give an AI assistant these docs and Tradequix's rules, so the scripts it writes actually run here. Includes a ready prompt and a review checklist. - [FAQ](/docs/faq.md): Short answers to the questions people ask most about writing and running Pine on Tradequix. - [Glossary](/docs/glossary.md): The terms these docs use, in one place: from bar index and series to repainting, tick count and space. - [Cheat sheet](/docs/cheat-sheet.md): One printable page of the Pine you write most often on Tradequix, from the script skeleton to strategies. ## Reference - [Function reference](/docs/reference.md): every implemented function with status, signatures and examples ## Optional - [Everything in one file](/docs/llms-full.txt): all pages and the reference concatenated - [Claude Code skill](/docs/skills/tradequix-pine/SKILL.md): these rules as an installable skill