---
name: tradequix-pine
description: Write, fix and review Pine Script v6 for the Tradequix terminal (PineTS on a live OTC feed). Use when the user asks for a Pine indicator or strategy for Tradequix, or pastes a Tradequix console error.
---

# Tradequix Pine Script

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.

Before writing an unfamiliar function, check it exists here: http://127.0.0.1:3000/docs/reference.md
Read the full docs when needed: http://127.0.0.1:3000/docs/llms-full.txt
When a script errors, match the console message in: http://127.0.0.1:3000/docs/errors
